summaryrefslogtreecommitdiff
path: root/mk/tools/imake.mk
diff options
context:
space:
mode:
authorjlam <jlam>2005-05-10 19:06:58 +0000
committerjlam <jlam>2005-05-10 19:06:58 +0000
commitac8a48dafbadd8c48942070397b10e52457334fc (patch)
treecdcfe088ddca42188902760b521315cb44c4938e /mk/tools/imake.mk
parente57cf4c08f68f01e387a31ba45cc29d95a04acfb (diff)
downloadpkgsrc-ac8a48dafbadd8c48942070397b10e52457334fc.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/tools/imake.mk')
-rw-r--r--mk/tools/imake.mk14
1 files changed, 10 insertions, 4 deletions
diff --git a/mk/tools/imake.mk b/mk/tools/imake.mk
index 497b15a46fc..4b7d8d8b0db 100644
--- a/mk/tools/imake.mk
+++ b/mk/tools/imake.mk
@@ -1,4 +1,4 @@
-# $NetBSD: imake.mk,v 1.4 2005/05/09 01:11:58 jlam Exp $
+# $NetBSD: imake.mk,v 1.5 2005/05/10 19:06:59 jlam Exp $
#
# This Makefile fragment handles packages that need imake and xmkmf
# to build X11-related packages. The correct imake and xmkmf tools
@@ -13,6 +13,9 @@
# XMKMF command to create all Makefiles from Imakefiles,
# usually "xmkmf -a".
#
+# TOOLS_IMAKE, TOOLS_XMKMF_CMD and TOOLS_XMKMF are set to the same
+# corresponding values.
+#
# Optional variables that may be defined by the package are:
#
# IMAKEOPTS Options to pass to imake
@@ -81,8 +84,11 @@ USE_TOOLS+= ${_IMAKE_TOOLS:Nimake}
# to imake and xmkmf.
#
TOOLS_CREATE+= imake xmkmf
-${_TOOLS_VARNAME.imake}= ${TOOLS_REAL_CMD.imake} ${TOOLS_REAL_ARGS.imake}
-${_TOOLS_VARNAME.xmkmf}= ${TOOLS_REAL_CMD.xmkmf} ${TOOLS_REAL_ARGS.xmkmf}
-XMKMF= ${${_TOOLS_VARNAME.xmkmf}} -a
+TOOLS_${_TOOLS_VARNAME.imake}= ${TOOLS_REAL_CMD.imake} ${TOOLS_REAL_ARGS.imake}
+TOOLS_${_TOOLS_VARNAME.xmkmf}= ${TOOLS_REAL_CMD.xmkmf} ${TOOLS_REAL_ARGS.xmkmf}
+TOOLS_XMKMF= ${${_TOOLS_VARNAME.xmkmf}} -a
+${_TOOLS_VARNAME.imake}= ${TOOLS_${_TOOLS_VARNAME.imake}}
+${_TOOLS_VARNAME.xmkmf}= ${TOOLS_${_TOOLS_VARNAME.xmkmf}}
+XMKMF= ${TOOLS_XMKMF}
. endif
.endif