diff options
author | jlam <jlam@pkgsrc.org> | 2005-05-10 19:06:58 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-05-10 19:06:58 +0000 |
commit | dfb5ed0037c73817640815279b88366522baaced (patch) | |
tree | cdcfe088ddca42188902760b521315cb44c4938e /mk/bsd.prefs.mk | |
parent | 1e5c808685cbecfb7910cd23ae0d913052909300 (diff) | |
download | pkgsrc-dfb5ed0037c73817640815279b88366522baaced.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.mk | 9 |
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]) |