diff options
author | joerg <joerg@pkgsrc.org> | 2008-01-25 14:42:27 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-01-25 14:42:27 +0000 |
commit | 36115994e6df9e081e10554315b5a44a1231970f (patch) | |
tree | 337df60e26622b41fef43d3ea696bf915eb3ec2e /devel/gettext-lib | |
parent | 6389d0b28c08aa505765f47a03156863c9c61fec (diff) | |
download | pkgsrc-36115994e6df9e081e10554315b5a44a1231970f.tar.gz |
On Linux, just assume that if /usr/include/libintl.h exists, that it is
GNU gettext. This works around amd64 issues on Gentoo.
Diffstat (limited to 'devel/gettext-lib')
-rw-r--r-- | devel/gettext-lib/builtin.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/devel/gettext-lib/builtin.mk b/devel/gettext-lib/builtin.mk index 637484921dc..8c0183d2a91 100644 --- a/devel/gettext-lib/builtin.mk +++ b/devel/gettext-lib/builtin.mk @@ -1,4 +1,6 @@ -# $NetBSD: builtin.mk,v 1.36 2007/09/24 18:33:52 jlam Exp $ +# $NetBSD: builtin.mk,v 1.37 2008/01/25 14:42:27 joerg Exp $ + +.include "../../mk/bsd.fast.prefs.mk" BUILTIN_PKG:= gettext @@ -6,7 +8,9 @@ BUILTIN_FIND_LIBS:= intl BUILTIN_FIND_FILES_VAR:= H_GETTEXT _BLTN_H_GETTEXT BUILTIN_FIND_FILES.H_GETTEXT= /usr/include/libintl.h BUILTIN_FIND_FILES._BLTN_H_GETTEXT= /usr/include/libintl.h +.if ${OPSYS} != "Linux" BUILTIN_FIND_GREP.H_GETTEXT= \#define[ ]*__USE_GNU_GETTEXT +.endif .include "../../mk/buildlink3/bsd.builtin.mk" @@ -18,7 +22,7 @@ BUILTIN_FIND_GREP.H_GETTEXT= \#define[ ]*__USE_GNU_GETTEXT IS_BUILTIN.gettext= no . if empty(H_GETTEXT:M__nonexistent__) && \ empty(H_GETTEXT:M${LOCALBASE}/*) && \ - !empty(BUILTIN_LIB_FOUND.intl:M[yY][eE][sS]) + (!empty(BUILTIN_LIB_FOUND.intl:M[yY][eE][sS]) || ${OPSYS} == "Linux") IS_BUILTIN.gettext= yes . endif .endif |