aboutsummaryrefslogtreecommitdiff
path: root/editors/ssed
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-07-10 19:18:46 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-07-10 19:18:46 +0000
commit8d30470d247850e1cbf0a80e7e53eb4a792f2708 (patch)
tree58f6f0dbfbed9ce123beb3f204e323dc8a6c83a8 /editors/ssed
parent7113db1204c6c92ae0fe8268a49af4ebbc3910c9 (diff)
downloadports-8d30470d247850e1cbf0a80e7e53eb4a792f2708.tar.gz
ports-8d30470d247850e1cbf0a80e7e53eb4a792f2708.zip
Support WITHOUT_NLS
Notes
Notes: svn path=/head/; revision=113344
Diffstat (limited to 'editors/ssed')
-rw-r--r--editors/ssed/Makefile9
-rw-r--r--editors/ssed/pkg-plist18
2 files changed, 17 insertions, 10 deletions
diff --git a/editors/ssed/Makefile b/editors/ssed/Makefile
index e1ec6be1d6ce..808194c74bf7 100644
--- a/editors/ssed/Makefile
+++ b/editors/ssed/Makefile
@@ -17,10 +17,17 @@ COMMENT= Super-sed is a heavily enhanced version of sed
LIB_DEPENDS= iconv:${PORTSDIR}/converters/libiconv
-USE_GETTEXT= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} --program-prefix=s
MAN1= ssed.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/editors/ssed/pkg-plist b/editors/ssed/pkg-plist
index 1c2f9072e3ab..a7c90bb33c55 100644
--- a/editors/ssed/pkg-plist
+++ b/editors/ssed/pkg-plist
@@ -1,10 +1,10 @@
bin/ssed
-share/locale/nl/LC_MESSAGES/ssed.mo
-share/locale/fr/LC_MESSAGES/ssed.mo
-share/locale/ru/LC_MESSAGES/ssed.mo
-share/locale/de/LC_MESSAGES/ssed.mo
-share/locale/it/LC_MESSAGES/ssed.mo
-share/locale/el/LC_MESSAGES/ssed.mo
-share/locale/sk/LC_MESSAGES/ssed.mo
-share/locale/pt_BR/LC_MESSAGES/ssed.mo
-share/locale/sv/LC_MESSAGES/ssed.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/ssed.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/ssed.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/ssed.mo
+%%NLS%%share/locale/de/LC_MESSAGES/ssed.mo
+%%NLS%%share/locale/it/LC_MESSAGES/ssed.mo
+%%NLS%%share/locale/el/LC_MESSAGES/ssed.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/ssed.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/ssed.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/ssed.mo