aboutsummaryrefslogtreecommitdiffstats
path: root/comms/gnokii
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-07-11 18:55:23 +0800
committerkrion <krion@FreeBSD.org>2004-07-11 18:55:23 +0800
commit179a8d654716b2cd687f5461f001a54287c17c5d (patch)
treeb16220a7c809b93807556a2dc52787ee0663f26e /comms/gnokii
parent465c8da9f76f1946f1f05b1d35d388a397ecfa5a (diff)
downloadfreebsd-ports-gnome-179a8d654716b2cd687f5461f001a54287c17c5d.tar.gz
freebsd-ports-gnome-179a8d654716b2cd687f5461f001a54287c17c5d.tar.zst
freebsd-ports-gnome-179a8d654716b2cd687f5461f001a54287c17c5d.zip
Support WITHOUT_NLS
Diffstat (limited to 'comms/gnokii')
-rw-r--r--comms/gnokii/Makefile9
-rw-r--r--comms/gnokii/pkg-plist20
2 files changed, 18 insertions, 11 deletions
diff --git a/comms/gnokii/Makefile b/comms/gnokii/Makefile
index a4293d0d0089..b324374e071e 100644
--- a/comms/gnokii/Makefile
+++ b/comms/gnokii/Makefile
@@ -18,7 +18,6 @@ MAINTAINER= mad@madpilot.net
COMMENT= Tools to talk to GSM cellular phones
USE_REINPLACE= yes
-USE_GETTEXT= yes
USE_GMAKE= yes
USE_BZIP2= yes
INSTALLS_SHLIB= yes
@@ -82,6 +81,14 @@ PLIST_SUB+= X11=''
MAN1+= xgnokii.1
.endif
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
pre-fetch:
@${ECHO}
@${ECHO} "If you plan using the smsd daemon for automatically receiving,"
diff --git a/comms/gnokii/pkg-plist b/comms/gnokii/pkg-plist
index 69b36c605ed3..ec1990e14ba7 100644
--- a/comms/gnokii/pkg-plist
+++ b/comms/gnokii/pkg-plist
@@ -78,16 +78,16 @@ sbin/mgnokiidev
%%PORTDOCS%%@dirrm %%DOCSDIR%%/sample
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%PORTDOCS%%@exec mkdir -m 755 %D/%%DOCSDIR%%/sample/vCard
-share/locale/cs/LC_MESSAGES/gnokii.mo
-share/locale/de/LC_MESSAGES/gnokii.mo
-share/locale/et/LC_MESSAGES/gnokii.mo
-share/locale/fi/LC_MESSAGES/gnokii.mo
-share/locale/fr/LC_MESSAGES/gnokii.mo
-share/locale/it/LC_MESSAGES/gnokii.mo
-share/locale/nl/LC_MESSAGES/gnokii.mo
-share/locale/pl/LC_MESSAGES/gnokii.mo
-share/locale/sk/LC_MESSAGES/gnokii.mo
-share/locale/sl/LC_MESSAGES/gnokii.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/gnokii.mo
+%%NLS%%share/locale/de/LC_MESSAGES/gnokii.mo
+%%NLS%%share/locale/et/LC_MESSAGES/gnokii.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/gnokii.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gnokii.mo
+%%NLS%%share/locale/it/LC_MESSAGES/gnokii.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/gnokii.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/gnokii.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/gnokii.mo
+%%NLS%%share/locale/sl/LC_MESSAGES/gnokii.mo
%%SMSD%%share/smsd/README
%%SMSD%%share/smsd/action
%%SMSD%%lib/smsd/libfile.a