pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/gettext-lib On Linux, just assume that if /usr/i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9b35f3c89058
branches:  trunk
changeset: 538037:9b35f3c89058
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Jan 25 14:42:27 2008 +0000

description:
On Linux, just assume that if /usr/include/libintl.h exists, that it is
GNU gettext. This works around amd64 issues on Gentoo.

diffstat:

 devel/gettext-lib/builtin.mk |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 2f9cdd0f5232 -r 9b35f3c89058 devel/gettext-lib/builtin.mk
--- a/devel/gettext-lib/builtin.mk      Fri Jan 25 14:16:33 2008 +0000
+++ b/devel/gettext-lib/builtin.mk      Fri Jan 25 14:42:27 2008 +0000
@@ -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_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 @@
 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



Home | Main Index | Thread Index | Old Index