mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
Enable stage support
This commit is contained in:
parent
e9ac0f7bda
commit
b60587959c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337977
@ -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>
|
||||
|
@ -1,4 +1,5 @@
|
||||
bin/gnushogi
|
||||
man/man6/gnushogi.6.gz
|
||||
%%PORTDOCS%%%%DOCSDIR%%/BOOKFILES
|
||||
%%PORTDOCS%%%%DOCSDIR%%/PORTING
|
||||
%%PORTDOCS%%%%DOCSDIR%%/gnushogi.html
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user