2013-06-29 00:34:15 +02:00
|
|
|
# Created by: Cyrille Lefevre <clefevre@citeweb.net>
|
2001-10-07 18:33:04 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= docbook-to-man
|
|
|
|
PORTVERSION= 1.0
|
2009-06-09 17:33:28 +02:00
|
|
|
PORTREVISION= 2
|
2001-10-07 18:33:04 +02:00
|
|
|
CATEGORIES= textproc
|
|
|
|
MASTER_SITES= http://www.oasis-open.org/docbook/tools/dtm/
|
|
|
|
DISTNAME= ${PORTNAME}
|
|
|
|
|
2005-12-02 03:05:39 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-06-29 00:34:15 +02:00
|
|
|
COMMENT= DocBook SGML DTD into nroff/troff -man macros converter
|
2001-10-07 18:33:04 +02:00
|
|
|
|
2015-01-23 23:50:49 +01:00
|
|
|
RUN_DEPENDS= docbook>0:${PORTSDIR}/textproc/docbook
|
2001-10-07 18:33:04 +02:00
|
|
|
|
2013-06-29 00:34:15 +02:00
|
|
|
USES= imake
|
2008-04-18 04:30:15 +02:00
|
|
|
XFREE86_HTML_MAN= no
|
2001-10-07 18:33:04 +02:00
|
|
|
|
2014-11-05 12:41:02 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
2008-04-18 04:30:15 +02:00
|
|
|
# There are two ports that satisfy the nsgmls requirement.
|
2014-01-28 16:16:39 +01:00
|
|
|
# Jade is preferred, but OpenJade can be selected if needed.
|
|
|
|
OPTIONS_DEFINE= OPENJADE
|
|
|
|
OPENJADE_DESC= Use OpenJade SGML/XML/DSSSL toolkit instead of Jade
|
2008-04-18 04:30:15 +02:00
|
|
|
|
2014-01-28 16:16:39 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2008-04-18 04:30:15 +02:00
|
|
|
|
2014-01-28 16:16:39 +01:00
|
|
|
.if ${PORT_OPTIONS:MOPENJADE}
|
|
|
|
RUN_DEPENDS+= onsgmls:${PORTSDIR}/textproc/openjade
|
2001-10-07 18:33:04 +02:00
|
|
|
NSGMLS= onsgmls
|
|
|
|
.else
|
2014-01-28 16:16:39 +01:00
|
|
|
RUN_DEPENDS+= nsgmls:${PORTSDIR}/textproc/jade
|
2001-10-07 18:33:04 +02:00
|
|
|
NSGMLS= nsgmls
|
|
|
|
.endif
|
|
|
|
|
2014-01-28 16:16:39 +01:00
|
|
|
post-extract:
|
2001-10-07 18:33:04 +02:00
|
|
|
@${MV} ${WRKSRC}/Doc/instant.1 ${WRKSRC}/Instant/oinstant.man
|
|
|
|
|
2014-01-28 16:16:39 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}| ; \
|
|
|
|
s|%%NSGMLS%%|${NSGMLS}|' ${WRKSRC}/cmd/docbook-to-man.sh
|
2001-10-07 18:33:04 +02:00
|
|
|
|
2014-01-28 16:16:39 +01:00
|
|
|
.include <bsd.port.mk>
|