diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2017-04-29 17:00:08 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2017-04-29 17:00:08 +0800 |
commit | 2a3787e397567ea7b50dfccbb3a1396dddbc1ece (patch) | |
tree | edfde48a9e6b3c601fd71f4b0698ec067edf92b8 /games/glchess | |
parent | 97341b1887dd53b69881e82bd7bf06973ecc95ec (diff) | |
download | freebsd-ports-gnome-2a3787e397567ea7b50dfccbb3a1396dddbc1ece.tar.gz freebsd-ports-gnome-2a3787e397567ea7b50dfccbb3a1396dddbc1ece.tar.zst freebsd-ports-gnome-2a3787e397567ea7b50dfccbb3a1396dddbc1ece.zip |
- Switch to options helpers
- Update WWW
Diffstat (limited to 'games/glchess')
-rw-r--r-- | games/glchess/Makefile | 12 | ||||
-rw-r--r-- | games/glchess/pkg-descr | 2 |
2 files changed, 5 insertions, 9 deletions
diff --git a/games/glchess/Makefile b/games/glchess/Makefile index 856d1f2f4076..bcadea05ef3f 100644 --- a/games/glchess/Makefile +++ b/games/glchess/Makefile @@ -22,30 +22,26 @@ OPTIONS_SUB= yes NLS_USES= gettext NLS_CONFIGURE_ENABLE= nls -.include <bsd.port.options.mk> - post-patch: @${GREP} -lR "/usr/share/games/glchess" ${WRKSRC} | ${XARGS} \ ${REINPLACE_CMD} -e 's|/usr/share/games/glchess|${DATADIR}|g' @${REINPLACE_CMD} -e 's|share/games/glchess|share/glchess|g ; \ s|share/gconf/schemas|etc/gconf/schemas|g' ${WRKSRC}/setup.py -post-build: -.if ${PORT_OPTIONS:MNLS} +post-build-NLS-on: @(for lang in `${MAKE} -f ${WRKSRC}/Makefile -V LANGUAGES` ; do \ cd ${WRKSRC}/po ; \ ${LOCALBASE}/bin/msgfmt $$lang.po -o $$lang.mo ; \ done) -.endif -post-install: -.if ${PORT_OPTIONS:MNLS} +post-install-NLS-on: @(for lang in `${MAKE} -f ${WRKSRC}/Makefile -V LANGUAGES` ; do \ ${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/$$lang/LC_MESSAGES ; \ ${INSTALL_DATA} ${WRKSRC}/po/$$lang.mo \ ${STAGEDIR}${PREFIX}/share/locale/$$lang/LC_MESSAGES/glchess.mo ; \ done) -.endif + +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for file in ChangeLog README TODO ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR} diff --git a/games/glchess/pkg-descr b/games/glchess/pkg-descr index 9a489cf9f39a..ca3d5836c96f 100644 --- a/games/glchess/pkg-descr +++ b/games/glchess/pkg-descr @@ -3,4 +3,4 @@ Communication Protocol (CECP) by Tim Mann. This means it can currently use Crafty and GNU Chess as AIs. You can also play Human vs. Human, but so far not over a network. -WWW: http://glchess.sourceforge.net/ +WWW: https://sourceforge.net/projects/glchess/ |