summaryrefslogtreecommitdiff
path: root/net/hesiod
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 /net/hesiod
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 'net/hesiod')
-rw-r--r--net/hesiod/buildlink2.mk16
1 files changed, 13 insertions, 3 deletions
diff --git a/net/hesiod/buildlink2.mk b/net/hesiod/buildlink2.mk
index 5e89f709db8..991610b0cc5 100644
--- a/net/hesiod/buildlink2.mk
+++ b/net/hesiod/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.6 2004/02/12 01:59:38 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.7 2004/02/12 02:35:06 jlam Exp $
.if !defined(HESIOD_BUILDLINK2_MK)
HESIOD_BUILDLINK2_MK= # defined
@@ -20,8 +20,18 @@ _NEED_HESIOD= NO
_NEED_HESIOD= YES
.endif
-.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mhesiod)
+.if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \
+ ${_BUILTIN_HESIOD} == "YES"
+_NEED_HESIOD= NO
+.endif
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS])
+_NEED_HESIOD= YES
+.endif
+.if !empty(PREFER_NATIVE:Mhesiod) && \
+ ${_BUILTIN_HESIOD} == "YES"
+_NEED_HESIOD= NO
+.endif
+.if !empty(PREFER_PKGSRC:Mhesiod)
_NEED_HESIOD= YES
.endif