summaryrefslogtreecommitdiff
path: root/devel/gettext-lib
diff options
context:
space:
mode:
authorminskim <minskim>2004-10-14 03:16:35 +0000
committerminskim <minskim>2004-10-14 03:16:35 +0000
commit0946cf21cd3dd82dad24b53122bbbe1131293246 (patch)
treea4413031e3a1d7846c39d3e0ce98fcf40592fb7f /devel/gettext-lib
parentc31ae131d4e93fd363f954f1d6ad6f9acd13ab3f (diff)
downloadpkgsrc-0946cf21cd3dd82dad24b53122bbbe1131293246.tar.gz
If builtin libintl has ngettext(), force packages requiring gettext
API version 2 to choose the builtin library over GNU gettext shipped with each package. In fact, the gettext library included in a package should never be used. Otherwise every such package would install charset.alias and locale.alias, causing conflicts with each other when pkgviews is enabled. For platforms without ngettext() in their builtin libintl (assumed to be gettext-lib-0.10.35nb1 by gettext-lib/builtin.mk), packages requiring gettext API version 2 must add dependency on gettext-lib>=0.10.36 to share devel/gettext-lib rather than to link statically against the included gettext library.
Diffstat (limited to 'devel/gettext-lib')
-rw-r--r--devel/gettext-lib/builtin.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/devel/gettext-lib/builtin.mk b/devel/gettext-lib/builtin.mk
index 6781a550d7e..19b9cf85b10 100644
--- a/devel/gettext-lib/builtin.mk
+++ b/devel/gettext-lib/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.10 2004/10/04 10:42:39 grant Exp $
+# $NetBSD: builtin.mk,v 1.11 2004/10/14 03:16:35 minskim Exp $
.if !defined(_BLNK_LIBINTL_FOUND)
_BLNK_LIBINTL_FOUND!= \
@@ -162,6 +162,9 @@ CONFIGURE_ENV+= INTLLIBS="${BUILDLINK_LDADD.gettext}"
. if !empty(USE_BUILTIN.gettext:M[yY][eE][sS])
. if ${_BLNK_LIBINTL_FOUND} == "yes"
CONFIGURE_ENV+= gt_cv_func_gnugettext1_libintl="yes"
+. if defined(_GETTEXT_NGETTEXT) && !empty(_GETTEXT_NGETTEXT:Myes)
+CONFIGURE_ENV+= gt_cv_func_gnugettext2_libintl="yes"
+. endif
. endif
. endif
. if !empty(USE_BUILTIN.gettext:M[nN][oO])