aboutsummaryrefslogtreecommitdiff
path: root/misc/pinfo
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2004-03-25 12:07:44 +0000
committerKris Kennaway <kris@FreeBSD.org>2004-03-25 12:07:44 +0000
commit5e5eacdbfbf0ecf459ee3b3a7bd18734daf71e2f (patch)
treeb7dc0804f5479507332ec4729aae47e5be1440cc /misc/pinfo
parent563748f353961ea2175665d74ee026e99a49489e (diff)
downloadports-5e5eacdbfbf0ecf459ee3b3a7bd18734daf71e2f.tar.gz
ports-5e5eacdbfbf0ecf459ee3b3a7bd18734daf71e2f.zip
Support WITHOUT_NLS
Notes
Notes: svn path=/head/; revision=105228
Diffstat (limited to 'misc/pinfo')
-rw-r--r--misc/pinfo/Makefile7
-rw-r--r--misc/pinfo/pkg-plist12
2 files changed, 13 insertions, 6 deletions
diff --git a/misc/pinfo/Makefile b/misc/pinfo/Makefile
index b16381194efb..9e2644ba2054 100644
--- a/misc/pinfo/Makefile
+++ b/misc/pinfo/Makefile
@@ -19,7 +19,14 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-readline \
--with-localedir=${PREFIX}/share/locale
+
+.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
MAN1= pinfo.1
INFO= pinfo
diff --git a/misc/pinfo/pkg-plist b/misc/pinfo/pkg-plist
index 7509ca79b4de..d57bd5c6a179 100644
--- a/misc/pinfo/pkg-plist
+++ b/misc/pinfo/pkg-plist
@@ -1,8 +1,8 @@
bin/pinfo
etc/pinforc
-share/locale/cs/LC_MESSAGES/pinfo.mo
-share/locale/de/LC_MESSAGES/pinfo.mo
-share/locale/ja/LC_MESSAGES/pinfo.mo
-share/locale/pl/LC_MESSAGES/pinfo.mo
-share/locale/ru/LC_MESSAGES/pinfo.mo
-share/locale/sv/LC_MESSAGES/pinfo.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/pinfo.mo
+%%NLS%%share/locale/de/LC_MESSAGES/pinfo.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/pinfo.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/pinfo.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/pinfo.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/pinfo.mo