From 677ba266b7c8c4cffbfa24c451b6054f07f20222 Mon Sep 17 00:00:00 2001 From: tnn Date: Thu, 7 Feb 2008 12:10:36 +0000 Subject: Fix busted groff handling on SunOS. Also, change the logic so that the construct: USE_TOOLS+= groff nroff means: "iff groff is to be provided by textproc/groff, then nroff is also to be provided by textproc/groff". This provides a sane mechanism to express need for GNU nroff. This is part one of fixing packages that set USE_BSD_MAKEFILE=yes on SunOS. (bsd.man.mk needs an nroff that understands -mandoc) --- mk/tools/replace.mk | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'mk') diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk index ef150704416..da2172fd2d1 100644 --- a/mk/tools/replace.mk +++ b/mk/tools/replace.mk @@ -1,4 +1,4 @@ -# $NetBSD: replace.mk,v 1.204 2008/01/04 01:46:27 rillig Exp $ +# $NetBSD: replace.mk,v 1.205 2008/02/07 12:10:36 tnn Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -895,11 +895,15 @@ _TOOLS.groff= groff nroff soelim tbl . 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]) +. elif !empty(_TOOLS_USE_PKGSRC.${_t_}:M[yY][eE][sS]) || \ + !empty(_TOOLS_USE_PKGSRC.groff:M[yY][eE][sS]) +. if !empty(_TOOLS_USE_PKGSRC.groff:M[yY][eE][sS]) +_TOOLS_USE_PKGSRC.${_t_}= yes +. endif TOOLS_DEPENDS.${_t_}?= groff>=1.19.2nb3:../../textproc/groff TOOLS_CREATE+= ${_t_} TOOLS_FIND_PREFIX+= TOOLS_PREFIX.${_t_}=groff -. if ${OPSYS} == "SunOS" +. if ${OPSYS} == "SunOS" && "${_t_}" != "groff" TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/g${_t_} . else TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/${_t_} -- cgit v1.2.3