summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2005-05-19 02:27:38 +0000
committerjlam <jlam>2005-05-19 02:27:38 +0000
commitf2c2158a1b542660b5f5cbaaf498c3b722539e5f (patch)
tree92458ad89d1a2ae46aaf30d87cf0adb66759708f /mk
parent022a24f1d51b833d89a7c620553d52d14c7d88a5 (diff)
downloadpkgsrc-f2c2158a1b542660b5f5cbaaf498c3b722539e5f.tar.gz
Properly deal with case where TOOL_DEPENDS.* is a list of values by
iterating over each dependency in the list.
Diffstat (limited to 'mk')
-rw-r--r--mk/tools/replace.mk11
1 files changed, 7 insertions, 4 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk
index 01c7915cef0..43807324a83 100644
--- a/mk/tools/replace.mk
+++ b/mk/tools/replace.mk
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.83 2005/05/18 05:31:55 jlam Exp $
+# $NetBSD: replace.mk,v 1.84 2005/05/19 02:27:38 jlam Exp $
#
# This Makefile fragment handles "replacements" of system-supplied
# tools with pkgsrc versions.
@@ -996,9 +996,12 @@ FIND_PREFIX:= ${TOOLS_FIND_PREFIX}
#
.for _t_ in ${_USE_TOOLS}
. if defined(TOOLS_DEPMETHOD.${_t_}) && defined(TOOLS_DEPENDS.${_t_})
-. if empty(${TOOLS_DEPMETHOD.${_t_}}:M${TOOLS_DEPENDS.${_t_}})
-${TOOLS_DEPMETHOD.${_t_}}+= ${TOOLS_DEPENDS.${_t_}}
-. endif
+. for _dep_ in ${TOOLS_DEPENDS.${_t_}}
+. if empty(${TOOLS_DEPMETHOD.${_t_}}:C/\:.*$//:M${_dep_:C/\:.*$//})
+${TOOLS_DEPMETHOD.${_t_}}+= ${_dep_}
+. endif
+. endfor
+. undef _dep_
. endif
.endfor