summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-07-11 10:55:23 +0000
committerkrion <krion@FreeBSD.org>2004-07-11 10:55:23 +0000
commit179a8d654716b2cd687f5461f001a54287c17c5d (patch)
treeb16220a7c809b93807556a2dc52787ee0663f26e /games
parent465c8da9f76f1946f1f05b1d35d388a397ecfa5a (diff)
downloadFreeBSD-ports-179a8d654716b2cd687f5461f001a54287c17c5d.zip
FreeBSD-ports-179a8d654716b2cd687f5461f001a54287c17c5d.tar.gz
Support WITHOUT_NLS
Diffstat (limited to 'games')
-rw-r--r--games/gtypist/Makefile9
-rw-r--r--games/gtypist/pkg-plist14
2 files changed, 15 insertions, 8 deletions
diff --git a/games/gtypist/Makefile b/games/gtypist/Makefile
index ebe0202..bcc03f5 100644
--- a/games/gtypist/Makefile
+++ b/games/gtypist/Makefile
@@ -15,7 +15,6 @@ MAINTAINER= naddy@FreeBSD.org
COMMENT= Interactive typing tutor
USE_BZIP2= yes
-USE_GETTEXT= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
@@ -25,4 +24,12 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
INFO= gtypist
MAN1= gtypist.1 typefortune.1
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
.include <bsd.port.mk>
diff --git a/games/gtypist/pkg-plist b/games/gtypist/pkg-plist
index 43f4a0a..0398586 100644
--- a/games/gtypist/pkg-plist
+++ b/games/gtypist/pkg-plist
@@ -25,11 +25,11 @@ share/gtypist/t.typ
share/gtypist/ttde.typ
share/gtypist/u.typ
share/gtypist/v.typ
-share/locale/cs/LC_MESSAGES/gtypist.mo
-share/locale/de/LC_MESSAGES/gtypist.mo
-share/locale/es/LC_MESSAGES/gtypist.mo
-share/locale/fi/LC_MESSAGES/gtypist.mo
-share/locale/fr/LC_MESSAGES/gtypist.mo
-share/locale/ru/LC_MESSAGES/gtypist.mo
-share/locale/zh_TW/LC_MESSAGES/gtypist.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/gtypist.mo
+%%NLS%%share/locale/de/LC_MESSAGES/gtypist.mo
+%%NLS%%share/locale/es/LC_MESSAGES/gtypist.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/gtypist.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gtypist.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/gtypist.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/gtypist.mo
@dirrm share/gtypist
OpenPOWER on IntegriCloud