pkgsrc/mk/nroff.buildlink3.mk
tv 0d436c3cfd Short bl3 fragment to provide a NROFF (base system or textproc/groff
package, based on whether /usr/bin/nroff is available).
2005-03-15 04:45:50 +00:00

17 lines
506 B
Makefile

# $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