summaryrefslogtreecommitdiff
path: root/graphics/MesaLib
diff options
context:
space:
mode:
authorjlam <jlam>2004-02-12 02:35:06 +0000
committerjlam <jlam>2004-02-12 02:35:06 +0000
commit904fb99528f41da42271c33b5e2c2fb70a5898a8 (patch)
treeabedabb5e0a307cd66dc653a926873635736358e /graphics/MesaLib
parent7a53d0f6f6f5347ca16705bd2c05ed41a190a6e0 (diff)
downloadpkgsrc-904fb99528f41da42271c33b5e2c2fb70a5898a8.tar.gz
Create a new variable PREFER_NATIVE that has the opposite semantics
as PREFER_PKGSRC. Preferences are determined by the most specific instance of the package in either PREFER_PKGSRC or PREFER_NATIVE. If a package is specified in neither or in both variables, then PREFER_PKGSRC has precedence over PREFER_NATIVE.
Diffstat (limited to 'graphics/MesaLib')
-rw-r--r--graphics/MesaLib/buildlink3.mk16
1 files changed, 13 insertions, 3 deletions
diff --git a/graphics/MesaLib/buildlink3.mk b/graphics/MesaLib/buildlink3.mk
index 58ae99ab19e..c08966469bd 100644
--- a/graphics/MesaLib/buildlink3.mk
+++ b/graphics/MesaLib/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.23 2004/02/12 01:59:38 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.24 2004/02/12 02:35:06 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
MESALIB_BUILDLINK3_MK:= ${MESALIB_BUILDLINK3_MK}+
@@ -86,8 +86,18 @@ BUILDLINK_USE_BUILTIN.MesaLib= YES
BUILDLINK_USE_BUILTIN.MesaLib= NO
.endif
-.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:MMesaLib)
+.if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \
+ !empty(BUILDLINK_IS_BUILTIN.MesaLib:M[yY][eE][sS])
+BUILDLINK_USE_BUILTIN.MesaLib= YES
+.endif
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS])
+BUILDLINK_USE_BUILTIN.MesaLib= NO
+.endif
+.if !empty(PREFER_NATIVE:MMesaLib) && \
+ !empty(BUILDLINK_IS_BUILTIN.MesaLib:M[yY][eE][sS])
+BUILDLINK_USE_BUILTIN.MesaLib= YES
+.endif
+.if !empty(PREFER_PKGSRC:MMesaLib)
BUILDLINK_USE_BUILTIN.MesaLib= NO
.endif