2015-01-16 12:47:01 +01:00
|
|
|
# $NetBSD: Makefile,v 1.60 2015/01/16 11:47:01 wiz Exp $
|
2011-04-19 12:04:18 +02:00
|
|
|
|
|
|
|
.include "Makefile.common"
|
2002-12-18 18:45:28 +01:00
|
|
|
|
|
|
|
COMMENT= Docbook XSL modular stylesheet
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
DEPENDS+= docbook-xml>=4.2:../../textproc/docbook-xml
|
2002-12-18 18:45:28 +01:00
|
|
|
|
2011-04-19 12:04:18 +02:00
|
|
|
USE_TOOLS+= perl:run
|
2011-04-14 12:31:18 +02:00
|
|
|
|
2006-01-22 23:20:26 +01:00
|
|
|
REPLACE_PERL+= fo/pdf2index
|
2002-12-18 18:45:28 +01:00
|
|
|
|
|
|
|
EGDIR= ${PREFIX}/share/examples/docbook-xsl
|
2011-04-19 08:32:47 +02:00
|
|
|
# epub requires ruby, so we don't install the XSLMOD
|
|
|
|
XSLMODS= common eclipse fo highlighting html \
|
2007-08-30 08:59:42 +02:00
|
|
|
htmlhelp images javahelp lib manpages params \
|
2008-08-20 04:52:45 +02:00
|
|
|
profiling roundtrip slides website xhtml xhtml-1_1
|
2002-12-18 18:45:28 +01:00
|
|
|
|
2006-01-12 18:12:52 +01:00
|
|
|
XML_CATALOGS= ${XSLDIR}/catalog.xml
|
2003-01-29 22:28:26 +01:00
|
|
|
|
2006-11-03 20:14:25 +01:00
|
|
|
INSTALLATION_DIRS= ${EGDIR} ${XSLDIR}
|
|
|
|
|
2002-12-18 18:45:28 +01:00
|
|
|
do-install:
|
2008-05-26 04:13:14 +02:00
|
|
|
cd ${WRKSRC}/template && pax -rw -pp -pm . ${DESTDIR}${EGDIR}
|
2006-11-03 20:14:25 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/VERSION ${DESTDIR}${XSLDIR}
|
2012-11-23 18:33:36 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/VERSION.xsl ${DESTDIR}${XSLDIR}
|
2006-11-03 20:14:25 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/catalog.xml ${DESTDIR}${XSLDIR}/catalog.xml
|
2011-04-14 12:31:18 +02:00
|
|
|
set -e; for d in ${XSLMODS}; do \
|
2006-11-03 20:14:25 +01:00
|
|
|
${ECHO} "${INSTALL_DATA_DIR} ${DESTDIR}${XSLDIR}/$$d"; \
|
2008-05-26 04:13:14 +02:00
|
|
|
${ECHO} "cd ${WRKSRC} && pax -rw -pp -pm $$d ${DESTDIR}${XSLDIR}/"; \
|
|
|
|
cd ${WRKSRC} && pax -rw -pp -pm $$d ${DESTDIR}${XSLDIR}/; \
|
2002-12-18 18:45:28 +01:00
|
|
|
done
|
2011-04-14 12:31:18 +02:00
|
|
|
set -e; for f in `${FIND} ${DESTDIR}${XSLDIR} -name \\*.orig -print` ; do \
|
2007-10-02 01:39:20 +02:00
|
|
|
${ECHO} "Remove .orig file $$f" ; \
|
|
|
|
${RM} $$f ; \
|
|
|
|
done
|
2002-12-18 18:45:28 +01:00
|
|
|
|
2003-01-29 22:28:26 +01:00
|
|
|
.include "../../textproc/xmlcatmgr/catalogs.mk"
|
2002-12-18 18:45:28 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|