diff options
author | johans <johans@FreeBSD.org> | 2013-12-29 20:42:57 +0800 |
---|---|---|
committer | johans <johans@FreeBSD.org> | 2013-12-29 20:42:57 +0800 |
commit | 048ebb11882afba244b9306b6a958a289da9f391 (patch) | |
tree | 8b415cfadb7a634a6e4a4a595648ce37d45e6851 | |
parent | 9056930c47d0f4d17f83391d02be2a2404822cdb (diff) | |
download | freebsd-ports-gnome-048ebb11882afba244b9306b6a958a289da9f391.tar.gz freebsd-ports-gnome-048ebb11882afba244b9306b6a958a289da9f391.tar.zst freebsd-ports-gnome-048ebb11882afba244b9306b6a958a289da9f391.zip |
Enable stage support
-rw-r--r-- | games/gnushogi/Makefile | 28 | ||||
-rw-r--r-- | games/gnushogi/pkg-plist | 1 | ||||
-rw-r--r-- | games/xshogi/Makefile | 10 |
3 files changed, 19 insertions, 20 deletions
diff --git a/games/gnushogi/Makefile b/games/gnushogi/Makefile index a506e677eea3..12fcb03c67e0 100644 --- a/games/gnushogi/Makefile +++ b/games/gnushogi/Makefile @@ -15,10 +15,8 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS= --without-x --without-xshogi MAKE_JOBS_UNSAFE= yes -MAN6= gnushogi.6 INFO= gnushogi -NO_STAGE= yes .include "${.CURDIR}/../../games/gnushogi/Makefile.common" .include <bsd.port.pre.mk> @@ -26,7 +24,7 @@ post-extract: -@${RM} ${WRKSRC}/doc/gnushogi.info* post-patch: - @${REINPLACE_CMD} -e 's|/lib/gnushogi|/share/gnushogi|g' \ + @${REINPLACE_CMD} -e 's|/lib/gnushogi|/${DATADIR_REL}|g' \ ${WRKSRC}/gnushogi/Makefile.in @${REINPLACE_CMD} -e '/HAVE_SETLINEBUF/s|ifdef|ifndef|' \ ${WRKSRC}/gnushogi/gnushogi.h @@ -35,18 +33,18 @@ pre-build: cd ${WRKSRC}/doc && makeinfo --no-split gnushogi do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/gnushogi/gnushogi ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/doc/gnushogi.6 ${MANPREFIX}/man/man6 - @${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/gnushogi/gnushogi.bbk ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/doc/gnushogi.info ${PREFIX}/info -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/BOOKFILES ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/PORTING ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/*.gam ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/*.rules ${DOCSDIR} + @${INSTALL_PROGRAM} ${WRKSRC}/gnushogi/gnushogi ${STAGEDIR}${PREFIX}/bin + @${INSTALL_MAN} ${WRKSRC}/doc/gnushogi.6 ${STAGEDIR}${MANPREFIX}/man/man6 + @${MKDIR} ${STAGEDIR}${DATADIR} + @${INSTALL_DATA} ${WRKSRC}/gnushogi/gnushogi.bbk ${STAGEDIR}${DATADIR} + @${INSTALL_DATA} ${WRKSRC}/doc/gnushogi.info ${STAGEDIR}${PREFIX}/info +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/doc/BOOKFILES ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/doc/PORTING ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/doc/*.gam ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/doc/*.rules ${STAGEDIR}${DOCSDIR} .endif .include <bsd.port.post.mk> diff --git a/games/gnushogi/pkg-plist b/games/gnushogi/pkg-plist index c086df8ccd35..24722b35ffd6 100644 --- a/games/gnushogi/pkg-plist +++ b/games/gnushogi/pkg-plist @@ -1,4 +1,5 @@ bin/gnushogi +man/man6/gnushogi.6.gz %%PORTDOCS%%%%DOCSDIR%%/BOOKFILES %%PORTDOCS%%%%DOCSDIR%%/PORTING %%PORTDOCS%%%%DOCSDIR%%/gnushogi.html diff --git a/games/xshogi/Makefile b/games/xshogi/Makefile index 84f42cd3230d..3119b7c2baf8 100644 --- a/games/xshogi/Makefile +++ b/games/xshogi/Makefile @@ -19,15 +19,15 @@ USE_XORG= xt xaw x11 GNU_CONFIGURE= yes USE_CSTD= gnu99 -MAN6= xshogi.6 -PLIST_FILES= bin/xshogi +PLIST_FILES= bin/xshogi man/man6/xshogi.6.gz -NO_STAGE= yes .include "${.CURDIR}/../../games/gnushogi/Makefile.common" .include <bsd.port.pre.mk> do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/xshogi/xshogi ${PREFIX}/bin/xshogi - ${INSTALL_MAN} ${WRKSRC}/doc/xshogi.6 ${MANPREFIX}/man/man6/xshogi.6 + ${INSTALL_PROGRAM} ${WRKSRC}/xshogi/xshogi \ + ${STAGEDIR}${PREFIX}/bin/xshogi + ${INSTALL_MAN} ${WRKSRC}/doc/xshogi.6 \ + ${STAGEDIR}${MANPREFIX}/man/man6/xshogi.6 .include <bsd.port.post.mk> |