aboutsummaryrefslogtreecommitdiff
path: root/share/mk/doc.docbook.mk
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2013-07-03 15:22:19 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2013-07-03 15:22:19 +0000
commit2de4169711fa6ffd3c542d04febd77bcb9d50dd2 (patch)
treee8f7aff83877c3e15aff1cd06a2bdc221abce228 /share/mk/doc.docbook.mk
parent9eb49872362a940f65bd12ccb31d48d53996566e (diff)
downloaddoc-2de4169711fa6ffd3c542d04febd77bcb9d50dd2.tar.gz
doc-2de4169711fa6ffd3c542d04febd77bcb9d50dd2.zip
- Add experimental support for dblatex
Notes
Notes: svn path=/projects/db5/; revision=42139
Diffstat (limited to 'share/mk/doc.docbook.mk')
-rw-r--r--share/mk/doc.docbook.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/share/mk/doc.docbook.mk b/share/mk/doc.docbook.mk
index e54b56a98e..1d4906fef7 100644
--- a/share/mk/doc.docbook.mk
+++ b/share/mk/doc.docbook.mk
@@ -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} \