pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/buildlink3 Make sure USE_BUILTIN.<pkg> is defined b...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/58523ee59cbc
branches:  trunk
changeset: 470073:58523ee59cbc
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Sat Mar 06 09:46:05 2004 +0000

description:
Make sure USE_BUILTIN.<pkg> is defined before checking its value. jlam@
seems dead again... so I'll commit this.

diffstat:

 mk/buildlink3/bsd.buildlink3.mk |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 5626068a0197 -r 58523ee59cbc mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk   Sat Mar 06 08:07:38 2004 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk   Sat Mar 06 09:46:05 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.102 2004/03/05 19:25:37 jlam Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.103 2004/03/06 09:46:05 xtraeme Exp $
 #
 # An example package buildlink3.mk file:
 #
@@ -123,9 +123,10 @@
 #
 _BLNK_DEPENDS= # empty
 .for _pkg_ in ${BUILDLINK_DEPENDS}   
-.  if empty(_BLNK_DEPENDS:M${_pkg_}) && !empty(USE_BUILTIN.${_pkg_}:M[nN][oO])
+.    if empty(_BLNK_DEPENDS:M${_pkg_}) && (defined(USE_BUILTIN.${_pkg_}) && \
+       !empty(USE_BUILTIN.${_pkg_}:M[nN][oO]))
 _BLNK_DEPENDS+=        ${_pkg_}
-.  endif
+.    endif
 .endfor
 
 # Add the proper dependency on each package pulled in by buildlink3.mk



Home | Main Index | Thread Index | Old Index