diff options
author | tv <tv@pkgsrc.org> | 2005-03-15 04:45:50 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2005-03-15 04:45:50 +0000 |
commit | 18353bb9960776dc3c76498f547312e82e9bb8da (patch) | |
tree | 3443423738961c89d4b1df00a5e0e4f23d6eb666 /mk | |
parent | 6a82fe917425f404165dc929ffe99249e65d0f9c (diff) | |
download | pkgsrc-18353bb9960776dc3c76498f547312e82e9bb8da.tar.gz |
Short bl3 fragment to provide a NROFF (base system or textproc/groff
package, based on whether /usr/bin/nroff is available).
Diffstat (limited to 'mk')
-rw-r--r-- | mk/nroff.buildlink3.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mk/nroff.buildlink3.mk b/mk/nroff.buildlink3.mk new file mode 100644 index 00000000000..049391b2397 --- /dev/null +++ b/mk/nroff.buildlink3.mk @@ -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 |