Short bl3 fragment to provide a NROFF (base system or textproc/groff

package, based on whether /usr/bin/nroff is available).
This commit is contained in:
tv 2005-03-15 04:45:50 +00:00
parent a207154f2b
commit 0d436c3cfd

17
mk/nroff.buildlink3.mk Normal file
View file

@ -0,0 +1,17 @@
# $NetBSD: nroff.buildlink3.mk,v 1.1 2005/03/15 04:45:50 tv Exp $
#
# This fragment provides a NROFF macro, and includes a dependency
# on textproc/groff if needed. This does not depend on the OS providing
# groff; if any system-supplied nroff is available, it is accepted.
#
.include "../../mk/bsd.prefs.mk"
.if !defined(NROFF)
. if exists(/usr/bin/nroff)
NROFF?= /usr/bin/nroff
. else
. include "../../textproc/groff/buildlink3.mk"
NROFF?= ${BUILDLINK_PREFIX.groff}/bin/nroff
. endif
.endif