2012-12-21 07:29:31 +01:00
|
|
|
# $NetBSD: Makefile,v 1.5 2012/12/21 06:29:31 dholland Exp $
|
2011-04-19 12:03:37 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
.include "../../textproc/docbook-xsl/Makefile.common"
|
|
|
|
|
|
|
|
PKGNAME= dbtoepub-${DISTNAME:S/docbook-xsl-//}
|
|
|
|
COMMENT= DocBook to epub converter
|
|
|
|
|
|
|
|
DEPENDS+= \
|
|
|
|
docbook-xsl>=${DISTNAME:S/docbook-xsl-//}:../../textproc/docbook-xsl
|
|
|
|
|
|
|
|
REPLACE_RUBY+= epub/bin/dbtoepub
|
|
|
|
|
2012-06-24 09:36:17 +02:00
|
|
|
INSTALLATION_DIRS+= ${XSLDIR}
|
|
|
|
|
2011-04-19 12:03:37 +02:00
|
|
|
do-install:
|
|
|
|
${ECHO} "${INSTALL_DATA_DIR} ${DESTDIR}${XSLDIR}/epub"
|
|
|
|
${ECHO} "cd ${WRKSRC} && pax -rw -pp -pm epub ${DESTDIR}${XSLDIR}/"
|
|
|
|
cd ${WRKSRC} && pax -rw -pp -pm epub ${DESTDIR}${XSLDIR}/
|
|
|
|
for f in `${FIND} ${DESTDIR}${XSLDIR} -name \\*.orig -print` ; do \
|
|
|
|
${ECHO} "Remove .orig file $$f" ; \
|
|
|
|
${RM} $$f ; \
|
|
|
|
done
|
|
|
|
|
|
|
|
.include "../../lang/ruby/buildlink3.mk"
|
|
|
|
.include "../../lang/ruby/replace.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|