diff options
author | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2023-10-21 10:06:18 +0000 |
---|---|---|
committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2023-10-21 10:10:51 +0000 |
commit | 5047fefcd69a7dc7d84c39633d2d08558c30634f (patch) | |
tree | 10ac0aa981c3a061547aace0590cf0ef74dba6be | |
parent | 33e1ace9db0633e5fb0a2aa135b0db7208874db3 (diff) | |
download | ports-5047fefcd69a7dc7d84c39633d2d08558c30634f.tar.gz ports-5047fefcd69a7dc7d84c39633d2d08558c30634f.zip |
games/gnushogi: Optionize INFO
- Add LICENSE GPLv3
- Add OPTIONSNG targets rather than older targets
- Remove NOOP post-patch directives
-rw-r--r-- | games/gnushogi/Makefile | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/games/gnushogi/Makefile b/games/gnushogi/Makefile index bcad642c9758..e8e15367894f 100644 --- a/games/gnushogi/Makefile +++ b/games/gnushogi/Makefile @@ -8,26 +8,26 @@ MAINTAINER= ports@FreeBSD.org COMMENT= GNU version of Shogi WWW= http://www.cs.caltech.edu/~mvanier/hacking/gnushogi/gnushogi.html -USES= makeinfo +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + GNU_CONFIGURE= yes MAKE_JOBS_UNSAFE= yes -INFO= gnushogi +OPTIONS_DEFINE= DOCS INFO +OPTIONS_DEFAULT= INFO -OPTIONS_DEFINE= DOCS +INFO_USES= makeinfo +INFO_INFO= gnushogi -post-extract: +post-extract-INFO-on: -@${RM} ${WRKSRC}/doc/gnushogi.info* post-patch: - @${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 @${REINPLACE_CMD} -e '/<sys\/file.h>/d' \ ${WRKSRC}/gnushogi/*dsp.c -pre-build: +pre-build-INFO-on: cd ${WRKSRC}/doc && makeinfo --no-split gnushogi do-install: @@ -35,7 +35,11 @@ do-install: @${INSTALL_MAN} ${WRKSRC}/doc/gnushogi.6 ${STAGEDIR}${MANPREFIX}/man/man6 @${MKDIR} ${STAGEDIR}${DATADIR} @${INSTALL_DATA} ${WRKSRC}/gnushogi/gnushogi.bbk ${STAGEDIR}${DATADIR} + +do-install-INFO-on: @${INSTALL_DATA} ${WRKSRC}/doc/gnushogi.info ${STAGEDIR}${PREFIX}/${INFO_PATH} + +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/doc/BOOKFILES ${STAGEDIR}${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/doc/PORTING ${STAGEDIR}${DOCSDIR} |