summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2006-07-10 02:04:07 +0000
committermarcus <marcus@FreeBSD.org>2006-07-10 02:04:07 +0000
commit86a3055aee09a5d71a2fc8ae2e7a11f6c11a1fab (patch)
tree2dc623bede6a904ab000f65102f28883a91deb85
parent24c50a9bf6c876a9de383e78a178930611801f7c (diff)
downloadFreeBSD-ports-86a3055aee09a5d71a2fc8ae2e7a11f6c11a1fab.zip
FreeBSD-ports-86a3055aee09a5d71a2fc8ae2e7a11f6c11a1fab.tar.gz
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>
-rw-r--r--graphics/poppler/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/graphics/poppler/Makefile b/graphics/poppler/Makefile
index 1a1191b..d698967 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:
OpenPOWER on IntegriCloud