Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Dec 2013 12:42:57 +0000 (UTC)
From:      Johan van Selst <johans@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337977 - in head/games: gnushogi xshogi
Message-ID:  <201312291242.rBTCgv66026946@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: johans
Date: Sun Dec 29 12:42:57 2013
New Revision: 337977
URL: http://svnweb.freebsd.org/changeset/ports/337977

Log:
  Enable stage support

Modified:
  head/games/gnushogi/Makefile
  head/games/gnushogi/pkg-plist
  head/games/xshogi/Makefile

Modified: head/games/gnushogi/Makefile
==============================================================================
--- head/games/gnushogi/Makefile	Sun Dec 29 12:35:09 2013	(r337976)
+++ head/games/gnushogi/Makefile	Sun Dec 29 12:42:57 2013	(r337977)
@@ -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>

Modified: head/games/gnushogi/pkg-plist
==============================================================================
--- head/games/gnushogi/pkg-plist	Sun Dec 29 12:35:09 2013	(r337976)
+++ head/games/gnushogi/pkg-plist	Sun Dec 29 12:42:57 2013	(r337977)
@@ -1,4 +1,5 @@
 bin/gnushogi
+man/man6/gnushogi.6.gz
 %%PORTDOCS%%%%DOCSDIR%%/BOOKFILES
 %%PORTDOCS%%%%DOCSDIR%%/PORTING
 %%PORTDOCS%%%%DOCSDIR%%/gnushogi.html

Modified: head/games/xshogi/Makefile
==============================================================================
--- head/games/xshogi/Makefile	Sun Dec 29 12:35:09 2013	(r337976)
+++ head/games/xshogi/Makefile	Sun Dec 29 12:42:57 2013	(r337977)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312291242.rBTCgv66026946>