summaryrefslogtreecommitdiff
path: root/mk/bsd.prefs.mk
diff options
context:
space:
mode:
authorjlam <jlam>2005-05-10 19:06:58 +0000
committerjlam <jlam>2005-05-10 19:06:58 +0000
commitf5156282b445fc25c1faa1133ad7c9c5670f0e33 (patch)
treecdcfe088ddca42188902760b521315cb44c4938e /mk/bsd.prefs.mk
parent7835a25c4c3a678ab3c2d2e3a03ff1dcdda89488 (diff)
downloadpkgsrc-f5156282b445fc25c1faa1133ad7c9c5670f0e33.tar.gz
Make a distinction between the tools that pkgsrc needs and the tools
that a package needs. Tools that pkgsrc needs are listed in PKGSRC_USE_TOOLS, and tools that a package needs on top of that are listed in USE_TOOLS. Define "TOOL" variables, e.g. SED, AWK, MKDIR, etc. for each of the tools that pkgsrc needs, and "TOOLS_TOOL" variables, e.g. TOOLS_SED, TOOLS_AWK, TOOLS_MKDIR, etc. for each of the tools that a package needs. These variables contain the full command line to the real command and arguments needed to invoke the tool.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r--mk/bsd.prefs.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index d99e159b4f9..65a1d093aab 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.189 2005/05/09 05:06:55 jlam Exp $
+# $NetBSD: bsd.prefs.mk,v 1.190 2005/05/10 19:06:58 jlam Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -267,13 +267,16 @@ _PKGSRC_TOPDIR= ${.CURDIR}/../..
. include "${_PKGSRC_TOPDIR}/mk/defaults/mk.conf"
.endif
+PKGSRC_USE_TOOLS?= # empty
+USE_TOOLS?= # empty
+
# Provide default values for TOOLs used by the top-level make.
-USE_TOOLS+= [ awk dirname echo grep pwd sed test true
+PKGSRC_USE_TOOLS+= [ awk dirname echo grep pwd sed test true
# These tools are used by the top-level make only in certain packages and
# should eventually be moved into those particular package Makefiles.
#
-USE_TOOLS+= date tr
+PKGSRC_USE_TOOLS+= date tr
_USE_NEW_TOOLS?= no
.if !empty(_USE_NEW_TOOLS:M[yY][eE][sS])