summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2005-04-28 17:40:52 +0000
committerjlam <jlam>2005-04-28 17:40:52 +0000
commit565de8ed9f6949fb1dc630289f944eb0a930e2eb (patch)
tree678a8b592f4218aa54078379f8ce07fa341fcfba /mk
parent76f267a069661f257e7f69ca33d48264f09bd4e5 (diff)
downloadpkgsrc-565de8ed9f6949fb1dc630289f944eb0a930e2eb.tar.gz
Only set the "TOOL" variable if one has been associated with the tool.
Diffstat (limited to 'mk')
-rw-r--r--mk/tools/replace.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk
index b7512aed82d..bd09da2f435 100644
--- a/mk/tools/replace.mk
+++ b/mk/tools/replace.mk
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.52 2005/04/28 17:35:48 jlam Exp $
+# $NetBSD: replace.mk,v 1.53 2005/04/28 17:40:52 jlam Exp $
#
# This Makefile fragment handles "replacements" of system-supplied
# tools with pkgsrc versions. The replacements are placed under
@@ -1000,7 +1000,9 @@ TOOLS_REAL_CMD.${_t_}?= \
${TOOLS_PLATFORM.${_t_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}
TOOLS_ARGS.${_t_}?= \
${TOOLS_PLATFORM.${_t_}:C/^/_asdf_/1:N_asdf_*}
+. if defined(_TOOLS_VARNAME.${_t_})
${_TOOLS_VARNAME.${_t_}}= ${TOOLS_PLATFORM.${_t_}}
+. endif
. if !empty(TOOLS_ARGS.${_t_})
TOOLS_WRAP+= ${_t_}
. else