diff --git a/textproc/sgmlformat/Makefile b/textproc/sgmlformat/Makefile index 1e480f7fd360..8be63bbc9797 100644 --- a/textproc/sgmlformat/Makefile +++ b/textproc/sgmlformat/Makefile @@ -1,47 +1,48 @@ PORTNAME= sgmlformat PORTVERSION= 1.7 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= textproc print MASTER_SITES= LOCAL/kuriyama MAINTAINER= ports@FreeBSD.org COMMENT= Generates groff and HTML from linuxdoc and docbook SGML documents USES= perl5 uidfix USE_PERL5= run +MAKE_ARGS= MANDIR="${PREFIX}/share/man/man" MAKE_ENV= STAGEDIR=${STAGEDIR} # There are two ports that satisfy the nsgmls requirement. # Jade is preferred. .include .if ${MACHINE_ARCH} != "i386" WITH_OPENJADE= yes .endif .if defined(WITH_OPENJADE) RUN_DEPENDS= openjade>0:textproc/openjade .else RUN_DEPENDS= nsgmls:textproc/jade .endif RUN_DEPENDS+= linuxdoc>0:textproc/linuxdoc \ docbook-sgml>0:textproc/docbook-sgml \ groff:textproc/groff .if defined(WITH_OPENJADE) post-patch: @${REINPLACE_CMD} -e 's,nsgmls,onsgmls,g' ${WRKSRC}/sgmlfmt/sgmlfmt.pl @${REINPLACE_CMD} -e 's,nsgmls,onsgmls,g' ${WRKSRC}/instant/traninit.c @( cd ${WRKSRC}/transpec && \ ${REINPLACE_CMD} 's,/usr/share/tmac,${PREFIX}/share/groff/current/tmac,' \ docbook-roff.ts iso12083article-roff.ts linuxdoc-roff.ts ) .endif post-build: ${REINPLACE_CMD} -E 's#(/usr|${PREFIX})/bin/perl#${PERL}#' ${WRKSRC}/sgmlfmt/sgmlfmt pre-install: ${MKDIR} ${STAGEDIR}${PREFIX}/share/sgml/transpec .include diff --git a/textproc/sgmlformat/pkg-plist b/textproc/sgmlformat/pkg-plist index cdddc6e9ccec..35b258a9114b 100644 --- a/textproc/sgmlformat/pkg-plist +++ b/textproc/sgmlformat/pkg-plist @@ -1,29 +1,29 @@ bin/catalog bin/docbook-html.ts bin/docbook-roff.ts bin/html.cmap bin/html.sdata bin/instant bin/iso12083article-roff.ts bin/linuxdoc-docbook.ts bin/linuxdoc-html.ts bin/linuxdoc-roff.ts bin/roff.cmap bin/roff.sdata bin/sgmlfmt bin/transpec.dtd -man/man1/instant.1.gz -man/man1/sgmlfmt.1.gz -man/man5/transpec.5.gz +share/man/man1/instant.1.gz +share/man/man1/sgmlfmt.1.gz +share/man/man5/transpec.5.gz share/sgml/transpec/catalog share/sgml/transpec/docbook-html.ts share/sgml/transpec/docbook-roff.ts share/sgml/transpec/html.cmap share/sgml/transpec/html.sdata share/sgml/transpec/iso12083article-roff.ts share/sgml/transpec/linuxdoc-docbook.ts share/sgml/transpec/linuxdoc-html.ts share/sgml/transpec/linuxdoc-roff.ts share/sgml/transpec/roff.cmap share/sgml/transpec/roff.sdata share/sgml/transpec/transpec.dtd