blob: 839bfc3306d0abb8c826d1c58d925c83b2cb308b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# New ports collection makefile for: xmlto
# Date created: 2003-06-05
# Whom: Sergei Kolobov <sergei@kolobov.com>
#
# $FreeBSD$
#
# The following compile-time options are available:
# WITH_PASSIVETEX Enable PassiveTex support for DVI/PDF/PS output
PORTNAME= xmlto
PORTVERSION= 0.0.15.p1
CATEGORIES= textproc
MASTER_SITES= http://cyberelk.net/tim/data/xmlto/stable/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p/pre/}
MAINTAINER= sergei@FreeBSD.org
COMMENT= Front-end to an XSL toolchain
BUILD_DEPENDS= ${BASH_CMD}:${PORTSDIR}/shells/bash2 \
${GETOPT_CMD}:${PORTSDIR}/misc/getopt \
xmllint:${PORTSDIR}/textproc/libxml2 \
xsltproc:${PORTSDIR}/textproc/libxslt \
${XSL_DIR}:${PORTSDIR}/textproc/docbook-xsl
RUN_DEPENDS= ${BUILD_DEPENDS}
.if defined(WITH_PASSIVETEX) || exists(${PASSIVETEX})
BUILD_DEPENDS+= ${PASSIVETEX}:${PORTSDIR}/print/passivetex
PLIST_SUB= PASSIVETEX=""
.else
PLIST_SUB= PASSIVETEX="@comment "
.endif
USE_BZIP2= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-bash=${BASH_CMD} --with-getopt=${GETOPT_CMD}
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
BASH_CMD= ${LOCALBASE}/bin/bash
GETOPT_CMD= ${LOCALBASE}/bin/getopt
PASSIVETEX= ${LOCALBASE}/share/texmf/tex/passivetex
DOCBOOK_URL= http://www.oasis-open.org/docbook/xml
DOCBOOK_DIR= ${LOCALBASE}/share/xml/docbook
XSL_URL= http://docbook.sourceforge.net/release/xsl/current
XSL_DIR= ${LOCALBASE}/share/xsl/docbook
MAN1= xmlif.1 xmlto.1
DOCS= AUTHORS NEWS
do-patch:
${REINPLACE_CMD} -e 's,/bin/bash,${BASH_CMD},' ${WRKSRC}/xmlto.in
${REINPLACE_CMD} -e 's,${DOCBOOK_URL},${DOCBOOK_DIR},' \
${WRKSRC}/doc/xml*.xml
${REINPLACE_CMD} -e 's,${XSL_URL},${XSL_DIR},' \
${WRKSRC}/format/docbook/*
.if !defined(WITH_PASSIVETEX)
${REINPLACE_CMD} -e '/format\/fo\//d' ${WRKSRC}/Makefile.in
.endif
.if !defined(NOPORTDOCS)
post-install:
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>
|