summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-02-05 07:17:14 +0000
committerjlam <jlam@pkgsrc.org>2004-02-05 07:17:14 +0000
commit9cbd62fd0ae1890790c971e914f6ff3cf6203177 (patch)
treeedbbed6f9491b43337c846644df6d1c3e8ce8f32
parent4006dd8d3c16be15e01d264394098f7a0798db4c (diff)
downloadpkgsrc-9cbd62fd0ae1890790c971e914f6ff3cf6203177.tar.gz
Make PREFER_PKGSRC just yes/no or a list of packages. This makes it
simpler to understand.
-rw-r--r--archivers/bzip2/buildlink2.mk8
-rw-r--r--archivers/bzip2/buildlink3.mk8
-rw-r--r--converters/libiconv/buildlink2.mk8
-rw-r--r--converters/libiconv/buildlink3.mk8
-rw-r--r--databases/db/buildlink2.mk8
-rw-r--r--databases/db/buildlink3.mk10
-rw-r--r--devel/binutils/buildlink2.mk8
-rw-r--r--devel/binutils/buildlink3.mk8
-rw-r--r--devel/cdk/buildlink2.mk10
-rw-r--r--devel/gettext-lib/buildlink2.mk8
-rw-r--r--devel/gettext-lib/buildlink3.mk8
-rw-r--r--devel/libevent/buildlink2.mk10
-rw-r--r--devel/ncurses/buildlink2.mk8
-rw-r--r--devel/ncurses/buildlink3.mk8
-rw-r--r--devel/readline/buildlink2.mk8
-rw-r--r--devel/readline/buildlink3.mk8
-rw-r--r--devel/zlib/buildlink2.mk8
-rw-r--r--devel/zlib/buildlink3.mk8
-rw-r--r--graphics/MesaLib/buildlink3.mk8
-rw-r--r--graphics/freetype2/buildlink2.mk8
-rw-r--r--graphics/freetype2/buildlink3.mk8
-rw-r--r--graphics/glu/buildlink3.mk8
-rw-r--r--mail/libmilter/buildlink2.mk8
-rw-r--r--mk/buildlink3/bsd.buildlink3.mk8
-rw-r--r--net/hesiod/buildlink2.mk10
-rw-r--r--net/libpcap/buildlink2.mk10
-rw-r--r--net/libpcap/buildlink3.mk8
-rw-r--r--security/PAM/buildlink2.mk8
-rw-r--r--security/PAM/buildlink3.mk8
-rw-r--r--security/heimdal/buildlink3.mk8
-rw-r--r--security/openssl/buildlink2.mk8
-rw-r--r--security/openssl/buildlink3.mk8
-rw-r--r--x11/Xrender/buildlink2.mk8
-rw-r--r--x11/Xrender/buildlink3.mk8
34 files changed, 112 insertions, 170 deletions
diff --git a/archivers/bzip2/buildlink2.mk b/archivers/bzip2/buildlink2.mk
index d87f95b99fe..0dbc71604e9 100644
--- a/archivers/bzip2/buildlink2.mk
+++ b/archivers/bzip2/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.8 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.9 2004/02/05 07:17:14 jlam Exp $
.if !defined(BZIP2_BUILDLINK2_MK)
BZIP2_BUILDLINK2_MK= # defined
@@ -37,11 +37,9 @@ _NEED_BZIP2= YES
. endfor
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mbzip2)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mbzip2)
_NEED_BZIP2= YES
-. endif
.endif
.if ${_NEED_BZIP2} == "YES"
diff --git a/archivers/bzip2/buildlink3.mk b/archivers/bzip2/buildlink3.mk
index a4b4f1d3c05..846101198d6 100644
--- a/archivers/bzip2/buildlink3.mk
+++ b/archivers/bzip2/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.8 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.9 2004/02/05 07:17:14 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
BZIP2_BUILDLINK3_MK:= ${BZIP2_BUILDLINK3_MK}+
@@ -26,11 +26,9 @@ BUILDLINK_IS_BUILTIN.bzip2!= \
MAKEFLAGS+= BUILDLINK_IS_BUILTIN.bzip2="${BUILDLINK_IS_BUILTIN.bzip2}"
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mbzip2)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mbzip2)
BUILDLINK_USE_BUILTIN.bzip2= NO
-. endif
.endif
.if defined(USE_BZIP2)
diff --git a/converters/libiconv/buildlink2.mk b/converters/libiconv/buildlink2.mk
index da186c14800..37a4520a1e8 100644
--- a/converters/libiconv/buildlink2.mk
+++ b/converters/libiconv/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.14 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.15 2004/02/05 07:17:14 jlam Exp $
.if !defined(ICONV_BUILDLINK2_MK)
ICONV_BUILDLINK2_MK= # defined
@@ -33,11 +33,9 @@ _NEED_ICONV= YES
. endfor
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Miconv)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Miconv)
_NEED_ICONV= YES
-. endif
.endif
.if ${_NEED_ICONV} == "YES"
diff --git a/converters/libiconv/buildlink3.mk b/converters/libiconv/buildlink3.mk
index 6079e90643f..d1353edd5c1 100644
--- a/converters/libiconv/buildlink3.mk
+++ b/converters/libiconv/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.8 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.9 2004/02/05 07:17:14 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
ICONV_BUILDLINK3_MK:= ${ICONV_BUILDLINK3_MK}+
@@ -20,11 +20,9 @@ BUILDLINK_IS_BUILTIN.iconv= YES
. endif
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Miconv)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Miconv)
BUILDLINK_USE_BUILTIN.iconv= NO
-. endif
.endif
.if defined(USE_GNU_ICONV)
diff --git a/databases/db/buildlink2.mk b/databases/db/buildlink2.mk
index 19ee559b856..299722efb3f 100644
--- a/databases/db/buildlink2.mk
+++ b/databases/db/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.11 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.12 2004/02/05 07:17:14 jlam Exp $
.if !defined(DB_BUILDLINK2_MK)
DB_BUILDLINK2_MK= # defined
@@ -35,11 +35,9 @@ _NEED_DB2= NO
. endif
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mdb)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mdb)
_NEED_DB2= YES
-. endif
.endif
.if ${_NEED_DB2} == "YES"
diff --git a/databases/db/buildlink3.mk b/databases/db/buildlink3.mk
index fe0d69f34e9..ead05325e46 100644
--- a/databases/db/buildlink3.mk
+++ b/databases/db/buildlink3.mk
@@ -1,19 +1,19 @@
-# $NetBSD: buildlink3.mk,v 1.8 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.9 2004/02/05 07:17:14 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
DB2_BUILDLINK3_MK:= ${DB2_BUILDLINK3_MK}+
+.include "../../mk/bsd.prefs.mk"
+
.if !empty(DB2_BUILDLINK3_MK:M+)
BUILDLINK_PACKAGES+= db
BUILDLINK_DEPENDS.db+= db>=2.7.3
BUILDLINK_PKGSRCDIR.db?= ../../databases/db
.endif # DB2_BUILDLINK3_MK
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mdb)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mdb)
BUILDLINK_USE_BUILTIN.db= NO
-. endif
.endif
.if !defined(BUILDLINK_USE_BUILTIN.db)
diff --git a/devel/binutils/buildlink2.mk b/devel/binutils/buildlink2.mk
index 5ab21aef507..557209477f9 100644
--- a/devel/binutils/buildlink2.mk
+++ b/devel/binutils/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.12 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.13 2004/02/05 07:17:14 jlam Exp $
.if !defined(BINUTILS_BUILDLINK2_MK)
BINUTILS_BUILDLINK2_MK= # defined
@@ -31,11 +31,9 @@ _NEED_BINUTILS= YES
. endfor
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mbinutils)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mbinutils)
_NEED_BINUTILS= YES
-. endif
.endif
.if ${_NEED_BINUTILS} == "YES"
diff --git a/devel/binutils/buildlink3.mk b/devel/binutils/buildlink3.mk
index 46d803f9743..c5aad2b4866 100644
--- a/devel/binutils/buildlink3.mk
+++ b/devel/binutils/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.7 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.8 2004/02/05 07:17:14 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
BINUTILS_BUILDLINK3_MK:= ${BINUTILS_BUILDLINK3_MK}+
@@ -18,11 +18,9 @@ BUILDLINK_CHECK_BUILTIN.binutils?= NO
BUILDLINK_IS_BUILTIN.binutils= YES
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mbinutils)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mbinutils)
BUILDLINK_USE_BUILTIN.binutils= NO
-. endif
.endif
.if defined(USE_BINUTILS)
diff --git a/devel/cdk/buildlink2.mk b/devel/cdk/buildlink2.mk
index 7abe50a0981..7277eee1aaf 100644
--- a/devel/cdk/buildlink2.mk
+++ b/devel/cdk/buildlink2.mk
@@ -1,8 +1,10 @@
-# $NetBSD: buildlink2.mk,v 1.7 2004/02/05 07:06:16 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.8 2004/02/05 07:17:15 jlam Exp $
.if !defined(CDK_BUILDLINK2_MK)
CDK_BUILDLINK2_MK= # defined
+.include "../../mk/bsd.prefs.mk"
+
BUILDLINK_DEPENDS.cdk?= cdk>=4.9.9nb1
BUILDLINK_PKGSRCDIR.cdk?= ../../devel/cdk
@@ -14,11 +16,9 @@ _NEED_CDK= NO
_NEED_CDK= YES
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mcdk)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mcdk)
_NEED_CDK= YES
-. endif
.endif
.if ${_NEED_CDK} == "YES"
diff --git a/devel/gettext-lib/buildlink2.mk b/devel/gettext-lib/buildlink2.mk
index d43c97108c7..729953a4d93 100644
--- a/devel/gettext-lib/buildlink2.mk
+++ b/devel/gettext-lib/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.27 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.28 2004/02/05 07:17:14 jlam Exp $
.if !defined(GETTEXT_BUILDLINK2_MK)
GETTEXT_BUILDLINK2_MK= # defined
@@ -46,11 +46,9 @@ _NEED_GNU_GETTEXT= YES
. endfor
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mgettext)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mgettext)
_NEED_GNU_GETTEXT= YES
-. endif
.endif
.if ${_NEED_GNU_GETTEXT} == "YES"
diff --git a/devel/gettext-lib/buildlink3.mk b/devel/gettext-lib/buildlink3.mk
index 3eb540c8900..2373f69c7b2 100644
--- a/devel/gettext-lib/buildlink3.mk
+++ b/devel/gettext-lib/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.10 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.11 2004/02/05 07:17:14 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
GETTEXT_BUILDLINK3_MK:= ${GETTEXT_BUILDLINK3_MK}+
@@ -20,11 +20,9 @@ BUILDLINK_IS_BUILTIN.gettext= YES
. endif
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mgettext)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mgettext)
BUILDLINK_USE_BUILTIN.gettext= NO
-. endif
.endif
.if defined(USE_GNU_GETTEXT)
diff --git a/devel/libevent/buildlink2.mk b/devel/libevent/buildlink2.mk
index edf04710db9..fdb72dc7477 100644
--- a/devel/libevent/buildlink2.mk
+++ b/devel/libevent/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.4 2004/02/05 07:06:16 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.5 2004/02/05 07:17:15 jlam Exp $
#
# This Makefile fragment is included by packages that use libevent.
#
@@ -8,17 +8,17 @@
.if !defined(LIBEVENT_BUILDLINK2_MK)
LIBEVENT_BUILDLINK2_MK= # defined
+.include "../../mk/bsd.prefs.mk"
+
.if exists(/usr/include/event.h)
_NEED_LIBEVENT= NO
.else
_NEED_LIBEVENT= YES
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mlibevent)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mlibevent)
_NEED_LIBEVENT= YES
-. endif
.endif
.if ${_NEED_LIBEVENT} == "YES"
diff --git a/devel/ncurses/buildlink2.mk b/devel/ncurses/buildlink2.mk
index a55e5f53c2e..3f634b65a69 100644
--- a/devel/ncurses/buildlink2.mk
+++ b/devel/ncurses/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.17 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.18 2004/02/05 07:17:14 jlam Exp $
#
# Optionally define:
#
@@ -50,11 +50,9 @@ _NEED_NCURSES= YES
. endfor
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mncurses)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mncurses)
_NEED_NCURSES= YES
-. endif
.endif
.if ${_NEED_NCURSES} == "YES"
diff --git a/devel/ncurses/buildlink3.mk b/devel/ncurses/buildlink3.mk
index 3457dcca648..92ebf9e53f8 100644
--- a/devel/ncurses/buildlink3.mk
+++ b/devel/ncurses/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.12 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.13 2004/02/05 07:17:14 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
NCURSES_BUILDLINK3_MK:= ${NCURSES_BUILDLINK3_MK}+
@@ -40,11 +40,9 @@ BUILDLINK_IS_BUILTIN.ncurses!= \
MAKEFLAGS+= BUILDLINK_IS_BUILTIN.ncurses="${BUILDLINK_IS_BUILTIN.ncurses}"
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mncurses)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mncurses)
BUILDLINK_USE_BUILTIN.ncurses= NO
-. endif
.endif
.if defined(USE_NCURSES)
diff --git a/devel/readline/buildlink2.mk b/devel/readline/buildlink2.mk
index 993db1bdae4..b1b01d8dc5f 100644
--- a/devel/readline/buildlink2.mk
+++ b/devel/readline/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.5 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.6 2004/02/05 07:17:14 jlam Exp $
#
# Optionally define USE_GNU_READLINE to force use of GNU readline.
#
@@ -36,11 +36,9 @@ _NEED_GNU_READLINE= YES
. endfor
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mreadline)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mreadline)
_NEED_GNU_READLINE= YES
-. endif
.endif
.if ${_NEED_GNU_READLINE} == "YES"
diff --git a/devel/readline/buildlink3.mk b/devel/readline/buildlink3.mk
index 6d8f65509cd..fd19e15c227 100644
--- a/devel/readline/buildlink3.mk
+++ b/devel/readline/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.8 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.9 2004/02/05 07:17:14 jlam Exp $
#
# Optionally define USE_GNU_READLINE to force use of GNU readline.
#
@@ -26,11 +26,9 @@ BUILDLINK_IS_BUILTIN.readline= YES
. endif
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mreadline)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mreadline)
BUILDLINK_USE_BUILTIN.readline= NO
-. endif
.endif
.if defined(USE_GNU_READLINE)
diff --git a/devel/zlib/buildlink2.mk b/devel/zlib/buildlink2.mk
index 443a4638338..9f2e35b843a 100644
--- a/devel/zlib/buildlink2.mk
+++ b/devel/zlib/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.10 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.11 2004/02/05 07:17:14 jlam Exp $
.if !defined(ZLIB_BUILDLINK2_MK)
ZLIB_BUILDLINK2_MK= # defined
@@ -17,11 +17,9 @@ BUILDLINK_IS_BUILTIN.zlib= YES
. endif
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mzlib)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mzlib)
BUILDLINK_USE_BUILTIN.zlib= NO
-. endif
.endif
.if defined(USE_ZLIB)
diff --git a/devel/zlib/buildlink3.mk b/devel/zlib/buildlink3.mk
index 024a10f6007..fad9c1c33b5 100644
--- a/devel/zlib/buildlink3.mk
+++ b/devel/zlib/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.10 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.11 2004/02/05 07:17:14 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
ZLIB_BUILDLINK3_MK:= ${ZLIB_BUILDLINK3_MK}+
@@ -22,11 +22,9 @@ BUILDLINK_IS_BUILTIN.zlib= YES
. endif
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mzlib)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mzlib)
BUILDLINK_USE_BUILTIN.zlib= NO
-. endif
.endif
.if defined(USE_ZLIB)
diff --git a/graphics/MesaLib/buildlink3.mk b/graphics/MesaLib/buildlink3.mk
index 88db1c81b85..14b8973a042 100644
--- a/graphics/MesaLib/buildlink3.mk
+++ b/graphics/MesaLib/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.15 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.16 2004/02/05 07:17:14 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
MESALIB_BUILDLINK3_MK:= ${MESALIB_BUILDLINK3_MK}+
@@ -31,11 +31,9 @@ BUILDLINK_IS_BUILTIN.MesaLib!= \
MAKEFLAGS+= BUILDLINK_IS_BUILTIN.MesaLib="${BUILDLINK_IS_BUILTIN.MesaLib}"
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:MMesaLib)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:MMesaLib)
BUILDLINK_USE_BUILTIN.MesaLib= NO
-. endif
.endif
.if !empty(BUILDLINK_CHECK_BUILTIN.MesaLib:M[yY][eE][sS])
diff --git a/graphics/freetype2/buildlink2.mk b/graphics/freetype2/buildlink2.mk
index 6606c101be8..78a3e34c609 100644
--- a/graphics/freetype2/buildlink2.mk
+++ b/graphics/freetype2/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.13 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.14 2004/02/05 07:17:14 jlam Exp $
.if !defined(FREETYPE2_BUILDLINK2_MK)
FREETYPE2_BUILDLINK2_MK= # defined
@@ -51,11 +51,9 @@ _NEED_FREETYPE2!= \
. endif
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mfreetype2)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mfreetype2)
_NEED_FREETYPE2= YES
-. endif
.endif
.if ${_NEED_FREETYPE2} == "YES"
diff --git a/graphics/freetype2/buildlink3.mk b/graphics/freetype2/buildlink3.mk
index 0b81f4365e8..b70f41163ba 100644
--- a/graphics/freetype2/buildlink3.mk
+++ b/graphics/freetype2/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.13 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.14 2004/02/05 07:17:14 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
FREETYPE2_BUILDLINK3_MK:= ${FREETYPE2_BUILDLINK3_MK}+
@@ -31,11 +31,9 @@ MAKEFLAGS+= \
BUILDLINK_IS_BUILTIN.freetype2="${BUILDLINK_IS_BUILTIN.freetype2}"
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mfreetype2)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mfreetype2)
BUILDLINK_USE_BUILTIN.freetype2= NO
-. endif
.endif
.if !empty(BUILDLINK_CHECK_BUILTIN.freetype2:M[yY][eE][sS])
diff --git a/graphics/glu/buildlink3.mk b/graphics/glu/buildlink3.mk
index 0da98567ae5..0575a372d98 100644
--- a/graphics/glu/buildlink3.mk
+++ b/graphics/glu/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.13 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.14 2004/02/05 07:17:14 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
GLU_BUILDLINK3_MK:= ${GLU_BUILDLINK3_MK}+
@@ -31,11 +31,9 @@ BUILDLINK_IS_BUILTIN.glu!= \
MAKEFLAGS+= BUILDLINK_IS_BUILTIN.glu="${BUILDLINK_IS_BUILTIN.glu}"
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mglu)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mglu)
BUILDLINK_USE_BUILTIN.glu= NO
-. endif
.endif
.if !empty(BUILDLINK_CHECK_BUILTIN.glu:M[yY][eE][sS])
diff --git a/mail/libmilter/buildlink2.mk b/mail/libmilter/buildlink2.mk
index 874a6665739..2ddb9b951b6 100644
--- a/mail/libmilter/buildlink2.mk
+++ b/mail/libmilter/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.5 2004/02/05 07:06:16 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.6 2004/02/05 07:17:15 jlam Exp $
#
# This Makefile fragment is included by packages that use libmilter.
#
@@ -22,11 +22,9 @@ _NEED_LIBMILTER= NO
_NEED_LIBMILTER= YES
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mlibmilter)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mlibmilter)
_NEED_LIBMILTER= YES
-. endif
.endif
.if ${_NEED_LIBMILTER} == "YES"
diff --git a/mk/buildlink3/bsd.buildlink3.mk b/mk/buildlink3/bsd.buildlink3.mk
index 6097bc2d72d..28a4be01c85 100644
--- a/mk/buildlink3/bsd.buildlink3.mk
+++ b/mk/buildlink3/bsd.buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.74 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.75 2004/02/05 07:17:14 jlam Exp $
#
# An example package buildlink3.mk file:
#
@@ -204,11 +204,9 @@ BUILDLINK_USE_BUILTIN.${_pkg_}?= no
#
# If we prefer the pkgsrc version, then don't user the built-in package.
#
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:M${_pkg_})
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:M${_pkg_})
BUILDLINK_USE_BUILTIN.${_pkg_}?= no
-. endif
.endif
#
# If we're using the built-in package, then provide sensible defaults.
diff --git a/net/hesiod/buildlink2.mk b/net/hesiod/buildlink2.mk
index a0e8bab3bb5..3216bad2688 100644
--- a/net/hesiod/buildlink2.mk
+++ b/net/hesiod/buildlink2.mk
@@ -1,8 +1,10 @@
-# $NetBSD: buildlink2.mk,v 1.4 2004/02/05 07:06:16 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.5 2004/02/05 07:17:15 jlam Exp $
.if !defined(HESIOD_BUILDLINK2_MK)
HESIOD_BUILDLINK2_MK= # defined
+.include "../../mk/bsd.prefs.mk"
+
BUILDLINK_DEPENDS.hesiod?= hesiod>=3.0.2
BUILDLINK_PKGSRCDIR.hesiod?= ../../net/hesiod
@@ -16,11 +18,9 @@ _NEED_HESIOD= YES
. endif
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mhesiod)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mhesiod)
_NEED_HESIOD= YES
-. endif
.endif
.if ${_NEED_HESIOD} == "YES"
diff --git a/net/libpcap/buildlink2.mk b/net/libpcap/buildlink2.mk
index 77b79d6ffd5..cda6b050da1 100644
--- a/net/libpcap/buildlink2.mk
+++ b/net/libpcap/buildlink2.mk
@@ -1,8 +1,10 @@
-# $NetBSD: buildlink2.mk,v 1.5 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.6 2004/02/05 07:17:14 jlam Exp $
.if !defined(LIBPCAP_BUILDLINK2_MK)
LIBPCAP_BUILDLINK2_MK= # defined
+.include "../../mk/bsd.prefs.mk"
+
BUILDLINK_DEPENDS.libpcap?= libpcap>=0.7.2
BUILDLINK_PKGSRCDIR.libpcap?= ../../net/libpcap
@@ -12,11 +14,9 @@ _NEED_LIBPCAP= NO
_NEED_LIBPCAP= YES
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mlibpcap)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mlibpcap)
_NEED_LIBPCAP= YES
-. endif
.endif
.if ${_NEED_LIBPCAP} == "YES"
diff --git a/net/libpcap/buildlink3.mk b/net/libpcap/buildlink3.mk
index 448fc969990..d45215ff886 100644
--- a/net/libpcap/buildlink3.mk
+++ b/net/libpcap/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.7 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.8 2004/02/05 07:17:14 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
LIBPCAP_BUILDLINK3_MK:= ${LIBPCAP_BUILDLINK3_MK}+
@@ -20,11 +20,9 @@ BUILDLINK_IS_BUILTIN.libpcap= YES
. endif
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mlibpcap)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mlibpcap)
BUILDLINK_USE_BUILTIN.libpcap= NO
-. endif
.endif
.if !empty(BUILDLINK_CHECK_BUILTIN.libpcap:M[yY][eE][sS])
diff --git a/security/PAM/buildlink2.mk b/security/PAM/buildlink2.mk
index 669dd55d98e..39e44bf1d7d 100644
--- a/security/PAM/buildlink2.mk
+++ b/security/PAM/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.4 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.5 2004/02/05 07:17:14 jlam Exp $
.if !defined(PAM_BUILDLINK2_MK)
PAM_BUILDLINK2_MK= # defined
@@ -14,11 +14,9 @@ _NEED_PAM= NO
_NEED_PAM= YES
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mpam)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mpam)
_NEED_PAM= YES
-. endif
.endif
.if ${_NEED_PAM} == "YES"
diff --git a/security/PAM/buildlink3.mk b/security/PAM/buildlink3.mk
index b45540e9de7..ca1f2d334af 100644
--- a/security/PAM/buildlink3.mk
+++ b/security/PAM/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.7 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.8 2004/02/05 07:17:14 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
PAM_BUILDLINK3_MK:= ${PAM_BUILDLINK3_MK}+
@@ -20,11 +20,9 @@ BUILDLINK_IS_BUILTIN.pam= YES
. endif
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mpam)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mpam)
BUILDLINK_USE_BUILTIN.pam= NO
-. endif
.endif
.if !empty(BUILDLINK_CHECK_BUILTIN.pam:M[yY][eE][sS])
diff --git a/security/heimdal/buildlink3.mk b/security/heimdal/buildlink3.mk
index 7ae82479fb6..5c35e447df3 100644
--- a/security/heimdal/buildlink3.mk
+++ b/security/heimdal/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.8 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.9 2004/02/05 07:17:14 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
HEIMDAL_BUILDLINK3_MK:= ${HEIMDAL_BUILDLINK3_MK}+
@@ -29,11 +29,9 @@ BUILDLINK_IS_BUILTIN.heimdal!= \
MAKEFLAGS+= BUILDLINK_IS_BUILTIN.heimdal="${BUILDLINK_IS_BUILTIN.heimdal}"
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mheimdal)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mheimdal)
BUILDLINK_USE_BUILTIN.heimdal= NO
-. endif
.endif
.if !empty(BUILDLINK_CHECK_BUILTIN.heimdal:M[yY][eE][sS])
diff --git a/security/openssl/buildlink2.mk b/security/openssl/buildlink2.mk
index 26d7681cd85..af0ef8a53bb 100644
--- a/security/openssl/buildlink2.mk
+++ b/security/openssl/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.17 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.18 2004/02/05 07:17:14 jlam Exp $
.if !defined(OPENSSL_BUILDLINK2_MK)
OPENSSL_BUILDLINK2_MK= # defined
@@ -24,11 +24,9 @@ BUILDLINK_IS_BUILTIN.openssl= YES
. endif
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mopenssl)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mopenssl)
_NEED_OPENSSL= YES
-. endif
.endif
.if !empty(BUILDLINK_CHECK_BUILTIN.openssl:M[yY][eE][sS])
diff --git a/security/openssl/buildlink3.mk b/security/openssl/buildlink3.mk
index aafc62f8fda..72c2178647f 100644
--- a/security/openssl/buildlink3.mk
+++ b/security/openssl/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.10 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.11 2004/02/05 07:17:14 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
OPENSSL_BUILDLINK3_MK:= ${OPENSSL_BUILDLINK3_MK}+
@@ -28,11 +28,9 @@ BUILDLINK_IS_BUILTIN.openssl= YES
. endif
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mopenssl)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mopenssl)
BUILDLINK_USE_BUILTIN.openssl= NO
-. endif
.endif
.if !empty(BUILDLINK_CHECK_BUILTIN.openssl:M[yY][eE][sS])
diff --git a/x11/Xrender/buildlink2.mk b/x11/Xrender/buildlink2.mk
index 3d2b4e6df00..33a26e85e16 100644
--- a/x11/Xrender/buildlink2.mk
+++ b/x11/Xrender/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.7 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.8 2004/02/05 07:17:14 jlam Exp $
.if !defined(XRENDER_BUILDLINK2_MK)
XRENDER_BUILDLINK2_MK= # defined
@@ -52,11 +52,9 @@ _NEED_XRENDER!= \
BUILDLINK_FILES.Xrender= include/X11/extensions/Xrender.h
BUILDLINK_FILES.Xrender+= lib/libXrender.*
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:MXrender)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:MXrender)
_NEED_XRENDER= YES
-. endif
.endif
.if ${_NEED_XRENDER} == "YES"
diff --git a/x11/Xrender/buildlink3.mk b/x11/Xrender/buildlink3.mk
index eb507c8dccc..32a89378d0b 100644
--- a/x11/Xrender/buildlink3.mk
+++ b/x11/Xrender/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.15 2004/02/05 07:06:15 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.16 2004/02/05 07:17:14 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
XRENDER_BUILDLINK3_MK:= ${XRENDER_BUILDLINK3_MK}+
@@ -29,11 +29,9 @@ BUILDLINK_IS_BUILTIN.Xrender!= \
MAKEFLAGS+= BUILDLINK_IS_BUILTIN.Xrender="${BUILDLINK_IS_BUILTIN.Xrender}"
.endif
-.if defined(PREFER_PKGSRC)
-. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:MXrender)
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:MXrender)
BUILDLINK_USE_BUILTIN.Xrender= NO
-. endif
.endif
.if !empty(BUILDLINK_CHECK_BUILTIN.Xrender:M[yY][eE][sS])