1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- Remove NLS option, doesn't build with it disabled

- Fix etc/ggz.modules handling
- Drop @dirrm* from plist
This commit is contained in:
Dmitry Marakasov 2014-12-03 13:39:00 +00:00
parent 820f2b06b4
commit e47155b818
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=373824
2 changed files with 4 additions and 10 deletions

View File

@ -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>

View File

@ -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