aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-07-11 03:18:46 +0800
committerkrion <krion@FreeBSD.org>2004-07-11 03:18:46 +0800
commit5886fb8ec54689066f2f72e44740b805bd5420d2 (patch)
tree93c1430648e13c595e5f450aa9c447f7de792d2b /editors
parentf3ce307342532289604b4b22638f46ff8e627ae4 (diff)
downloadfreebsd-ports-graphics-5886fb8ec54689066f2f72e44740b805bd5420d2.tar.gz
freebsd-ports-graphics-5886fb8ec54689066f2f72e44740b805bd5420d2.tar.zst
freebsd-ports-graphics-5886fb8ec54689066f2f72e44740b805bd5420d2.zip
Support WITHOUT_NLS
Diffstat (limited to 'editors')
-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 e1ec6be1d6c..808194c74bf 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 1c2f9072e3a..a7c90bb33c5 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