head 1.28; access; symbols pkgsrc-2023Q4:1.28.0.48 pkgsrc-2023Q4-base:1.28 pkgsrc-2023Q3:1.28.0.46 pkgsrc-2023Q3-base:1.28 pkgsrc-2023Q2:1.28.0.44 pkgsrc-2023Q2-base:1.28 pkgsrc-2023Q1:1.28.0.42 pkgsrc-2023Q1-base:1.28 pkgsrc-2022Q4:1.28.0.40 pkgsrc-2022Q4-base:1.28 pkgsrc-2022Q3:1.28.0.38 pkgsrc-2022Q3-base:1.28 pkgsrc-2022Q2:1.28.0.36 pkgsrc-2022Q2-base:1.28 pkgsrc-2022Q1:1.28.0.34 pkgsrc-2022Q1-base:1.28 pkgsrc-2021Q4:1.28.0.32 pkgsrc-2021Q4-base:1.28 pkgsrc-2021Q3:1.28.0.30 pkgsrc-2021Q3-base:1.28 pkgsrc-2021Q2:1.28.0.28 pkgsrc-2021Q2-base:1.28 pkgsrc-2021Q1:1.28.0.26 pkgsrc-2021Q1-base:1.28 pkgsrc-2020Q4:1.28.0.24 pkgsrc-2020Q4-base:1.28 pkgsrc-2020Q3:1.28.0.22 pkgsrc-2020Q3-base:1.28 pkgsrc-2020Q2:1.28.0.20 pkgsrc-2020Q2-base:1.28 pkgsrc-2020Q1:1.28.0.16 pkgsrc-2020Q1-base:1.28 pkgsrc-2019Q4:1.28.0.18 pkgsrc-2019Q4-base:1.28 pkgsrc-2019Q3:1.28.0.14 pkgsrc-2019Q3-base:1.28 pkgsrc-2019Q2:1.28.0.12 pkgsrc-2019Q2-base:1.28 pkgsrc-2019Q1:1.28.0.10 pkgsrc-2019Q1-base:1.28 pkgsrc-2018Q4:1.28.0.8 pkgsrc-2018Q4-base:1.28 pkgsrc-2018Q3:1.28.0.6 pkgsrc-2018Q3-base:1.28 pkgsrc-2018Q2:1.28.0.4 pkgsrc-2018Q2-base:1.28 pkgsrc-2018Q1:1.28.0.2 pkgsrc-2018Q1-base:1.28 pkgsrc-2017Q4:1.27.0.50 pkgsrc-2017Q4-base:1.27 pkgsrc-2017Q3:1.27.0.48 pkgsrc-2017Q3-base:1.27 pkgsrc-2017Q2:1.27.0.44 pkgsrc-2017Q2-base:1.27 pkgsrc-2017Q1:1.27.0.42 pkgsrc-2017Q1-base:1.27 pkgsrc-2016Q4:1.27.0.40 pkgsrc-2016Q4-base:1.27 pkgsrc-2016Q3:1.27.0.38 pkgsrc-2016Q3-base:1.27 pkgsrc-2016Q2:1.27.0.36 pkgsrc-2016Q2-base:1.27 pkgsrc-2016Q1:1.27.0.34 pkgsrc-2016Q1-base:1.27 pkgsrc-2015Q4:1.27.0.32 pkgsrc-2015Q4-base:1.27 pkgsrc-2015Q3:1.27.0.30 pkgsrc-2015Q3-base:1.27 pkgsrc-2015Q2:1.27.0.28 pkgsrc-2015Q2-base:1.27 pkgsrc-2015Q1:1.27.0.26 pkgsrc-2015Q1-base:1.27 pkgsrc-2014Q4:1.27.0.24 pkgsrc-2014Q4-base:1.27 pkgsrc-2014Q3:1.27.0.22 pkgsrc-2014Q3-base:1.27 pkgsrc-2014Q2:1.27.0.20 pkgsrc-2014Q2-base:1.27 pkgsrc-2014Q1:1.27.0.18 pkgsrc-2014Q1-base:1.27 pkgsrc-2013Q4:1.27.0.16 pkgsrc-2013Q4-base:1.27 pkgsrc-2013Q3:1.27.0.14 pkgsrc-2013Q3-base:1.27 pkgsrc-2013Q2:1.27.0.12 pkgsrc-2013Q2-base:1.27 pkgsrc-2013Q1:1.27.0.10 pkgsrc-2013Q1-base:1.27 pkgsrc-2012Q4:1.27.0.8 pkgsrc-2012Q4-base:1.27 pkgsrc-2012Q3:1.27.0.6 pkgsrc-2012Q3-base:1.27 pkgsrc-2012Q2:1.27.0.4 pkgsrc-2012Q2-base:1.27 pkgsrc-2012Q1:1.27.0.2 pkgsrc-2012Q1-base:1.27 pkgsrc-2011Q4:1.26.0.24 pkgsrc-2011Q4-base:1.26 pkgsrc-2011Q3:1.26.0.22 pkgsrc-2011Q3-base:1.26 pkgsrc-2011Q2:1.26.0.20 pkgsrc-2011Q2-base:1.26 pkgsrc-2011Q1:1.26.0.18 pkgsrc-2011Q1-base:1.26 pkgsrc-2010Q4:1.26.0.16 pkgsrc-2010Q4-base:1.26 pkgsrc-2010Q3:1.26.0.14 pkgsrc-2010Q3-base:1.26 pkgsrc-2010Q2:1.26.0.12 pkgsrc-2010Q2-base:1.26 pkgsrc-2010Q1:1.26.0.10 pkgsrc-2010Q1-base:1.26 pkgsrc-2009Q4:1.26.0.8 pkgsrc-2009Q4-base:1.26 pkgsrc-2009Q3:1.26.0.6 pkgsrc-2009Q3-base:1.26 pkgsrc-2009Q2:1.26.0.4 pkgsrc-2009Q2-base:1.26 pkgsrc-2009Q1:1.26.0.2 pkgsrc-2009Q1-base:1.26 pkgsrc-2008Q4:1.25.0.22 pkgsrc-2008Q4-base:1.25 pkgsrc-2008Q3:1.25.0.20 pkgsrc-2008Q3-base:1.25 cube-native-xorg:1.25.0.18 cube-native-xorg-base:1.25 pkgsrc-2008Q2:1.25.0.16 pkgsrc-2008Q2-base:1.25 cwrapper:1.25.0.14 pkgsrc-2008Q1:1.25.0.12 pkgsrc-2008Q1-base:1.25 pkgsrc-2007Q4:1.25.0.10 pkgsrc-2007Q4-base:1.25 pkgsrc-2007Q3:1.25.0.8 pkgsrc-2007Q3-base:1.25 pkgsrc-2007Q2:1.25.0.6 pkgsrc-2007Q2-base:1.25 pkgsrc-2007Q1:1.25.0.4 pkgsrc-2007Q1-base:1.25 pkgsrc-2006Q4:1.25.0.2 pkgsrc-2006Q4-base:1.25 pkgsrc-2006Q3:1.24.0.2 pkgsrc-2006Q3-base:1.24 pkgsrc-2006Q2:1.22.0.2 pkgsrc-2006Q2-base:1.22 pkgsrc-2006Q1:1.19.0.12 pkgsrc-2006Q1-base:1.19 pkgsrc-2005Q4:1.19.0.10 pkgsrc-2005Q4-base:1.19 pkgsrc-2005Q3:1.19.0.8 pkgsrc-2005Q3-base:1.19 pkgsrc-2005Q2:1.19.0.6 pkgsrc-2005Q2-base:1.19 pkgsrc-2005Q1:1.19.0.4 pkgsrc-2005Q1-base:1.19 pkgsrc-2004Q4:1.19.0.2 pkgsrc-2004Q4-base:1.19 pkgsrc-2004Q3:1.17.0.2 pkgsrc-2004Q3-base:1.17 pkgsrc-2004Q2:1.14.0.2 pkgsrc-2004Q2-base:1.14 pkgsrc-2004Q1:1.13.0.2 pkgsrc-2004Q1-base:1.13; locks; strict; comment @# @; 1.28 date 2018.01.07.13.03.58; author rillig; state Exp; branches; next 1.27; commitid dlppcM1x04atAWlA; 1.27 date 2012.02.05.12.16.56; author obache; state Exp; branches; next 1.26; 1.26 date 2009.03.20.19.24.04; author joerg; state Exp; branches; next 1.25; 1.25 date 2006.12.12.21.52.35; author joerg; state Exp; branches; next 1.24; 1.24 date 2006.07.08.23.10.39; author jlam; state Exp; branches; next 1.23; 1.23 date 2006.07.08.22.39.04; author jlam; state Exp; branches; next 1.22; 1.22 date 2006.05.31.10.09.24; author rillig; state Exp; branches; next 1.21; 1.21 date 2006.04.12.10.27.04; author rillig; state Exp; branches; next 1.20; 1.20 date 2006.04.06.06.21.40; author reed; state Exp; branches; next 1.19; 1.19 date 2004.11.15.17.54.49; author jlam; state Exp; branches; next 1.18; 1.18 date 2004.10.03.00.13.18; author tv; state Exp; branches; next 1.17; 1.17 date 2004.08.27.06.29.07; author jlam; state Exp; branches; next 1.16; 1.16 date 2004.07.10.03.01.38; author grant; state Exp; branches; next 1.15; 1.15 date 2004.07.07.08.45.39; author wiz; state Exp; branches; next 1.14; 1.14 date 2004.05.17.21.32.34; author seb; state Exp; branches; next 1.13; 1.13 date 2004.03.18.09.12.09; author jlam; state Exp; branches; next 1.12; 1.12 date 2004.03.16.18.23.27; author jlam; state Exp; branches; next 1.11; 1.11 date 2004.03.10.18.06.07; author jlam; state Exp; branches; next 1.10; 1.10 date 2004.02.06.19.04.24; author jlam; state Exp; branches; next 1.9; 1.9 date 2004.02.05.07.17.14; author jlam; state Exp; branches; next 1.8; 1.8 date 2004.02.05.07.06.15; author jlam; state Exp; branches; next 1.7; 1.7 date 2004.02.05.06.58.02; author jlam; state Exp; branches; next 1.6; 1.6 date 2004.01.24.03.12.31; author jlam; state Exp; branches; next 1.5; 1.5 date 2004.01.22.08.58.59; author grant; state Exp; branches; next 1.4; 1.4 date 2004.01.05.11.05.44; author jlam; state Exp; branches; next 1.3; 1.3 date 2004.01.05.09.31.31; author jlam; state Exp; branches; next 1.2; 1.2 date 2004.01.04.23.34.05; author jlam; state Exp; branches; next 1.1; 1.1 date 2004.01.03.23.06.43; author jlam; state Exp; branches; next ; desc @@ 1.28 log @Fix indentation in buildlink3.mk files. The actual fix as been done by "pkglint -F */*/buildlink3.mk", and was reviewed manually. There are some .include lines that still are indented with zero spaces although the surrounding .if is indented. This is existing practice. @ text @# $NetBSD: buildlink3.mk,v 1.27 2012/02/05 12:16:56 obache Exp $ BUILDLINK_TREE+= db2 .if !defined(DB_BUILDLINK3_MK) DB_BUILDLINK3_MK:= BUILDLINK_API_DEPENDS.db2+= db>=2.7.3 BUILDLINK_ABI_DEPENDS.db2+= db>=2.7.7nb2 BUILDLINK_PKGSRCDIR.db2?= ../../databases/db BUILDLINK_INCDIRS.db2?= include/db2 BUILDLINK_LDADD.db2= -ldb2 .include "../../mk/bsd.fast.prefs.mk" .if defined(USE_DB185) && !empty(USE_DB185:M[yY][eE][sS]) #BUILDLINK_LIBS.db2= ${BUILDLINK_LDADD.db2} BUILDLINK_TRANSFORM+= l:db:db2 .endif .endif # DB_BUILDLINK3_MK BUILDLINK_TREE+= -db2 @ 1.27 log @Don't set BUILDLINK_LIBS for db1, db2 and db3, same as db4. It will add BDB libraries to LIBS, and may introduce unwanted linked against BDB libraries, whether needed or not. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.26 2009/03/20 19:24:04 joerg Exp $ d8 1 a8 1 BUILDLINK_API_DEPENDS.db2+= db>=2.7.3 d14 2 a15 2 . include "../../mk/bsd.fast.prefs.mk" . if defined(USE_DB185) && !empty(USE_DB185:M[yY][eE][sS]) d18 1 a18 1 . endif @ 1.26 log @Simply and speed up buildlink3.mk files and processing. This changes the buildlink3.mk files to use an include guard for the recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS, BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of enter/exit marker, which can be used to reconstruct the tree and to determine first level includes. Avoiding := for large variables (BUILDLINK_ORDER) speeds up parse time as += has linear complexity. The include guard reduces system time by avoiding reading files over and over again. For complex packages this reduces both %user and %sys time to half of the former time. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.25 2006/12/12 21:52:35 joerg Exp $ d16 1 a16 1 BUILDLINK_LIBS.db2= ${BUILDLINK_LDADD.db2} @ 1.25 log @Replace mk/bsd.prefs.mk includes with bsd.fast.prefs.mk includes. The redundant parsing of bsd.prefs.mk is mostly avoided now and parse time e.g. for x11/kdebase3 gets reduced by up to 10%. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.24 2006/07/08 23:10:39 jlam Exp $ d3 1 a3 2 BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ DB_BUILDLINK3_MK:= ${DB_BUILDLINK3_MK}+ d5 2 a6 3 .if !empty(BUILDLINK_DEPTH:M+) BUILDLINK_DEPENDS+= db2 .endif a7 5 BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ndb2} BUILDLINK_PACKAGES+= db2 BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}db2 .if !empty(DB_BUILDLINK3_MK:M+) d19 1 a19 1 .endif # DB_BUILDLINK3_MK d21 1 a21 1 BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} @ 1.24 log @Change the format of BUILDLINK_ORDER to contain depth information as well, and add a new helper target and script, "show-buildlink3", that outputs a listing of the buildlink3.mk files included as well as the depth at which they are included. For example, "make show-buildlink3" in fonts/Xft2 displays: zlib fontconfig iconv zlib freetype2 expat freetype2 Xrender renderproto @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.23 2006/07/08 22:39:04 jlam Exp $ d21 1 a21 1 . include "../../mk/bsd.prefs.mk" @ 1.23 log @Track information in a new variable BUILDLINK_ORDER that informs us of the order in which buildlink3.mk files are (recursively) included by a package Makefile. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.22 2006/05/31 10:09:24 rillig Exp $ d12 1 a12 1 BUILDLINK_ORDER+= db2 @ 1.22 log @It suffices to load bsd.prefs.mk once. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.21 2006/04/12 10:27:04 rillig Exp $ d12 1 @ 1.21 log @Aligned the last line of the buildlink3.mk files with the first line, so that they look nicer. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.20 2006/04/06 06:21:40 reed Exp $ a5 2 .include "../../mk/bsd.prefs.mk" d20 1 @ 1.20 log @Over 1200 files touched but no revisions bumped :) RECOMMENDED is removed. It becomes ABI_DEPENDS. BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo. BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo. BUILDLINK_DEPENDS does not change. IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS which defaults to "yes". Added to obsolete.mk checking for IGNORE_RECOMMENDED. I did not manually go through and fix any aesthetic tab/spacing issues. I have tested the above patch on DragonFly building and packaging subversion and pkglint and their many dependencies. I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I have used IGNORE_RECOMMENDED for a long time). I have been an active user of IGNORE_RECOMMENDED since it was available. As suggested, I removed the documentation sentences suggesting bumping for "security" issues. As discussed on tech-pkg. I will commit to revbump, pkglint, pkg_install, createbuildlink separately. Note that if you use wip, it will fail! I will commit to pkgsrc-wip later (within day). @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.19 2004/11/15 17:54:49 jlam Exp $ d28 1 a28 1 BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} @ 1.19 log @Rework the Berkeley DB detection in buildlink3: * Add a db1.builtin.mk file that detects whether DB-1.85 functionality exists in the base system, and remove the distinction between "native" and the other Berkeley DB packages -- we now refer to db[1234]. This paves the way for any future databases/db1 package. * USE_DB185 shouldn't need to be set by any packages -- its correct value is now automatically determined by bdb.buildlink3.mk depending on whether we explicitly request db1 or not. By default, if you include bdb.buildlink3.mk, you want DB-1.85 functionality and USE_DB185 defaults to "yes", but if you explicitly remove db1 from the list of acceptable DBs, then USE_DB185 defaults to "no". * Set BDB_LIBS to the library options needed to link against the DB library when bdb.buildlink3.mk is included. * We only add the DB library to the linker command automatically if we want DB-1.85 functionality; otherwise assume that the package configure process can figure out how to probe for the correct headers and libraries. Edit package Makefiles to nuke redundant settings of USE_DB185. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.18 2004/10/03 00:13:18 tv Exp $ d16 2 a17 2 BUILDLINK_DEPENDS.db2+= db>=2.7.3 BUILDLINK_RECOMMENDED.db2+= db>=2.7.7nb2 @ 1.18 log @Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10 in the process. (More information on tech-pkg.) Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and installing .la files. Bump PKGREVISION (only) of all packages depending directly on the above via a buildlink3 include. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.17 2004/08/27 06:29:07 jlam Exp $ a18 1 . if defined(USE_DB185) d20 4 a23 1 BUILDLINK_LIBDIRS.db2?= lib a24 1 BUILDLINK_CPPFLAGS.db2= -I${BUILDLINK_PREFIX.db2}/${BUILDLINK_INCDIRS.db2} a25 2 BUILDLINK_LDFLAGS.db2= -L${BUILDLINK_PREFIX.db2}/lib ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.db2}/lib BUILDLINK_LIBS.db2= -ldb2 @ 1.17 log @Replace RPATH_FLAG with LINKER_RPATH_FLAG and COMPILER_RPATH_FLAG, which are the full option names used to set rpath directives for the linker and the compiler, respectively. In places were we are invoking the linker, use "${LINKER_RPATH_FLAG} ", where the space is inserted in case the flag is a word, e.g. -rpath. The default values of *_RPATH_FLAG are set by the compiler/*.mk files, depending on the compiler that you use. They may be overridden on a ${OPSYS}-specific basis by setting _OPSYS_LINKER_RPATH_FLAG and _OPSYS_COMPILER_RPATH_FLAG, respectively. Garbage-collect _OPSYS_RPATH_NAME and _COMPILER_LD_FLAG. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.16 2004/07/10 03:01:38 grant Exp $ d17 1 @ 1.16 log @provide BUILDLINK_CPPFLAGS, LDFLAGS and LIBS for each pkgsrc db implementation. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.15 2004/07/07 08:45:39 wiz Exp $ d24 1 a24 1 BUILDLINK_LDFLAGS.db2= -L${BUILDLINK_PREFIX.db2}/lib -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.db2}/lib @ 1.15 log @Set BUILDLINK_LIBDIRS.db?, as mail/exim expects. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.14 2004/05/17 21:32:34 seb Exp $ d22 1 d24 2 @ 1.14 log @Garbage collect BUILDLINK_PKGBASE. from buildlink3: it is not anymore used since revision 1.139 of mk/buildlink3/bsd.buildlink3.mk. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.13 2004/03/18 09:12:09 jlam Exp $ d20 1 @ 1.13 log @Fix serious bug where BUILDLINK_PACKAGES wasn't being ordered properly by moving the inclusion of buildlink3.mk files outside of the protected region. This bug would be seen by users that have set PREFER_PKGSRC or PREFER_NATIVE to non-default values. BUILDLINK_PACKAGES should be ordered so that for any package in the list, that package doesn't depend on any packages to the left of it in the list. This ordering property is used to check for builtin packages in the correct order. The problem was that including a buildlink3.mk file for correctly ensured that was removed from BUILDLINK_PACKAGES and appended to the end. However, since the inclusion of any other buildlink3.mk files within that buildlink3.mk was in a region that was protected against multiple inclusion, those dependencies weren't also moved to the end of BUILDLINK_PACKAGES. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.12 2004/03/16 18:23:27 jlam Exp $ a15 1 BUILDLINK_PKGBASE.db2?= db @ 1.12 log @If the ${PKGBASE} of a package doesn't match the token passed to BUILDLINK_PACKAGES, then set BUILDLINK_PKGBASE. explicitly so that we can map from to BUILDLINK_PKGBASE.. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.11 2004/03/10 18:06:07 jlam Exp $ d19 4 a22 6 .if defined(USE_DB185) BUILDLINK_INCDIRS.db2?= include/db2 BUILDLINK_TRANSFORM+= l:db:db2 .endif @ 1.11 log @bdb.buildlink3.mk is used to select a Berkeley DB implementation for use by pkgsrc. It will automatically depend on either db, db3, or db4 if the native one isn't sufficient. The two variables that control its behaviour are: BDB_DEFAULT is a user-settable variable whose value is the default Berkeley DB implementation to use. BDB_ACCEPTED is a package-settable list of Berkeley DB implementations that may be used by the package. E.g., if you always want to use DB4 as the Berkeley DB for all of the packages, then you can just set: BDB_DEFAULT= db4 in your /etc/mk.conf. Packages that currently include db*/buildlink3.mk should be made to include bdb.buildlink3.mk instead. @ text @d1 1 a1 1 # $NetBSD$ d16 1 @ 1.10 log @If we're passing through MAKEFLAGS variables whose values may contain spaces, use the :Q modifier instead of double-quoting the value. This avoids breakage when executing the just-in-time su targets. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.9 2004/02/05 07:17:14 jlam Exp $ d4 1 a4 1 DB2_BUILDLINK3_MK:= ${DB2_BUILDLINK3_MK}+ d8 2 a9 9 .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 !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \ !empty(PREFER_PKGSRC:Mdb) BUILDLINK_USE_BUILTIN.db= NO d12 6 a17 15 .if !defined(BUILDLINK_USE_BUILTIN.db) BUILDLINK_USE_BUILTIN.db= NO . if defined(USE_DB185) . if exists(/usr/include/db.h) # NetBSD, Darwin BUILDLINK_USE_BUILTIN.db= YES . elif exists(/usr/include/db1/db.h) # Linux BUILDLINK_USE_BUILTIN.db= YES BUILDLINK_INCDIRS.db?= include/db1 BUILDLINK_TRANSFORM+= l:db:db1 . endif . endif MAKEFLAGS+= BUILDLINK_USE_BUILTIN.db=${BUILDLINK_USE_BUILTIN.db} .endif d19 3 a21 4 .if !empty(BUILDLINK_USE_BUILTIN.db:M[nN][oO]) . if !empty(BUILDLINK_DEPTH:M+) BUILDLINK_DEPENDS+= db . endif d24 1 a24 6 .if !empty(DB2_BUILDLINK3_MK:M+) . if !empty(BUILDLINK_USE_BUILTIN.db:M[nN][oO]) BUILDLINK_INCDIRS.db= include/db2 BUILDLINK_TRANSFORM+= l:db:db2 . endif .endif # DB2_BUILDLINK3_MK d26 1 a26 1 BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} @ 1.9 log @Make PREFER_PKGSRC just yes/no or a list of packages. This makes it simpler to understand. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.8 2004/02/05 07:06:15 jlam Exp $ d32 1 a32 1 MAKEFLAGS+= BUILDLINK_USE_BUILTIN.db="${BUILDLINK_USE_BUILTIN.db}" @ 1.8 log @Rename BUILDLINK_PREFER_PKGSRC to PREFER_PKGSRC so that we can use its value outside of buildlink-related files. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.7 2004/02/05 06:58:02 jlam Exp $ d6 2 d14 2 a15 3 .if defined(PREFER_PKGSRC) . if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \ !empty(PREFER_PKGSRC:Mdb) a16 1 . endif @ 1.7 log @Support a new global variable: BUILDLINK_PREFER_PKGSRC This variable determines whether or not to prefer the pkgsrc versions of software that is also present in the base system. This variable is multi-state: defined, or "yes" always prefer the pkgsrc versions not defined, or "no" only use the pkgsrc versions if needed by dependency requirements This can also take a list of packages for which to prefer the pkgsrc-installed software. The package names may be found by consulting the value added to BUILDLINK_PACKAGES in the buildlink[23].mk files for that package. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.6 2004/01/24 03:12:31 jlam Exp $ d12 3 a14 4 .if defined(BUILDLINK_PREFER_PKGSRC) . if empty(BUILDLINK_PREFER_PKGSRC) || \ !empty(BUILDLINK_PREFER_PKGSRC:M[yY][eE][sS]) || \ !empty(BUILDLINK_PREFER_PKGSRC:Mdb) @ 1.6 log @Support BUILDLINK_DEPENDS. being a list of values. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.5 2004/01/22 08:58:59 grant Exp $ d12 8 @ 1.5 log @avoid tickling a bmake bug. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.4 2004/01/05 11:05:44 jlam Exp $ d8 1 a8 1 BUILDLINK_DEPENDS.db?= db>=2.7.3 @ 1.4 log @Use S/+$// instead of C/\+$// to save a backslash. Very highly recommended by seb :) @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.3 2004/01/05 09:31:31 jlam Exp $ d15 2 a16 1 . if exists(/usr/include/db.h) # NetBSD, Darwin d18 2 a19 1 . elif exists(/usr/include/db1/db.h) # Linux @ 1.3 log @Sow BUILDLINK_USE_BUILTIN. and reap _NEED_ variables. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.2 2004/01/04 23:34:05 jlam Exp $ d39 1 a39 1 BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:C/\+$//} @ 1.2 log @Re-arrange to match example buildlink3.mk file in bsd.buildlink3.mk. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.1 2004/01/03 23:06:43 jlam Exp $ d12 2 a13 2 .if !defined(_NEED_DB2) _NEED_DB2= YES d16 1 a16 2 BUILDLINK_PREFIX.db= /usr _NEED_DB2= NO d18 3 a20 4 BUILDLINK_PREFIX.db= /usr BUILDLINK_INCDIRS.db= include/db1 BUILDLINK_TRANSFORM+= l:db:db1 _NEED_DB2= NO d23 1 a23 1 MAKEFLAGS+= _NEED_DB2="${_NEED_DB2}" d26 1 a26 1 .if ${_NEED_DB2} == "YES" d33 1 a33 1 . if ${_NEED_DB2} == "YES" @ 1.1 log @Initial sprinkling of work-in-progress buildlink3.mk files for using the buildlink3 framework. @ text @d1 1 a1 1 # $NetBSD$ d6 1 a6 1 .if !empty(DB2_BUILDLINK3_MK:M\+) d29 1 a29 1 . if !empty(BUILDLINK_DEPTH:M\+) d34 1 a34 1 .if !empty(DB2_BUILDLINK3_MK:M\+) @