summaryrefslogtreecommitdiff
path: root/security/heimdal
diff options
context:
space:
mode:
authorjlam <jlam>2004-02-12 02:35:06 +0000
committerjlam <jlam>2004-02-12 02:35:06 +0000
commit4e85cabc1c163ea2780c37e373cd563a72a2f768 (patch)
treeabedabb5e0a307cd66dc653a926873635736358e /security/heimdal
parent10d0052f053d86a19523c1efbd5d7a4e4b5133ce (diff)
downloadpkgsrc-4e85cabc1c163ea2780c37e373cd563a72a2f768.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 'security/heimdal')
-rw-r--r--security/heimdal/buildlink3.mk16
1 files changed, 13 insertions, 3 deletions
diff --git a/security/heimdal/buildlink3.mk b/security/heimdal/buildlink3.mk
index a69fee08e9a..e18886777a0 100644
--- a/security/heimdal/buildlink3.mk
+++ b/security/heimdal/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.11 2004/02/12 01:59:38 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.12 2004/02/12 02:35:07 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
HEIMDAL_BUILDLINK3_MK:= ${HEIMDAL_BUILDLINK3_MK}+
@@ -80,8 +80,18 @@ BUILDLINK_USE_BUILTIN.heimdal= YES
BUILDLINK_USE_BUILTIN.heimdal= NO
.endif
-.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mheimdal)
+.if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \
+ !empty(BUILDLINK_IS_BUILTIN.heimdal:M[yY][eE][sS])
+BUILDLINK_USE_BUILTIN.heimdal= YES
+.endif
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS])
+BUILDLINK_USE_BUILTIN.heimdal= NO
+.endif
+.if !empty(PREFER_NATIVE:Mheimdal) && \
+ !empty(BUILDLINK_IS_BUILTIN.heimdal:M[yY][eE][sS])
+BUILDLINK_USE_BUILTIN.heimdal= YES
+.endif
+.if !empty(PREFER_PKGSRC:Mheimdal)
BUILDLINK_USE_BUILTIN.heimdal= NO
.endif