summaryrefslogtreecommitdiff
path: root/devel/libevent
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
commitd2b62c66fbc6fa5d43546377699557ae9780a930 (patch)
treeabedabb5e0a307cd66dc653a926873635736358e /devel/libevent
parent8d7a59f64baaca76cd5a0b7d879528cc17e128f4 (diff)
downloadpkgsrc-d2b62c66fbc6fa5d43546377699557ae9780a930.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/libevent')
-rw-r--r--devel/libevent/buildlink2.mk20
1 files changed, 15 insertions, 5 deletions
diff --git a/devel/libevent/buildlink2.mk b/devel/libevent/buildlink2.mk
index 78634ad0da9..d2a528ae8ee 100644
--- a/devel/libevent/buildlink2.mk
+++ b/devel/libevent/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.6 2004/02/12 01:59:37 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.7 2004/02/12 02:35:06 jlam Exp $
#
# This Makefile fragment is included by packages that use libevent.
#
@@ -17,13 +17,23 @@ _BUILTIN_LIBEVENT= NO
.endif
.if ${_BUILTIN_LIBEVENT} == "YES"
-_NEED_LIBEVENT= NO
+_NEED_LIBEVENT= NO
.else
-_NEED_LIBEVENT= YES
+_NEED_LIBEVENT= YES
.endif
-.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mlibevent)
+.if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \
+ ${_BUILTIN_LIBEVENT} == "YES"
+_NEED_LIBEVENT= NO
+.endif
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS])
+_NEED_LIBEVENT= YES
+.endif
+.if !empty(PREFER_NATIVE:Mlibevent) && \
+ ${_BUILTIN_LIBEVENT} == "YES"
+_NEED_LIBEVENT= NO
+.endif
+.if !empty(PREFER_PKGSRC:Mlibevent)
_NEED_LIBEVENT= YES
.endif