pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/buildlink3 Allow for explicit PREFER.<pkg> settings...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/768258f111df
branches:  trunk
changeset: 495772:768258f111df
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Jun 20 05:44:17 2005 +0000

description:
Allow for explicit PREFER.<pkg> settings to override PREFER_NATIVE and
PREFER_PKGSRC.

diffstat:

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

diffs (35 lines):

diff -r 83c6f1a73950 -r 768258f111df mk/buildlink3/bsd.builtin.mk
--- a/mk/buildlink3/bsd.builtin.mk      Mon Jun 20 05:24:53 2005 +0000
+++ b/mk/buildlink3/bsd.builtin.mk      Mon Jun 20 05:44:17 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.builtin.mk,v 1.5 2005/06/01 18:03:06 jlam Exp $
+# $NetBSD: bsd.builtin.mk,v 1.6 2005/06/20 05:44:17 jlam Exp $
 #
 # Copyright (c) 2004-2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -133,19 +133,20 @@
 # or in both variables, then PREFER_PKGSRC has precedence over
 # PREFER_NATIVE.
 #
-PREFER.${_pkg_}?=      pkgsrc
+_BLTN_PREFER.${_pkg_}= pkgsrc
 .  if !empty(PREFER_NATIVE:M[yY][eE][sS])
-PREFER.${_pkg_}=       native
+_BLTN_PREFER.${_pkg_}= native
 .  endif
 .  if !empty(PREFER_PKGSRC:M[yY][eE][sS])
-PREFER.${_pkg_}=       pkgsrc
+_BLTN_PREFER.${_pkg_}= pkgsrc
 .  endif
 .  if !empty(PREFER_NATIVE:M${_pkg_})
-PREFER.${_pkg_}=       native
+_BLTN_PREFER.${_pkg_}= native
 .  endif
 .  if !empty(PREFER_PKGSRC:M${_pkg_})
-PREFER.${_pkg_}=       pkgsrc
+_BLTN_PREFER.${_pkg_}= pkgsrc
 .  endif
+PREFER.${_pkg_}?=      ${_BLTN_PREFER.${_pkg_}}
 .endfor
 
 .include "../../mk/buildlink3/find-libs.mk"



Home | Main Index | Thread Index | Old Index