aboutsummaryrefslogtreecommitdiffstats
path: root/games/ggz-txt-client
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2014-12-03 21:39:00 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2014-12-03 21:39:00 +0800
commitfd9d9e523b7ee644d8d9bbbcca6bb5605daf0629 (patch)
tree4747a0e330c5f106021408f98d6f474c19c3522d /games/ggz-txt-client
parent2ad15574c85a9cb354b1609646c14ee0b2ca809b (diff)
downloadfreebsd-ports-gnome-fd9d9e523b7ee644d8d9bbbcca6bb5605daf0629.tar.gz
freebsd-ports-gnome-fd9d9e523b7ee644d8d9bbbcca6bb5605daf0629.tar.zst
freebsd-ports-gnome-fd9d9e523b7ee644d8d9bbbcca6bb5605daf0629.zip
- Remove NLS option, doesn't build with it disabled
- Fix etc/ggz.modules handling - Drop @dirrm* from plist
Diffstat (limited to 'games/ggz-txt-client')
-rw-r--r--games/ggz-txt-client/Makefile9
-rw-r--r--games/ggz-txt-client/pkg-plist5
2 files changed, 4 insertions, 10 deletions
diff --git a/games/ggz-txt-client/Makefile b/games/ggz-txt-client/Makefile
index ec93b346c172..a8c8694931c4 100644
--- a/games/ggz-txt-client/Makefile
+++ b/games/ggz-txt-client/Makefile
@@ -9,7 +9,7 @@ CATEGORIES= games
MAINTAINER= ports@FreeBSD.org
COMMENT= The GGZ Gaming Zone - Console (Text) Frontend
-USES= readline
+USES= gettext readline
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-debug
USE_GGZ= client
@@ -19,12 +19,6 @@ INSTALL_TARGET= install-strip
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -pthread -lexpat
-OPTIONS_DEFINE= NLS
-OPTIONS_SUB= yes
-
-NLS_USES= gettext
-NLS_CONFIGURE_OFF= --disable-nls
-
post-patch:
@${REINPLACE_CMD} -e 's|_LDADD =|_LDADD = $$(LIB_GGZCORE)|' \
${WRKSRC}/tttxt/Makefile.in
@@ -32,6 +26,7 @@ post-patch:
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/share/ggz
@${INSTALL_DATA} ${WRKSRC}/tttxt/module.dsc ${STAGEDIR}/${PREFIX}/share/ggz/tttxt.dsc
+ ${RM} ${STAGEDIR}${PREFIX}/etc/ggz.modules
.include "${.CURDIR}/../libggz/bsd.ggz.mk"
.include <bsd.port.mk>
diff --git a/games/ggz-txt-client/pkg-plist b/games/ggz-txt-client/pkg-plist
index 3eda3685b375..74411283e5a8 100644
--- a/games/ggz-txt-client/pkg-plist
+++ b/games/ggz-txt-client/pkg-plist
@@ -5,6 +5,5 @@ share/applications/ggz-txt.desktop
@unexec ggz-config -D --remove --modfile=%D/share/ggz/tttxt.dsc --force
share/ggz/tttxt.dsc
@exec ggz-config -D --install --modfile=%D/share/ggz/tttxt.dsc --force
-%%NLS%%share/locale/de/LC_MESSAGES/ggz-txt.mo
-@dirrmtry share/ggz
-@dirrmtry lib/ggz
+share/locale/de/LC_MESSAGES/ggz-txt.mo
+@unexec if [ "x`cat %D/etc/ggz.modules`" = "x[Games]" ]; then echo -n > %D/etc/ggz.modules; fi