diff options
author | bapt <bapt@FreeBSD.org> | 2014-02-24 21:15:55 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-02-24 21:15:55 +0800 |
commit | 26f349578c1f7728598e4a923509c62e32b47b3f (patch) | |
tree | a6f4e53c899b04da7dae654bea775b43a1024c8b /x11-wm/wmanager/Makefile | |
parent | 94d2eda26e836665680b3606cad6fbb03e7bc280 (diff) | |
download | freebsd-ports-gnome-26f349578c1f7728598e4a923509c62e32b47b3f.tar.gz freebsd-ports-gnome-26f349578c1f7728598e4a923509c62e32b47b3f.tar.zst freebsd-ports-gnome-26f349578c1f7728598e4a923509c62e32b47b3f.zip |
Support stage
Properly support DOCS and EXAMPLES options
Modernize
Diffstat (limited to 'x11-wm/wmanager/Makefile')
-rw-r--r-- | x11-wm/wmanager/Makefile | 39 |
1 files changed, 14 insertions, 25 deletions
diff --git a/x11-wm/wmanager/Makefile b/x11-wm/wmanager/Makefile index 265f5261b4b2..6970dd1ffdac 100644 --- a/x11-wm/wmanager/Makefile +++ b/x11-wm/wmanager/Makefile @@ -3,7 +3,7 @@ PORTNAME= wmanager PORTVERSION= 0.2.1 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= x11-wm MASTER_SITES= ${MASTER_SITE_DEBIAN_POOL} DISTNAME= ${PORTNAME}_${PORTVERSION}.orig @@ -11,42 +11,31 @@ DISTNAME= ${PORTNAME}_${PORTVERSION}.orig MAINTAINER= ports@FreeBSD.org COMMENT= X11 window manager selector -LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk +LIB_DEPENDS= libfltk.so:${PORTSDIR}/x11-toolkits/fltk WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} PKGMESSAGE= ${WRKDIR}/pkg-message +USES= gmake USE_XORG= x11 xext USE_GL= gl -USE_GMAKE= yes -MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ - PTHREAD_LIBS="${PTHREAD_LIBS}" -OPTIONS_DEFINE= ADDONS +OPTIONS_DEFINE= ADDONS DOCS EXAMPLES OPTIONS_DEFAULT=ADDONS ADDONS_DESC= Install the helper scripts and manpages +OPTIONS_SUB= yes -NO_STAGE= yes -.include <bsd.port.pre.mk> - -.if ${PORT_OPTIONS:MADDONS} -RUN_DEPENDS+= wmanager-loop:${PORTSDIR}/x11-wm/wmanager-addons -.endif +ADDONS_RUNDEPENDS= wmanager-loop:${PORTSDIR}/x11-wm/wmanager-addons do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/wmanager ${PREFIX}/bin -.if !defined(NOPORTDOCS) - ${SED} -e "s@%%DOCSDIR%%@${DOCSDIR}@; s@%%EXAMPLESDIR%%@${EXAMPLESDIR}@" ${FILESDIR}/pkg-message.in > ${PKGMESSAGE} - @${MKDIR} ${DOCSDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/wmanager ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for file in FAQ HISTORY INSTALL NEWS README TODO - ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR} .endfor - @${MKDIR} ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/.wmanagerrc ${EXAMPLESDIR}/wmanagerrc_sample - ${INSTALL_DATA} ${WRKSRC}/.xinitrc ${EXAMPLESDIR}/xinitrc_sample -.else - ${RM} -f ${PKGMESSAGE} -.endif - -.include <bsd.port.post.mk> + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/.wmanagerrc ${STAGEDIR}${EXAMPLESDIR}/wmanagerrc_sample + ${INSTALL_DATA} ${WRKSRC}/.xinitrc ${STAGEDIR}${EXAMPLESDIR}/xinitrc_sample + +.include <bsd.port.mk> |