diff options
author | obache <obache@pkgsrc.org> | 2013-05-02 12:39:00 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2013-05-02 12:39:00 +0000 |
commit | a0a37fcb5aa12717e7312d13b3cdf715be0a95e9 (patch) | |
tree | 11124795a346f22821602ad8e872262021b41fc3 /devel | |
parent | 8c0b07c06d54f867576e00f18b9680df3441af8f (diff) | |
download | pkgsrc-a0a37fcb5aa12717e7312d13b3cdf715be0a95e9.tar.gz |
Change builtin features good enough to replace GNU gettext from ngettext()
to dcgettext(), because BUILDLINK_API_DEPENDS.gettext-lib is now >=0.18.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/gettext-lib/builtin.mk | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/devel/gettext-lib/builtin.mk b/devel/gettext-lib/builtin.mk index ea214fa3c49..224c835e2ad 100644 --- a/devel/gettext-lib/builtin.mk +++ b/devel/gettext-lib/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.41 2011/04/12 17:41:28 adam Exp $ +# $NetBSD: builtin.mk,v 1.42 2013/05/02 12:39:00 obache Exp $ .include "../../mk/bsd.fast.prefs.mk" @@ -6,13 +6,16 @@ BUILTIN_PKG:= gettext BUILTIN_FIND_LIBS:= intl BUILTIN_FIND_FILES_VAR:= H_GETTEXT H_GENTOO_GETTEXT \ - H_NGETTEXT_GETTEXT + H_NGETTEXT_GETTEXT \ + H_DCGETTEXT_GETTEXT BUILTIN_FIND_FILES.H_GETTEXT= /usr/include/libintl.h BUILTIN_FIND_GREP.H_GETTEXT= \#define[ ]*__USE_GNU_GETTEXT BUILTIN_FIND_FILES.H_GENTOO_GETTEXT= /usr/include/libintl.h BUILTIN_FIND_GREP.H_GENTOO_GETTEXT= gentoo-multilib/.*/libintl.h BUILTIN_FIND_FILES.H_NGETTEXT_GETTEXT= /usr/include/libintl.h BUILTIN_FIND_GREP.H_NGETTEXT_GETTEXT= char.*ngettext +BUILTIN_FIND_FILES.H_DCGETTEXT_GETTEXT= /usr/include/libintl.h +BUILTIN_FIND_GREP.H_DCGETTEXT_GETTEXT= char.*dcgettext .include "../../mk/buildlink3/bsd.builtin.mk" @@ -62,10 +65,10 @@ USE_BUILTIN.gettext!= \ . endif # XXX # XXX By default, assume that the native gettext implementation is good -# XXX enough to replace GNU gettext if it supplies ngettext(). +# XXX enough to replace GNU gettext if it supplies dcgettext(). # XXX -. if empty(H_NGETTEXT_GETTEXT:M__nonexistent__) && \ - empty(H_NGETTEXT_GETTEXT:M${LOCALBASE}/*) +. if empty(H_DCGETTEXT_GETTEXT:M__nonexistent__) && \ + empty(H_DCGETTEXT_GETTEXT:M${LOCALBASE}/*) USE_BUILTIN.gettext= yes . endif # |