mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
df2025b4b2
PR: ports/196043 Submitted by: mandree
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
# Created by: jfieber
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= sgmlformat
|
|
PORTVERSION= 1.7
|
|
PORTREVISION= 5
|
|
CATEGORIES= textproc print
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
MASTER_SITE_SUBDIR= kuriyama
|
|
|
|
MAINTAINER= kuriyama@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= onsgmls:${PORTSDIR}/textproc/openjade
|
|
.else
|
|
RUN_DEPENDS= nsgmls:${PORTSDIR}/textproc/jade
|
|
.endif
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/sgml/linuxdoc:${PORTSDIR}/textproc/linuxdoc \
|
|
${LOCALBASE}/share/sgml/docbook/4.1:${PORTSDIR}/textproc/docbook-sgml
|
|
# Above depending on docbook-4.1 file is just for workaround. We need
|
|
# some of docbook DTDs, but not all.
|
|
|
|
.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
|
|
.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>
|