- Add experimental support for dblatex

This commit is contained in:
Gabor Kovesdan 2013-07-03 15:22:19 +00:00
parent 9eb4987236
commit 2de4169711
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/projects/db5/; revision=42139
2 changed files with 17 additions and 0 deletions

View file

@ -53,6 +53,8 @@ ZIPOPTS?= -9X
# Rendering and format conversion
#
DBLATEX?= ${PREFIX}/bin/dblatex
DVIPS?= ${PREFIX}/bin/dvips
.if defined(PAPERSIZE)
DVIPSOPTS?= -t ${PAPERSIZE:L}

View file

@ -50,6 +50,9 @@
# provides better compression, but requires longer
# time and utilizes more CPU resources than gzip(1).
# Either dblatex or fop
RENDERENGINE?= dblatex
#
# Documents should use the += format to access these.
#
@ -72,6 +75,8 @@ IMAGES_LIB?=
SCHEMATRONS?= ${DOC_PREFIX}/share/xml/freebsd.sch
XSLTPROCOPTS?= --nonet
DBLATEXOPTS?= -I ${IMAGES_EN_DIR}/${DOC}s/${.CURDIR:T} -T simple -d
KNOWN_FORMATS= html html.tar html-split html-split.tar \
epub txt rtf ps pdf tex dvi tar pdb
@ -337,6 +342,7 @@ ${.CURDIR:T}.pdb.${_curcomp}: ${DOC}.pdb.${_curcomp}
${DOC}.fo: ${DOC}.xml ${LOCAL_IMAGES_LIB} ${LOCAL_IMAGES_PNG} ${DOC}.parsed.xml
${XSLTPROC} ${XSLTPROCOPTS} ${XSLFO} ${DOC}.parsed.print.xml > ${.TARGET}
.if ${RENDERENGINE} == "fop"
${DOC}.pdf: ${DOC}.fo ${LOCAL_IMAGES_LIB} ${LOCAL_IMAGES_PNG}
${FOP} ${FOPOPTS} ${DOC}.fo ${.TARGET}
@ -345,6 +351,15 @@ ${DOC}.ps: ${DOC}.fo ${LOCAL_IMAGES_LIB} ${LOCAL_IMAGES_PNG}
${DOC}.rtf: ${DOC}.fo ${LOCAL_IMAGES_LIB} ${LOCAL_IMAGES_PNG}
${FOP} ${FOPOPTS} ${DOC}.fo ${.TARGET}
.else
# Default is dblatex
${DOC}.pdf: ${DOC}.parsed.xml ${LOCAL_IMAGES_LIB} ${LOCAL_IMAGES_PNG}
${DBLATEX} ${DOC}.parsed.print.xml ${DBLATEXOPTS} -o ${.TARGET}
${DOC}.ps: ${DOC}.parsed.xml ${LOCAL_IMAGES_LIB} ${LOCAL_IMAGES_PNG}
${DBLATEX} ${DOC}.parsed.print.xml ${DBLATEXOPTS} -o ${.TARGET}
.endif
${DOC}.tar: ${SRCS} ${LOCAL_IMAGES} ${LOCAL_CSS_SHEET}
${TAR} cf ${.TARGET} -C ${.CURDIR} ${SRCS} \