alek a94b3fd819 Import docbook-xsl 1.68.1
These are XSL stylesheets for transforming DocBook XML document
instances into various output formats. (They would also work for
transforming DocBook SGML document instances, modulo certain namecase
problems and the fact that there aren't (yet) any XSL implementations
that work with SGML source documents.)

From Bernd Ahlers <b.ahlers@ba-net.org>

help & ok aanriot@
2005-07-16 13:26:57 +00:00

45 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2005/07/16 13:26:57 alek Exp $
COMMENT= "docbook XSL modular stylesheet"
DISTNAME= docbook-xsl-1.68.1
CATEGORIES= textproc
HOMEPAGE= http://docbook.sourceforge.net/projects/xsl/
# MIT/X Consortium License
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=docbook/}
BUILD_DEPENDS= ::textproc/libxml
NO_CONFIGURE= Yes
NO_REGRESS= Yes
PKG_ARCH= *
DIR= share/xsl/docbook
INSTDIR= ${PREFIX}/${DIR}
CATALOG_DIR= ${LOCALBASE}/${DIR}
DOCSDIR= ${PREFIX}/share/doc/xsl/docbook
COPYDIRS= common fo extensions html htmlhelp images \
javahelp lib manpages params template xhtml
do-build:
cd ${WRKSRC} && ./INSTALL
do-install:
${INSTALL_DATA_DIR} ${INSTDIR} ${DOCSDIR}
(cd ${WRKSRC}/doc && ${TAR} -cf - . | ${TAR} -xf - -C${DOCSDIR})
(cd ${WRKSRC} && \
${TAR} -cf - VERSION ${COPYDIRS} | ${TAR} -xf - -C${INSTDIR})
${INSTALL_DATA} ${WRKSRC}/catalog.xml ${INSTDIR}/catalog.xml
post-install:
@perl -pi -e "s#${WRKSRC}#${CATALOG_DIR}#g" ${INSTDIR}/catalog.xml
.include <bsd.port.mk>