1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-30 21:49:25 +00:00
freebsd-ports/textproc/xsl-docbook-modular/Makefile
Kiriyama Kazuhiko 5312f019ea Import new port textproc/xsl-docbook-modular. Xsl-docbook-modular is the
XSL stylesheets for the DocBook DTD by Norman Walsh.
2001-03-19 12:50:40 +00:00

50 lines
1.4 KiB
Makefile

# New ports collection makefile for: XSL stylesheets for DocBook
# Date created: 19 December 2000
# Whom: KIRIYAMA Kazuhiko <kiri@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= xsl-docbook-modular
PORTVERSION= 1.24
CATEGORIES= textproc
MASTER_SITES= http://nwalsh.com/docbook/xsl/
DISTNAME= dbx${PORTVERSION:S/.//g}
EXTRACT_SUFX= .zip
MAINTAINER= kiri@FreeBSD.org
RUN_DEPENDS= ${LOCALBASE}/share/xml/docbook/readme.txt:${PORTSDIR}/textproc/docbook-xml \
${LOCALBASE}/share/xml/docbook/sdocbook/test.xml:${PORTSDIR}/textproc/sdocbook-xml \
${LOCALBASE}/share/java/xt/xt.htm:${PORTSDIR}/textproc/xt \
${LOCALBASE}/share/java/classes/xerces.jar:${PORTSDIR}/textproc/xerces \
${LOCALBASE}/share/java/classes/fop.jar:${PORTSDIR}/textproc/fop
USE_ZIP= yes
NO_MTREE= yes
WRKSRC= ${WRKDIR}/docbook
EXTRACT_BEFORE_ARGS= -a -q
JDKVERSION?= 1.1.8
INSTDIR= ${PREFIX}/share/xml/docbook/xsl/modular
do-build:
${RM} -rf ${WRKSRC}/docsrc
${SED} -e 's|%%PREFIX%%|${PREFIX}|g' -e 's|%%JDKVERSION%%|${JDKVERSION}|g' \
${FILESDIR}/dbx2a.sh.tmpl > ${WRKSRC}/dbx2a.sh
pre-install:
${MKDIR} ${INSTDIR}
find ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
do-install:
${CP} -Rp ${WRKDIR}/docbook/* ${INSTDIR}
${CHOWN} -R ${SHAREOWN}.${SHAREGRP} ${INSTDIR}
${CHMOD} ${BINMODE} ${INSTDIR}/dbx2a.sh
${LN} -sf ${INSTDIR}/dbx2a.sh ${PREFIX}/bin/dbx2a
post-install:
@${CAT} ${DESCR}
.include <bsd.port.mk>