diff options
-rw-r--r-- | astro/gkrellmoon2/Makefile | 4 | ||||
-rw-r--r-- | astro/gmapcatcher/Makefile | 4 | ||||
-rw-r--r-- | astro/openmap/Makefile | 4 | ||||
-rw-r--r-- | astro/xmoontool/Makefile | 4 |
4 files changed, 12 insertions, 4 deletions
diff --git a/astro/gkrellmoon2/Makefile b/astro/gkrellmoon2/Makefile index 18d6b37..4bd8803 100644 --- a/astro/gkrellmoon2/Makefile +++ b/astro/gkrellmoon2/Makefile @@ -20,10 +20,12 @@ USE_GNOME= gtk20 ALL_TARGET= gkrellmoon.so +.include <bsd.port.options.mk> + do-install: ${INSTALL_DATA} ${WRKSRC}/gkrellmoon.so \ ${PREFIX}/libexec/gkrellm2/plugins -.ifndef(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \ ${PREFIX}/share/doc/${PORTNAME} ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/${PORTNAME} diff --git a/astro/gmapcatcher/Makefile b/astro/gmapcatcher/Makefile index 9536b6a..f5573ba 100644 --- a/astro/gmapcatcher/Makefile +++ b/astro/gmapcatcher/Makefile @@ -20,6 +20,8 @@ USE_PYDISTUTILS=yes PYDISTUTILS_AUTOPLIST= yes PLIST_SUB= PORTVERSION="${PORTVERSION}" +.include <bsd.port.options.mk> + post-patch: @${REINPLACE_CMD} -e 's,/usr/share/pixmaps,${PREFIX}/share/pixmaps,g' \ ${WRKSRC}/gmapcatcher/widgets/mapPixbuf.py @@ -27,7 +29,7 @@ post-patch: post-install: ${INSTALL_SCRIPT} ${WRKSRC}/mapcatcher ${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKSRC}/mapdownloader ${PREFIX}/bin -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/changelog ${DOCSDIR} diff --git a/astro/openmap/Makefile b/astro/openmap/Makefile index 32ceee0..bd67ecd 100644 --- a/astro/openmap/Makefile +++ b/astro/openmap/Makefile @@ -22,6 +22,8 @@ MAKE_ARGS+= -Dopenmap.home=${WRKSRC} \ SUB_FILES= openmap.sh +.include <bsd.port.options.mk> + do-configure: (cd ${WRKSRC} && ${FIND} . -type f -print0 | ${XARGS} -0 \ ${REINPLACE_CMD} -e 's,/usr/local/openmap,${DATADIR},g') @@ -40,7 +42,7 @@ do-install: ${MKDIR} ${DOCSDIR} (cd ${WRKSRC} && ${INSTALL_DATA} -o ${SHAREOWN} -g ${SHAREGRP} \ AUTHORS LICENSE README ${DOCSDIR}) -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} (cd ${WRKSRC}/doc && ${FIND} . -type f -print | \ ${CPIO} -pdmu -R${SHAREOWN}:${SHAREGRP} ${DOCSDIR}) ${FIND} ${DOCSDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 0555 diff --git a/astro/xmoontool/Makefile b/astro/xmoontool/Makefile index c4346af..9e0212a 100644 --- a/astro/xmoontool/Makefile +++ b/astro/xmoontool/Makefile @@ -23,6 +23,8 @@ MAKE_ENV+= WITHOUT_LIBNOVA=yes LIB_DEPENDS+= libnova.so:${PORTSDIR}/astro/libnova .endif +.include <bsd.port.options.mk> + pre-everything:: .if !defined(WITHOUT_LIBNOVA) @${ECHO_MSG} "You can disable libnova support by defining WITHOUT_LIBNOVA" @@ -43,7 +45,7 @@ do-install: ${INSTALL_MAN} ${WRKSRC}/xmoontool.1 ${PREFIX}/man/man1 post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} .for i in ${PORTDOCS} ${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR} |