mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
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>
This commit is contained in:
parent
e6dae67453
commit
4089794160
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=167317
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user