1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/textproc/xmlto/Makefile
Boris Samorodov eabcb9a740 In preparation to deprecate shells/bash2 do at textproc/xmlto [1]
and devel/cogito [2]:
. change RUN_DEPENDS shells/bash2 -> shells/bash;
. bump PORTREVISION.

PR:		107005  [1], 107113  [2]
Submitted by:	bsam (me) [1], [2]
Approved by:	anholt (maintainer timeout)  [2]
2007-01-31 19:48:12 +00:00

64 lines
1.6 KiB
Makefile

# 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.18
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://cyberelk.net/tim/data/xmlto/stable/
MAINTAINER= ports@FreeBSD.org
COMMENT= Front-end to an XSL toolchain
BUILD_DEPENDS= ${BASH_CMD}:${PORTSDIR}/shells/bash \
${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})
IGNORE= with PassiveTex support needs more testing
BUILD_DEPENDS+= ${PASSIVETEX}:${PORTSDIR}/print/passivetex
PLIST_SUB= PASSIVETEX=""
.else
PLIST_SUB= PASSIVETEX="@comment "
.endif
USE_BZIP2= 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
XSL_DIR= ${LOCALBASE}/share/xsl/docbook
MAN1= xmlif.1 xmlto.1
DOCS= AUTHORS NEWS
.if !defined(WITH_PASSIVETEX)
post-patch:
${REINPLACE_CMD} -e '/format\/fo\//d' ${WRKSRC}/Makefile.in
.endif
post-build:
@${REINPLACE_CMD} -e 's,/usr/bin,${LOCALBASE}/bin,g' \
${WRKSRC}/format/docbook/txt
.if !defined(NOPORTDOCS)
post-install:
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>