aboutsummaryrefslogtreecommitdiff
path: root/games/ltris
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-04-26 16:39:14 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-04-26 16:39:14 +0000
commitbc62127a69294fd3340ea793685953d98ff835dc (patch)
treed124c4d6f965d5152806ebfbf40e1b5a25860ddb /games/ltris
parente8dd5f52410bdf2a989023706699373d47296008 (diff)
downloadports-bc62127a69294fd3340ea793685953d98ff835dc.tar.gz
ports-bc62127a69294fd3340ea793685953d98ff835dc.zip
Convert from USE_GETTEXT to USES= gettext
While here: - Trim some headers - Convert to new options framework
Notes
Notes: svn path=/head/; revision=316624
Diffstat (limited to 'games/ltris')
-rw-r--r--games/ltris/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/games/ltris/Makefile b/games/ltris/Makefile
index 9765bf3634c4..f0a591d35ba1 100644
--- a/games/ltris/Makefile
+++ b/games/ltris/Makefile
@@ -17,14 +17,14 @@ CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --localstatedir=${DATADIR}
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
+USES+= gettext
+PLIST_SUB+= NLS=""
+.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
-.else
-USE_GETTEXT= yes
-PLIST_SUB+= NLS=""
.endif
post-patch:
@@ -38,4 +38,4 @@ post-install:
@${CHMOD} 0664 ${DATADIR}/${PORTNAME}.hscr
@${CHOWN} root:games ${DATADIR}/${PORTNAME}.hscr
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>