2020-06-09 07:14:44 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.16 2020/06/09 07:14:45 jasper Exp $
|
2005-07-16 13:26:57 +00:00
|
|
|
|
2007-09-15 20:59:36 +00:00
|
|
|
COMMENT= docbook XSL modular stylesheet
|
2005-07-16 13:26:57 +00:00
|
|
|
|
|
|
|
DISTNAME= docbook-xsl-1.68.1
|
2020-06-09 07:14:44 +00:00
|
|
|
REVISION = 7
|
2005-07-16 13:26:57 +00:00
|
|
|
CATEGORIES= textproc
|
|
|
|
|
|
|
|
HOMEPAGE= http://docbook.sourceforge.net/projects/xsl/
|
|
|
|
|
|
|
|
# MIT/X Consortium License
|
2019-07-12 21:02:12 +00:00
|
|
|
PERMIT_PACKAGE= Yes
|
2005-07-16 13:26:57 +00:00
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=docbook/}
|
|
|
|
|
2012-09-27 05:36:08 +00:00
|
|
|
BUILD_DEPENDS= textproc/libxml
|
2012-09-27 17:13:42 +00:00
|
|
|
RUN_DEPENDS= textproc/docbook \
|
2012-09-27 06:37:09 +00:00
|
|
|
textproc/libxslt
|
2005-07-16 13:26:57 +00:00
|
|
|
|
2013-03-11 11:35:43 +00:00
|
|
|
NO_TEST= Yes
|
2005-07-16 13:26:57 +00:00
|
|
|
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:
|
2018-08-07 10:08:37 +00:00
|
|
|
cd ${WRKSRC} && ${MAKE_ENV} ./INSTALL
|
2005-07-16 13:26:57 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${INSTDIR} ${DOCSDIR}
|
2018-08-07 10:08:37 +00:00
|
|
|
cd ${WRKSRC}/doc && ${TAR} -cf - . | ${TAR} -xf - -C${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && \
|
|
|
|
${TAR} -cf - VERSION ${COPYDIRS} | ${TAR} -xf - -C${INSTDIR}
|
2005-07-16 13:26:57 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/catalog.xml ${INSTDIR}/catalog.xml
|
2005-09-04 23:38:17 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/libxml2
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/docbook-xsl.spec ${PREFIX}/share/libxml2
|
2005-07-16 13:26:57 +00:00
|
|
|
|
|
|
|
post-install:
|
2007-08-08 13:47:38 +00:00
|
|
|
@perl -pi -e 's#rewritePrefix=\".*?\"#rewritePrefix="${CATALOG_DIR}/"#g' ${INSTDIR}/catalog.xml
|
2005-07-16 13:26:57 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|