svn commit: r42139 - projects/db5/share/mk
Gabor Kovesdan
gabor at FreeBSD.org
Wed Jul 3 15:22:20 UTC 2013
Author: gabor
Date: Wed Jul 3 15:22:19 2013
New Revision: 42139
URL: http://svnweb.freebsd.org/changeset/doc/42139
Log:
- Add experimental support for dblatex
Modified:
projects/db5/share/mk/doc.commands.mk
projects/db5/share/mk/doc.docbook.mk
Modified: projects/db5/share/mk/doc.commands.mk
==============================================================================
--- projects/db5/share/mk/doc.commands.mk Wed Jul 3 15:12:52 2013 (r42138)
+++ projects/db5/share/mk/doc.commands.mk Wed Jul 3 15:22:19 2013 (r42139)
@@ -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}
Modified: projects/db5/share/mk/doc.docbook.mk
==============================================================================
--- projects/db5/share/mk/doc.docbook.mk Wed Jul 3 15:12:52 2013 (r42138)
+++ projects/db5/share/mk/doc.docbook.mk Wed Jul 3 15:22:19 2013 (r42139)
@@ -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
${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}
${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} \
More information about the svn-doc-projects
mailing list