aboutsummaryrefslogtreecommitdiffstats
path: root/misc/pinfo
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2004-03-25 20:07:44 +0800
committerkris <kris@FreeBSD.org>2004-03-25 20:07:44 +0800
commit25d2b0b36e41c43237af93cf1925c03b81647e31 (patch)
tree5b81534bfabff49f1eeb00d397ae3d93d1f08f0c /misc/pinfo
parentdf24471062b1f452ed4ef2df22495a4bac8aa6bb (diff)
downloadfreebsd-ports-gnome-25d2b0b36e41c43237af93cf1925c03b81647e31.tar.gz
freebsd-ports-gnome-25d2b0b36e41c43237af93cf1925c03b81647e31.tar.zst
freebsd-ports-gnome-25d2b0b36e41c43237af93cf1925c03b81647e31.zip
Support WITHOUT_NLS
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