diff options
author | jlam <jlam@pkgsrc.org> | 2005-06-01 21:07:59 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-06-01 21:07:59 +0000 |
commit | 10ecae82f40edb9eab931f2bae8132eeb4da2b80 (patch) | |
tree | 6d9625ec2d2760eb88d3191c059203787e780a8b | |
parent | 1370de126cdef0c71c1ddc596d4c65c5945cd65a (diff) | |
download | pkgsrc-10ecae82f40edb9eab931f2bae8132eeb4da2b80.tar.gz |
Ensure that BUILTIN_GETTEXT_NGETTEXT is always defined.
-rw-r--r-- | devel/gettext-lib/builtin.mk | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/devel/gettext-lib/builtin.mk b/devel/gettext-lib/builtin.mk index d7b3922122b..7bb598a22ca 100644 --- a/devel/gettext-lib/builtin.mk +++ b/devel/gettext-lib/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.23 2005/06/01 18:02:43 jlam Exp $ +# $NetBSD: builtin.mk,v 1.24 2005/06/01 21:07:59 jlam Exp $ BUILTIN_PKG:= gettext @@ -22,14 +22,17 @@ IS_BUILTIN.gettext= yes .endif MAKEVARS+= IS_BUILTIN.gettext -_BLTNH_GETTEXT= /usr/include/libintl.h -.if !defined(BUILTIN_GETTEXT_NGETTEXT) && exists(${_BLTNH_GETTEXT}) +_BLTN_H_GETTEXT= /usr/include/libintl.h +.if !defined(BUILTIN_GETTEXT_NGETTEXT) +BUILTIN_GETTEXT_NGETTEXT= no +. if exists(${_BLTN_H_GETTEXT}) BUILTIN_GETTEXT_NGETTEXT!= \ - if ${GREP} -q "char.*ngettext" ${_BLTNH_GETTEXT:Q}; then \ + if ${GREP} -q "char.*ngettext" ${_BLTN_H_GETTEXT:Q}; then \ ${ECHO} yes; \ else \ ${ECHO} no; \ fi +. endif .endif MAKEVARS+= BUILTIN_GETTEXT_NGETTEXT @@ -63,9 +66,9 @@ _BLNK_REPLACE.gettext= no # XXX enough to replace GNU gettext if it is part of glibc (the GNU C # XXX Library). # XXX -. if exists(${_BLTNH_GETTEXT}) +. if exists(${_BLTN_H_GETTEXT}) _BLNK_REPLACE.gettext!= \ - if ${GREP} -q "This file is part of the GNU C Library" ${_BLTNH_GETTEXT:Q}; then \ + if ${GREP} -q "This file is part of the GNU C Library" ${_BLTN_H_GETTEXT:Q}; then \ ${ECHO} yes; \ else \ ${ECHO} no; \ |