aboutsummaryrefslogtreecommitdiffstats
path: root/games/glchess/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/glchess/Makefile')
-rw-r--r--games/glchess/Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/games/glchess/Makefile b/games/glchess/Makefile
index bd6e7f2cd32a..f1728a8d3a47 100644
--- a/games/glchess/Makefile
+++ b/games/glchess/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= glchess
-PORTVERSION= 0.9.12
+PORTVERSION= 1.0
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -27,16 +27,17 @@ post-patch:
@${REINPLACE_CMD} -e 's|share/games|share|g' ${WRKSRC}/setup.py
post-build:
-.for lang in de es fr it tr
- cd ${WRKSRC}/po && ${LOCALBASE}/bin/msgfmt ${lang}.po -o ${lang}.mo
-.endfor
+ @(for lang in `${MAKE} -f ${WRKSRC}/Makefile -V LANGUAGES` ; do \
+ cd ${WRKSRC}/po ; \
+ ${LOCALBASE}/bin/msgfmt $$lang.po -o $$lang.mo ; \
+ done)
post-install:
-.for lang in de es fr it tr
- @${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
- ${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
- ${PREFIX}/share/locale/${lang}/LC_MESSAGES/glchess.mo
-.endfor
+ @(for lang in `${MAKE} -f ${WRKSRC}/Makefile -V LANGUAGES` ; do \
+ ${MKDIR} ${PREFIX}/share/locale/$$lang/LC_MESSAGES ; \
+ ${INSTALL_DATA} ${WRKSRC}/po/$$lang.mo \
+ ${PREFIX}/share/locale/$$lang/LC_MESSAGES/glchess.mo ; \
+ done)
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ChangeLog README TODO