| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/textproc/sgmlformat/ |
Upload File : |
PORTNAME= sgmlformat
PORTVERSION= 1.7
PORTREVISION= 7
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_ENV= STAGEDIR=${STAGEDIR}
# There are two ports that satisfy the nsgmls requirement.
# Jade is preferred.
.include <bsd.port.pre.mk>
.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 <bsd.port.post.mk>