diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-03-02 21:35:56 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-03-02 21:35:56 +0000 |
commit | f26f45702f6d655736f48367a5469048ce590f0e (patch) | |
tree | 450c31308e8d6c153b5e58a5e72aed41b712ea96 /astro | |
parent | f0a845949b79c4ba67fc725f02b5edfc98edb1a4 (diff) |
Notes
Diffstat (limited to 'astro')
-rw-r--r-- | astro/xmoontool/Makefile | 50 |
1 files changed, 14 insertions, 36 deletions
diff --git a/astro/xmoontool/Makefile b/astro/xmoontool/Makefile index 03136d595b60..51af1216d2ef 100644 --- a/astro/xmoontool/Makefile +++ b/astro/xmoontool/Makefile @@ -8,50 +8,28 @@ CATEGORIES= astro MASTER_SITES= http://www.senax.net/xmoontool/ MAINTAINER= frank@dynamical-systems.org -COMMENT= A version of John Walker's classical moontool for X11/Motif +COMMENT= Version of John Walker's classical moontool for X11/Motif + +OPTIONS_DEFINE= DOCS LIBNOVA MONOCHROME +OPTIONS_DEFAULT= LIBNOVA +LIBNOVA_DESC= libnova support +MONOCHROME_DESC= Use monochrome display -NO_STAGE= yes USES= motif -MAN1= xmoontool.1 PORTDOCS= NOTES -PLIST_FILES= bin/xmoontool - -.if defined(WITHOUT_LIBNOVA) -MAKE_ENV+= WITHOUT_LIBNOVA=yes -.else -LIB_DEPENDS+= libnova.so:${PORTSDIR}/astro/libnova -.endif - -OPTIONS_DEFINE= DOCS - -.include <bsd.port.options.mk> +PLIST_FILES= bin/xmoontool man/man1/xmoontool.1.gz -pre-everything:: -.if !defined(WITHOUT_LIBNOVA) - @${ECHO_MSG} "You can disable libnova support by defining WITHOUT_LIBNOVA" -.endif - -pre-configure: -.if !defined(WITHOUT_DEFAULT_COLOR) - @${ECHO_MSG} "For use with monochrome displays try to set WITHOUT_DEFAULT_COLOR" -.endif - -do-configure: -.if defined(WITHOUT_DEFAULT_COLOR) - @${REINPLACE_CMD} -e 's|-DDEFAULT_COLOR||g' ${WRKSRC}/Makefile -.endif +LIBNOVA_MAKE_ENV_OFF= WITHOUT_LIBNOVA=yes +LIBNOVA_LIB_DEPENDS= libnova.so:${PORTSDIR}/astro/libnova +MONOCHROME_MAKE_ENV= DEFINES="" do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/xmoontool ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/xmoontool.1 ${PREFIX}/man/man1 - -post-install: -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/xmoontool ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/xmoontool.1 ${STAGEDIR}${PREFIX}/man/man1 + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${PORTDOCS} - ${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor -.endif .include <bsd.port.mk> |