aboutsummaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-03-28 14:46:18 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-03-28 14:46:18 +0000
commit4a0f817aacdf1dd5639fddebc681258adcade5db (patch)
tree1811b5a2c91c3198c6feda06d44c5d34e2cd8aa5 /dns
parent806a70821f7981144bbaba4c3677d15e01e5db53 (diff)
downloadports-4a0f817aacdf1dd5639fddebc681258adcade5db.tar.gz
ports-4a0f817aacdf1dd5639fddebc681258adcade5db.zip
Notes
Diffstat (limited to 'dns')
-rw-r--r--dns/libidn/Makefile9
-rw-r--r--dns/libidn/pkg-plist10
2 files changed, 13 insertions, 6 deletions
diff --git a/dns/libidn/Makefile b/dns/libidn/Makefile
index a35f0cf97b9f..13ed21e70c1b 100644
--- a/dns/libidn/Makefile
+++ b/dns/libidn/Makefile
@@ -18,7 +18,6 @@ COMMENT= Internationalized Domain Names command line tool
BUILD_DEPENDS= gengetopt:${PORTSDIR}/devel/gengetopt
USE_GETOPT_LONG= yes
-USE_GETTEXT= yes
USE_GNOME= gnomehack
USE_ICONV= yes
USE_LIBTOOL_VER= 13
@@ -40,6 +39,14 @@ PLIST_SUB+= EMACS="" EMACSDIR=lib/xemacs
PLIST_SUB+= EMACS="@comment " EMACSDIR=""
.endif
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|@image{components}||g' \
${WRKSRC}/doc/libidn.texi
diff --git a/dns/libidn/pkg-plist b/dns/libidn/pkg-plist
index 527d87f72503..b12de9c0dc7d 100644
--- a/dns/libidn/pkg-plist
+++ b/dns/libidn/pkg-plist
@@ -10,11 +10,11 @@ lib/libidn.so.13
libdata/pkgconfig/libidn.pc
%%EMACS%%%%EMACSDIR%%/site-lisp/idna.el
%%EMACS%%%%EMACSDIR%%/site-lisp/punycode.el
-share/locale/da/LC_MESSAGES/libidn.mo
-share/locale/fr/LC_MESSAGES/libidn.mo
-share/locale/pl/LC_MESSAGES/libidn.mo
-share/locale/sr/LC_MESSAGES/libidn.mo
-share/locale/sv/LC_MESSAGES/libidn.mo
+%%NLS%%share/locale/da/LC_MESSAGES/libidn.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/libidn.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/libidn.mo
+%%NLS%%share/locale/sr/LC_MESSAGES/libidn.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/libidn.mo
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/FAQ
@unexec rmdir %D/lib/pkgconfig 2>/dev/null || true