diff options
Diffstat (limited to 'mk/tools')
-rw-r--r-- | mk/tools/replace.mk | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk index 20d47833988..9fb01140b5f 100644 --- a/mk/tools/replace.mk +++ b/mk/tools/replace.mk @@ -1,4 +1,4 @@ -# $NetBSD: replace.mk,v 1.261 2013/08/17 12:00:37 richard Exp $ +# $NetBSD: replace.mk,v 1.262 2013/09/12 10:48:51 jperkin Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -991,10 +991,31 @@ TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/g${_t_} ###################################################################### +# These tools are supplied by textproc/mdocml as replacements for their +# groff counterparts. As this package has fewer dependencies it should +# be preferred over groff wherever possible. +# +_TOOLS.mdocml= nroff + +.for _t_ in ${_TOOLS.mdocml} +. if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_}) +. if !empty(PKGPATH:Mtextproc/mdocml) +MAKEFLAGS+= TOOLS_IGNORE.${_t_}= +. elif !empty(_TOOLS_USE_PKGSRC.${_t_}:M[yY][eE][sS]) +TOOLS_DEPENDS.${_t_}?= mdocml>=1.12.0nb3:../../textproc/mdocml +TOOLS_CREATE+= ${_t_} +TOOLS_FIND_PREFIX+= TOOLS_PREFIX.${_t_}=mdocml +TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/mandoc +. endif +. endif +.endfor + +###################################################################### + # These tools are all supplied by the textproc/groff package if there is # no native tool available. # -_TOOLS.groff= groff nroff soelim tbl +_TOOLS.groff= groff soelim tbl .for _t_ in ${_TOOLS.groff} . if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_}) |