pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/buildlink3 Do previous in a different way by provid...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/38cdf4474c36
branches:  trunk
changeset: 470092:38cdf4474c36
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sat Mar 06 14:38:01 2004 +0000

description:
Do previous in a different way by providing a default value for
USE_BUILTIN.<pkg> before it is checked.  _BLNK_PACKAGES isn't strictly
a superset of _BLNK_DEPENDS due to the special x11-links handling
which should eventually be removed altogether.

diffstat:

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

diffs (20 lines):

diff -r cf6b9fc84091 -r 38cdf4474c36 mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk   Sat Mar 06 13:47:40 2004 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk   Sat Mar 06 14:38:01 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.103 2004/03/06 09:46:05 xtraeme Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.104 2004/03/06 14:38:01 jlam Exp $
 #
 # An example package buildlink3.mk file:
 #
@@ -123,8 +123,8 @@
 #
 _BLNK_DEPENDS= # empty
 .for _pkg_ in ${BUILDLINK_DEPENDS}   
-.    if empty(_BLNK_DEPENDS:M${_pkg_}) && (defined(USE_BUILTIN.${_pkg_}) && \
-       !empty(USE_BUILTIN.${_pkg_}:M[nN][oO]))
+USE_BUILTIN.${_pkg_}?= no
+.  if empty(_BLNK_DEPENDS:M${_pkg_}) && !empty(USE_BUILTIN.${_pkg_}:M[nN][oO])
 _BLNK_DEPENDS+=        ${_pkg_}
 .    endif
 .endfor



Home | Main Index | Thread Index | Old Index