summaryrefslogtreecommitdiff
path: root/devel/ncurses/buildlink3.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-02-12 02:35:06 +0000
committerjlam <jlam@pkgsrc.org>2004-02-12 02:35:06 +0000
commit1d412335512eaf0c7a16a131be18536df065fa01 (patch)
treeabedabb5e0a307cd66dc653a926873635736358e /devel/ncurses/buildlink3.mk
parent3bb661fde228179a23bf326ff69c0f1971493baa (diff)
downloadpkgsrc-1d412335512eaf0c7a16a131be18536df065fa01.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 'devel/ncurses/buildlink3.mk')
-rw-r--r--devel/ncurses/buildlink3.mk16
1 files changed, 13 insertions, 3 deletions
diff --git a/devel/ncurses/buildlink3.mk b/devel/ncurses/buildlink3.mk
index d3f3df47188..e3a8854f906 100644
--- a/devel/ncurses/buildlink3.mk
+++ b/devel/ncurses/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.17 2004/02/12 01:59:37 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.18 2004/02/12 02:35:06 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
NCURSES_BUILDLINK3_MK:= ${NCURSES_BUILDLINK3_MK}+
@@ -97,8 +97,18 @@ BUILDLINK_USE_BUILTIN.ncurses= YES
BUILDLINK_USE_BUILTIN.ncurses= NO
.endif
-.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mncurses)
+.if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \
+ !empty(BUILDLINK_IS_BUILTIN.ncurses:M[yY][eE][sS])
+BUILDLINK_USE_BUILTIN.ncurses= YES
+.endif
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS])
+BUILDLINK_USE_BUILTIN.ncurses= NO
+.endif
+.if !empty(PREFER_NATIVE:Mncurses) && \
+ !empty(BUILDLINK_IS_BUILTIN.ncurses:M[yY][eE][sS])
+BUILDLINK_USE_BUILTIN.ncurses= YES
+.endif
+.if !empty(PREFER_PKGSRC:Mncurses)
BUILDLINK_USE_BUILTIN.ncurses= NO
.endif