summaryrefslogtreecommitdiff
path: root/graphics/poppler
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2006-07-10 02:04:07 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2006-07-10 02:04:07 +0000
commit4089794160605cf6d03574e0e27ddac5416dd246 (patch)
tree79732e0d38e12c6d73b4b6215be98f72ef097edf /graphics/poppler
parentFix typo for files/tor.in. (diff)
Make the cairo output backend optional (defaults to enabled). Turning this
off can help performance when rendering certain PDF documents, especially those that contain Type 3 fonts. Reported by: Veiko Palge <veiko.palge@gmail.com>
Notes
Notes: svn path=/head/; revision=167317
Diffstat (limited to 'graphics/poppler')
-rw-r--r--graphics/poppler/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/graphics/poppler/Makefile b/graphics/poppler/Makefile
index 1a1191b80c32..d69896782934 100644
--- a/graphics/poppler/Makefile
+++ b/graphics/poppler/Makefile
@@ -28,6 +28,10 @@ CONFIGURE_ARGS= --enable-zlib \
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2 -I${X11BASE}/include ${PTHREAD_CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}"
+.if !defined(SLAVEPORT)
+OPTIONS= CAIRO "Enable cairo output backend" on
+.endif
+
.include <bsd.port.pre.mk>
.if defined(SLAVEPORT)
@@ -55,6 +59,9 @@ MAN1= pdffonts.1 pdfimages.1 pdfinfo.1 \
.else
CONFIGURE_ARGS+=--disable-poppler-glib --disable-poppler-qt \
--disable-poppler-qt4 --disable-utils
+.if defined(WITHOUT_CAIRO)
+CONFIGURE_ARGS+= --disable-cairo-output
+.endif
.endif
post-patch: