summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2005-05-19 02:27:38 +0000
committerjlam <jlam>2005-05-19 02:27:38 +0000
commitf9017877aaebd80450d32c4c4dd2fb77bacab724 (patch)
tree92458ad89d1a2ae46aaf30d87cf0adb66759708f
parent2da006443ac9844a76bea2fe98f12ebccb7b18b4 (diff)
downloadpkgsrc-f9017877aaebd80450d32c4c4dd2fb77bacab724.tar.gz
Properly deal with case where TOOL_DEPENDS.* is a list of values by
iterating over each dependency in the list.
-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