aboutsummaryrefslogtreecommitdiffstats
path: root/games/ggz-gtk-games
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2014-02-13 21:52:14 +0800
committermakc <makc@FreeBSD.org>2014-02-13 21:52:14 +0800
commit455cb15ea4578cd55ddf2e8e95580f2a9c50b766 (patch)
tree8098a30c5c1c1af887feb8cb2981e689ee14ef83 /games/ggz-gtk-games
parent32426c1f8e5bc8b35dee47ae1caa1ead9490aec6 (diff)
downloadfreebsd-ports-gnome-455cb15ea4578cd55ddf2e8e95580f2a9c50b766.tar.gz
freebsd-ports-gnome-455cb15ea4578cd55ddf2e8e95580f2a9c50b766.tar.zst
freebsd-ports-gnome-455cb15ea4578cd55ddf2e8e95580f2a9c50b766.zip
games/libggz and games/ggz-* ports:
- Switch to USES=libtool:oldver - Convert LIB_DEPENDS to new style - Add stage support - Use install-strip target - Remove deprecated PTHREAD_FLAGS/LIBS - Use options helpers - Add missing NLS option to OPTIONS_DEFINE [1] - Drop maintainership: kdegames don't need these ports anymore Prompted by: ehaupt [1]
Diffstat (limited to 'games/ggz-gtk-games')
-rw-r--r--games/ggz-gtk-games/Makefile39
1 files changed, 18 insertions, 21 deletions
diff --git a/games/ggz-gtk-games/Makefile b/games/ggz-gtk-games/Makefile
index a2e33890bcff..b44e647a7f54 100644
--- a/games/ggz-gtk-games/Makefile
+++ b/games/ggz-gtk-games/Makefile
@@ -6,7 +6,7 @@ PORTVERSION= ${GGZ_VERSION}
PORTREVISION= 6
CATEGORIES= games
-MAINTAINER= kde@FreeBSD.org
+MAINTAINER= ports@FreeBSD.org
COMMENT= The GGZ Gaming Zone - GTK+ Games
RUN_DEPENDS= ${LOCALBASE}/bin/ggz-gtk:${PORTSDIR}/games/ggz-gtk-client
@@ -17,30 +17,27 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-debug
USE_GGZ= client
-CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
-LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
+INSTALL_TARGET= install-strip
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib -pthread
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
+OPTIONS_DEFINE= NLS
+OPTIONS_SUB= yes
+
+NLS_USES= gettext
+NLS_CONFIGURE_ARGS= --disable-nls
post-install:
- ${INSTALL_DATA} ${WRKSRC}/chess/module.dsc ${PREFIX}/share/ggz/chess.dsc
- ${INSTALL_DATA} ${WRKSRC}/chinese-checkers/module.dsc ${PREFIX}/share/ggz/chinese-checkers.dsc
- ${INSTALL_DATA} ${WRKSRC}/combat/module.dsc ${PREFIX}/share/ggz/combat.dsc
- ${INSTALL_DATA} ${WRKSRC}/dots/module.dsc ${PREFIX}/share/ggz/dots.dsc
- ${INSTALL_DATA} ${WRKSRC}/ggzcards/module.dsc ${PREFIX}/share/ggz/ggzcards.dsc
- ${INSTALL_DATA} ${WRKSRC}/hastings/module.dsc ${PREFIX}/share/ggz/hastings.dsc
- ${INSTALL_DATA} ${WRKSRC}/reversi/module.dsc ${PREFIX}/share/ggz/reversi.dsc
- ${INSTALL_DATA} ${WRKSRC}/spades/module.dsc ${PREFIX}/share/ggz/spades.dsc
- ${INSTALL_DATA} ${WRKSRC}/tictactoe/module.dsc ${PREFIX}/share/ggz/tictactoe.dsc
+ ${INSTALL_DATA} ${WRKSRC}/chess/module.dsc ${STAGEDIR}/${PREFIX}/share/ggz/chess.dsc
+ ${INSTALL_DATA} ${WRKSRC}/chinese-checkers/module.dsc ${STAGEDIR}/${PREFIX}/share/ggz/chinese-checkers.dsc
+ ${INSTALL_DATA} ${WRKSRC}/combat/module.dsc ${STAGEDIR}/${PREFIX}/share/ggz/combat.dsc
+ ${INSTALL_DATA} ${WRKSRC}/dots/module.dsc ${STAGEDIR}/${PREFIX}/share/ggz/dots.dsc
+ ${INSTALL_DATA} ${WRKSRC}/ggzcards/module.dsc ${STAGEDIR}/${PREFIX}/share/ggz/ggzcards.dsc
+ ${INSTALL_DATA} ${WRKSRC}/hastings/module.dsc ${STAGEDIR}/${PREFIX}/share/ggz/hastings.dsc
+ ${INSTALL_DATA} ${WRKSRC}/reversi/module.dsc ${STAGEDIR}/${PREFIX}/share/ggz/reversi.dsc
+ ${INSTALL_DATA} ${WRKSRC}/spades/module.dsc ${STAGEDIR}/${PREFIX}/share/ggz/spades.dsc
+ ${INSTALL_DATA} ${WRKSRC}/tictactoe/module.dsc ${STAGEDIR}/${PREFIX}/share/ggz/tictactoe.dsc
.include "${.CURDIR}/../libggz/bsd.ggz.mk"
.include <bsd.port.mk>