aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-02-20 00:06:32 +0800
committermarino <marino@FreeBSD.org>2014-02-20 00:06:32 +0800
commit06442f0cdcbbcd1b2db3885ee6e43041ee163e45 (patch)
tree3d2015896e1bf8156c5a7ab25855704ecc9ef494 /games
parent0894dce1a008a72ec42fd48ea3fb58674a48b73a (diff)
downloadfreebsd-ports-gnome-06442f0cdcbbcd1b2db3885ee6e43041ee163e45.tar.gz
freebsd-ports-gnome-06442f0cdcbbcd1b2db3885ee6e43041ee163e45.tar.zst
freebsd-ports-gnome-06442f0cdcbbcd1b2db3885ee6e43041ee163e45.zip
games/ggz-txt-client: Fix for modern binutils
Needs explicit linking to libexpat and libggzcore. While here, bring in USES=readline from dports.
Diffstat (limited to 'games')
-rw-r--r--games/ggz-txt-client/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/games/ggz-txt-client/Makefile b/games/ggz-txt-client/Makefile
index a7c000a800b9..d1209d537f26 100644
--- a/games/ggz-txt-client/Makefile
+++ b/games/ggz-txt-client/Makefile
@@ -9,6 +9,7 @@ CATEGORIES= games
MAINTAINER= ports@FreeBSD.org
COMMENT= The GGZ Gaming Zone - Console (Text) Frontend
+USES= readline
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-debug
USE_GGZ= client
@@ -16,7 +17,7 @@ USE_GGZ= client
INSTALL_TARGET= install-strip
CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib -pthread
+LDFLAGS+= -L${LOCALBASE}/lib -pthread -lexpat
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
@@ -24,6 +25,10 @@ OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ARGS= --disable-nls
+post-patch:
+ @${REINPLACE_CMD} -e 's|_LDADD =|_LDADD = $$(LIB_GGZCORE)|' \
+ ${WRKSRC}/tttxt/Makefile.in
+
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/share/ggz
@${INSTALL_DATA} ${WRKSRC}/tttxt/module.dsc ${STAGEDIR}/${PREFIX}/share/ggz/tttxt.dsc