pkgsrc/textproc/groff/Makefile
wiz cecd995b8d Add groff-docs option, enabled by default.
When turning it off, you can get rid of the netpbm, psutils,
and ghostscript dependencies. Might help in bootstrapping some
platforms. Based on a patch from schmonz@.

While here, improve PLIST by trying to remove an additional directory
and bump PKGREVISION for that.
2006-07-24 16:49:12 +00:00

56 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.38 2006/07/24 16:49:12 wiz Exp $
#
DISTNAME= groff-1.19.2
PKGREVISION= 4
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GNU:=groff/}
MAINTAINER= wiz@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/groff/groff.html
COMMENT= GNU roff text processing suite
USE_LANGUAGES= c c++
GNU_CONFIGURE= YES
CONFIGURE_ENV+= PERLPATH=${PERL5:Q}
USE_TOOLS+= perl:run sed:run awk:run
INFO_FILES= YES
REPLACE_INTERPRETER+= sed
REPLACE.sed.old= .*/sed
REPLACE.sed.new= ${SED}
REPLACE_FILES.sed+= font/devps/generate/symbol.sed
.include "options.mk"
PLIST_SRC+= PLIST
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
PLIST_SUBST+= GNU_PREFIX="g"
.else
PLIST_SUBST+= GNU_PREFIX=""
.endif
BUILD_DEFS+= PAPERSIZE
.if defined(PAPERSIZE)
CONFIGURE_ENV+= PAGE=${PAPERSIZE:Q}
.endif
# Usually the mdoc.local "volume-operating-system" definition is for
# the operating system name often displayed on top of man pages. And
# "operating-system" is for the default .Os value (operating system
# and version/release) and is usually displayed at bottom of man page.
# XXX Use "pkgsrc" as default .Os value.
post-patch:
${SED} -e "s,@@VOLUME_OPERATING_SYSTEM@@,${OPSYS},g" \
-e "s,@@OPERATING_SYSTEM@@,pkgsrc,g" \
${FILESDIR}/mdoc.local > ${WRKDIR}/mdoc.local
post-install:
${INSTALL_DATA} ${WRKDIR}/mdoc.local \
${PREFIX}/share/groff/site-tmac
.include "../../mk/bsd.pkg.mk"