summaryrefslogtreecommitdiff
path: root/mk/tools
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-01-08 22:09:05 +0000
committerjlam <jlam@pkgsrc.org>2006-01-08 22:09:05 +0000
commitff83ba02a2da092988bb10c3f6e2f8ea1250d7ea (patch)
tree30bda19e27fcdd3fa06d66adebb307ce1d7ab3ab /mk/tools
parent33d24ca22ae1b8a6d40d1df3cb308487960553eb (diff)
downloadpkgsrc-ff83ba02a2da092988bb10c3f6e2f8ea1250d7ea.tar.gz
Consolidate groff-supplied tools into one section.
Diffstat (limited to 'mk/tools')
-rw-r--r--mk/tools/replace.mk55
1 files changed, 21 insertions, 34 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk
index becb114f795..fbfa924316a 100644
--- a/mk/tools/replace.mk
+++ b/mk/tools/replace.mk
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.150 2005/12/28 22:41:27 jlam Exp $
+# $NetBSD: replace.mk,v 1.151 2006/01/08 22:09:05 jlam Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -492,17 +492,6 @@ TOOLS_PATH.mtree= ${TOOLS_PREFIX.mtree}/bin/mtree
. endif
.endif
-.if !defined(TOOLS_IGNORE.nroff) && !empty(_USE_TOOLS:Mnroff)
-. if !empty(PKGPATH:Mtextproc/groff)
-MAKEFLAGS+= TOOLS_IGNORE.nroff=
-. elif !empty(_TOOLS_USE_PKGSRC.nroff:M[yY][eE][sS])
-TOOLS_DEPENDS.nroff?= groff>=1.19nb4:../../textproc/groff
-TOOLS_CREATE+= nroff
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.nroff=groff
-TOOLS_PATH.nroff= ${TOOLS_PREFIX.nroff}/bin/nroff
-. endif
-.endif
-
.if !defined(TOOLS_IGNORE.patch) && !empty(_USE_TOOLS:Mpatch)
. if !empty(PKGPATH:Mdevel/patch)
MAKEFLAGS+= TOOLS_IGNORE.patch=
@@ -600,17 +589,6 @@ TOOLS_PATH.shlock= ${TOOLS_PREFIX.shlock}/bin/shlock
. endif
.endif
-.if !defined(TOOLS_IGNORE.soelim) && !empty(_USE_TOOLS:Msoelim)
-. if !empty(PKGPATH:Mtextproc/groff)
-MAKEFLAGS+= TOOLS_IGNORE.soelim=
-. elif !empty(_TOOLS_USE_PKGSRC.soelim:M[yY][eE][sS])
-TOOLS_DEPENDS.soelim?= groff>=1.19nb4:../../textproc/groff
-TOOLS_CREATE+= soelim
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.soelim=groff
-TOOLS_PATH.soelim= ${TOOLS_PREFIX.soelim}/bin/soelim
-. endif
-.endif
-
.if !defined(TOOLS_IGNORE.tar) && !empty(_USE_TOOLS:Mtar)
. if !empty(PKGPATH:Marchivers/pax)
MAKEFLAGS+= TOOLS_IGNORE.tar=
@@ -626,17 +604,6 @@ TOOLS_PATH.tar= ${TOOLS_PREFIX.tar}/bin/tar
. endif
.endif
-.if !defined(TOOLS_IGNORE.tbl) && !empty(_USE_TOOLS:Mtbl)
-. if !empty(PKGPATH:Mtextproc/groff)
-MAKEFLAGS+= TOOLS_IGNORE.tbl=
-. elif !empty(_TOOLS_USE_PKGSRC.tbl:M[yY][eE][sS])
-TOOLS_DEPENDS.tbl?= groff>=1.19nb4:../../textproc/groff
-TOOLS_CREATE+= tbl
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.tbl=groff
-TOOLS_PATH.tbl= ${TOOLS_PREFIX.tbl}/bin/tbl
-. endif
-.endif
-
.if !defined(TOOLS_IGNORE.tclsh) && !empty(_USE_TOOLS:Mtclsh)
. if !empty(PKGPATH:Mlang/tcl)
MAKEFLAGS+= TOOLS_IGNORE.tclsh=
@@ -804,6 +771,26 @@ TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/${GNU_PROGRAM_PREFIX}${_t_}
######################################################################
+# These tools are all supplied by the textproc/groff package if there is
+# no native tool available.
+#
+_TOOLS.groff= nroff soelim tbl
+
+.for _t_ in ${_TOOLS.groff}
+. if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_})
+. if !empty(PKGPATH:Mtextproc/groff)
+MAKEFLAGS+= TOOLS_IGNORE.${_t_}=
+. elif !empty(_TOOLS_USE_PKGSRC.${_t_}:M[yY][eE][sS])
+TOOLS_DEPENDS.${_t_}?= groff>=1.19nb4:../../textproc/groff
+TOOLS_CREATE+= ${_t_}
+TOOLS_FIND_PREFIX+= TOOLS_PREFIX.${_t_}=groff
+TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/${_t_}
+. endif
+. endif
+.endfor
+
+######################################################################
+
# These tools are all supplied by the devel/diffutils package if there is
# no native tool available.
#