summaryrefslogtreecommitdiff
path: root/mk/tools
diff options
context:
space:
mode:
authorrillig <rillig>2007-09-10 07:25:14 +0000
committerrillig <rillig>2007-09-10 07:25:14 +0000
commitd352c99475217b0d6a1bd4d5d79e209212bfc05d (patch)
treef8dc4e115739372452b1ca6745b502a972c708e4 /mk/tools
parentbe45d6c65f49af3402b1f803e1904d9aa2d3da52 (diff)
downloadpkgsrc-d352c99475217b0d6a1bd4d5d79e209212bfc05d.tar.gz
Reverted the last change. Apparently, it was committed without testing
it first.
Diffstat (limited to 'mk/tools')
-rw-r--r--mk/tools/replace.mk56
1 files changed, 38 insertions, 18 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk
index 84d60518fd9..ce0d3b958cd 100644
--- a/mk/tools/replace.mk
+++ b/mk/tools/replace.mk
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.197 2007/09/10 07:00:37 rillig Exp $
+# $NetBSD: replace.mk,v 1.198 2007/09/10 07:25:14 rillig Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -141,23 +141,43 @@ _TOOLS_DEPMETHOD.${_t_:C/:.*//}= BUILD_DEPENDS
_TOOLS_DEPMETHOD.${_t_:C/:.*//}= DEPENDS
.endfor
-.for pair in \
- bison-yacc:yacc \
- flex:lex \
- gawk:awk \
- gm4:m4 \
- gsed:sed \
- gsoelim:soelim
-. for first in ${pair:C/:.*//}
-. for second in ${pair:C/.*://}
-. if !empty(_USE_TOOLS:M${first})
-. if (${_TOOLS_DEPMETHOD.${first}} == "BUILD_DEPENDS") && defined(_TOOLS_DEPMETHOD.${second})
-_TOOLS_DEPMETHOD.${first}= ${_TOOLS_DEPMETHOD.${second}}
-. endif
-. endif
-. endfor
-. endfor
-.endfor
+.if !empty(_USE_TOOLS:Mbison-yacc) # bison-yacc > yacc
+. if defined(_TOOLS_DEPMETHOD.bison-yacc) && \
+ (${_TOOLS_DEPMETHOD.bison-yacc} == "BUILD_DEPENDS") && \
+ defined(_TOOLS_DEPMETHOD.yacc)
+_TOOLS_DEPMETHOD.bison-yacc= ${_TOOLS_DEPMETHOD.yacc}
+. endif
+.endif
+.if !empty(_USE_TOOLS:Mflex) # flex > lex
+. if (${_TOOLS_DEPMETHOD.flex} == "BUILD_DEPENDS") && \
+ defined(_TOOLS_DEPMETHOD.lex)
+_TOOLS_DEPMETHOD.flex= ${_TOOLS_DEPMETHOD.lex}
+. endif
+.endif
+.if !empty(_USE_TOOLS:Mgawk) # gawk > awk
+. if (${_TOOLS_DEPMETHOD.gawk} == "BUILD_DEPENDS") && \
+ defined(_TOOLS_DEPMETHOD.awk)
+_TOOLS_DEPMETHOD.gawk= ${_TOOLS_DEPMETHOD.awk}
+. endif
+.endif
+.if !empty(_USE_TOOLS:Mgm4) # gm4 > m4
+. if (${_TOOLS_DEPMETHOD.gm4} == "BUILD_DEPENDS") && \
+ defined(_TOOLS_DEPMETHOD.m4)
+_TOOLS_DEPMETHOD.gm4= ${_TOOLS_DEPMETHOD.m4}
+. endif
+.endif
+.if !empty(_USE_TOOLS:Mgsed) # gsed > sed
+. if (${_TOOLS_DEPMETHOD.gsed} == "BUILD_DEPENDS") && \
+ defined(_TOOLS_DEPMETHOD.sed)
+_TOOLS_DEPMETHOD.gsed= ${_TOOLS_DEPMETHOD.sed}
+. endif
+.endif
+.if !empty(_USE_TOOLS:Mgsoelim) # gsoelim > soelim
+. if (${_TOOLS_DEPMETHOD.gsoelim} == "BUILD_DEPENDS") && \
+ defined(_TOOLS_DEPMETHOD.soelim)
+_TOOLS_DEPMETHOD.gsoelim= ${_TOOLS_DEPMETHOD.soelim}
+. endif
+.endif
######################################################################