summaryrefslogtreecommitdiff
path: root/mk/bsd.prefs.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-07-16 22:33:18 +0000
committerjlam <jlam@pkgsrc.org>2005-07-16 22:33:18 +0000
commitb563e8eb9bece0d47ff863c36ebbf5c489988277 (patch)
tree525552ef812db6447e3b7bd6e59e216e548b5e0e /mk/bsd.prefs.mk
parent779a575d77616729cb88e0c38687b3090edb9b8b (diff)
downloadpkgsrc-b563e8eb9bece0d47ff863c36ebbf5c489988277.tar.gz
There is still one small but important distinction between some of the
tools listed in USE_TOOLS -- some of them are required by the pkgsrc infrastructure in variable assignment statements that look like: VARIABLE!= ${AWK} ... These tools are actually *required* by pkgsrc to be installed on the system before it can even work (bootstrap situation). For these tools, only override the "TOOL" name representing the tool if we're really using the pkgsrc version of the tool. We accomplish this by adding a new :pkgsrc modifier that is appended to these tools listed in USE_TOOLS. We also list these tools in bsd.prefs.mk so that all packages pick them up fairly early on.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r--mk/bsd.prefs.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index 87a392e43bb..9e7cc217fce 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.196 2005/07/15 18:27:55 jlam Exp $
+# $NetBSD: bsd.prefs.mk,v 1.197 2005/07/16 22:33:18 jlam Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -567,4 +567,7 @@ PREPEND_PATH+= ${USE_X11:D${X11BASE}/bin} ${LOCALBASE}/bin
# Make variable definitions cache
.include "${PKGSRCDIR}/mk/bsd.makevars.mk"
+_PKGSRC_USE_TOOLS= awk cut echo pwd sed tr uname
+USE_TOOLS+= ${_PKGSRC_USE_TOOLS:S/$/:pkgsrc/}
+
.endif # BSD_PKG_MK