diff options
author | jlam <jlam@pkgsrc.org> | 2005-05-19 02:27:38 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-05-19 02:27:38 +0000 |
commit | 6789e6399c03594c6318f9184df571d967a5f8a7 (patch) | |
tree | 92458ad89d1a2ae46aaf30d87cf0adb66759708f /mk | |
parent | fdfbd5e44638697f10780deaa9084fbc38612989 (diff) | |
download | pkgsrc-6789e6399c03594c6318f9184df571d967a5f8a7.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.mk | 11 |
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 |