aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-07-11 00:33:06 +0800
committerkrion <krion@FreeBSD.org>2004-07-11 00:33:06 +0800
commita3d8a31c4900e5d4655637b10af28e70a5791a1b (patch)
tree1bea712fa7b8471517834460fc75f54dbbe08a55 /security
parent60ebc584ca3415eace8714d98e91caa6bf940636 (diff)
downloadfreebsd-ports-graphics-a3d8a31c4900e5d4655637b10af28e70a5791a1b.tar.gz
freebsd-ports-graphics-a3d8a31c4900e5d4655637b10af28e70a5791a1b.tar.zst
freebsd-ports-graphics-a3d8a31c4900e5d4655637b10af28e70a5791a1b.zip
Support WITHOUT_NLS
Diffstat (limited to 'security')
-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 1e74428ca6c..e1bd220d2d3 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 f54790ff6c9..e3480d64078 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