summaryrefslogtreecommitdiff
path: root/mk/tools/replace.mk
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-06-19 17:01:12 +0000
committerjoerg <joerg@pkgsrc.org>2007-06-19 17:01:12 +0000
commit9c4082e87d1d6db7afd46863c1499f22e0d050bd (patch)
tree010304e0b022e6667f49d5aaf9178c870d84d976 /mk/tools/replace.mk
parentdf1673ebc9aaac4d191e1e586b5c58e2e5ee5880 (diff)
downloadpkgsrc-9c4082e87d1d6db7afd46863c1499f22e0d050bd.tar.gz
Add bzip2 as tool. All platforms that had code to deal with bzcat
also get bzip2, the rest falls back to archivers/bzip2. OK jlam.
Diffstat (limited to 'mk/tools/replace.mk')
-rw-r--r--mk/tools/replace.mk22
1 files changed, 12 insertions, 10 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk
index 4dcc4a7e608..eef1d048f4b 100644
--- a/mk/tools/replace.mk
+++ b/mk/tools/replace.mk
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.191 2007/06/19 14:21:18 joerg Exp $
+# $NetBSD: replace.mk,v 1.192 2007/06/19 17:01:12 joerg Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -270,16 +270,18 @@ TOOLS_CMD.byacc= ${TOOLS_DIR}/bin/yacc
. endif
.endif
-.if !defined(TOOLS_IGNORE.bzcat) && !empty(_USE_TOOLS:Mbzcat)
-. if !empty(PKGPATH:Marchivers/bzip2)
-MAKEFLAGS+= TOOLS_IGNORE.bzcat=
-. elif !empty(_TOOLS_USE_PKGSRC.bzcat:M[yY][eE][sS])
-TOOLS_DEPENDS.bzcat?= bzip2>=0.9.0b:../../archivers/bzip2
-TOOLS_CREATE+= bzcat
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.bzcat=bzip2
-TOOLS_PATH.bzcat= ${TOOLS_PREFIX.bzcat}/bin/bzcat
+.for _t_ in bzip2 bzcat
+. if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_})
+. if !empty(PKGPATH:Marchivers/bzip2)
+MAKEFLAGS+= TOOLS_IGNORE.${_t_}=
+. elif !empty(_TOOLS_USE_PKGSRC.${_t_}:M[yY][eE][sS])
+TOOLS_DEPENDS.${_t_}?= bzip2>=0.9.0b:../../archivers/bzip2
+TOOLS_CREATE+= ${_t_}
+TOOLS_FIND_PREFIX+= TOOLS_PREFIX.${_t_}=bzip2
+TOOLS_PATH.bzcat= ${TOOLS_PREFIX.${_t_}}/bin/${_t_}
+. endif
. endif
-.endif
+.endfor
.if !defined(TOOLS_IGNORE.csh) && !empty(_USE_TOOLS:Mcsh)
. if !empty(PKGPATH:Mshells/tcsh)