From 38efb3d25abc185bc07d1aa1d0bd0fd1aeda8f14 Mon Sep 17 00:00:00 2001 From: Murray Stokely Date: Mon, 22 Apr 2002 08:59:03 +0000 Subject: [PATCH] Add a new print-output build variable for the doc project, 'RLE'. If defined, EPS files are run length encoded before being integrated into the PostScript output. "make book.ps" currently generates a 96 megabyte file. "make RLE=1 book.ps" generates a 16 megabyte file. If we added a tool to use better (LZW) compression for the eps screenshots and such, then we could reduce this number further. --- share/mk/doc.docbook.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/share/mk/doc.docbook.mk b/share/mk/doc.docbook.mk index 6ca9eadc17..deb1061329 100644 --- a/share/mk/doc.docbook.mk +++ b/share/mk/doc.docbook.mk @@ -90,6 +90,9 @@ # a book. This option may be an order of magnitude more # CPU intensive than the default build. # +# RLE Use Run-Length Encoding for EPS files, this will +# result in signficiantly smaller PostScript files, +# but may take longer for a printer to process. # # Documents should use the += format to access these. @@ -169,6 +172,9 @@ PRINTOPTS+= -V minimal-section-labels .if defined(TRACE) TEXCMDS+= \tracingstats=${TRACE} .endif +.if defined(RLE) +PNMTOPSFLAGS+= -rle +.endif PERL?= /usr/bin/perl PKG_CREATE?= /usr/sbin/pkg_create