aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/tinc/Makefile9
-rw-r--r--security/tinc/pkg-plist2
2 files changed, 9 insertions, 2 deletions
diff --git a/security/tinc/Makefile b/security/tinc/Makefile
index 1e74428ca6c4..e1bd220d2d31 100644
--- a/security/tinc/Makefile
+++ b/security/tinc/Makefile
@@ -19,7 +19,6 @@ COMMENT= A Virtual Private Network (VPN) daemon
LIB_DEPENDS= lzo.1:${PORTSDIR}/archivers/lzo
-USE_GETTEXT= yes
USE_OPENSSL= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
@@ -33,6 +32,14 @@ MAN5= tinc.conf.5
MAN8= tincd.8
INFO= tinc
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
pre-configure:
${REINPLACE_CMD} \
's/OpenSSL_add_all_algorithms/OpenSSL_add_all_ciphers/' \
diff --git a/security/tinc/pkg-plist b/security/tinc/pkg-plist
index f54790ff6c9c..e3480d640787 100644
--- a/security/tinc/pkg-plist
+++ b/security/tinc/pkg-plist
@@ -1,2 +1,2 @@
sbin/tincd
-share/locale/nl/LC_MESSAGES/tinc.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/tinc.mo