1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/x11-wm/clementine/Makefile
Pawel Pekala b25f13438e - Add LICENSE
- Respect CXX/CXXFLAGS
- Convert to new options framework
- Support staging

While here:
- Make COMMENT more descriptive
- Use pkg-message instead of echo hacks

PR:		ports/181071
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2013-11-02 15:20:14 +00:00

60 lines
1.4 KiB
Makefile

# Created by: trevor
# $FreeBSD$
PORTNAME= clementine
PORTVERSION= 0.0.7
PORTREVISION= 7
CATEGORIES= x11-wm
MASTER_SITES= SF/${PORTNAME}/Source/${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Window manager based on aewm with title bars, iconization, and styles
LICENSE= GPLv2 MIT
LICENSE_COMB= multi
RUN_DEPENDS= xv:${PORTSDIR}/graphics/xv \
rxvt:${PORTSDIR}/x11/rxvt
OPTIONS_DEFINE= DOCS
USES= gmake
USE_XORG= x11
PORTDOCS= HISTORY LICENSE
PLIST_FILES= bin/clementine \
%%DATADIR%%/look-black \
%%DATADIR%%/look-black2 \
%%DATADIR%%/look-blue \
%%DATADIR%%/look-celadon \
%%DATADIR%%/look-grey \
%%DATADIR%%/look-taupe \
%%DATADIR%%/look-turq \
%%DATADIR%%/look-xemacs \
%%DATADIR%%/keys
PLIST_DIRS= %%DATADIR%%
post-patch:
@${REINPLACE_CMD} -e \
's|/usr/X11R6|${LOCALBASE}| ; \
s|$$(CC)|$$(CXX)| ; \
s|$$(CFLAGS)|$$(CXXFLAGS)| ; \
s|$$(DEFINES)||' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e \
's|./clementine|${PREFIX}/bin/clementine|' \
${WRKSRC}/windowmanager.cpp
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} clementine ${STAGEDIR}${PREFIX}/bin)
@${MKDIR} ${STAGEDIR}${DATADIR}
.for i in look-* keys
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DATADIR})
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
.endfor
.include <bsd.port.mk>