95416852a9
Changes since 0.10.4: core: * Read the UF entry if present and prefer it over F in Filespec dictionary * Fix typo that was making CairoOutputDev crash on some files. Bug #17337 * Make JBIG2Stream more robust to corrupt input data * Do not blindly follow loops parsing OutlineItem. Bug #18364 * Set up the error manager before calling jpeg_create_decompress. Bug #20484 * Check there is an optional content config before using it. Bug #20587 * Fix rendering of some PDF with OpenType fonts. Bug #20605 build system: * Yet more support for build on windows * Use AC_CHECK_HEADER to find headers. Bug #20538 * Check for pkgconfig before using it * General autotools improvements
54 lines
1.6 KiB
Makefile
54 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.37 2009/03/19 12:12:24 drochner Exp $
|
|
#
|
|
|
|
.include "../../print/poppler/Makefile.common"
|
|
|
|
COMMENT= PDF rendering library
|
|
MAINTAINER= reed@reedmedia.net
|
|
|
|
USE_TOOLS+= gmake
|
|
|
|
#PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler-cairo.pc.in
|
|
PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler-splash.pc.in
|
|
PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler.pc.in
|
|
GNU_CONFIGURE= yes
|
|
|
|
INSTALLATION_DIRS+= include/poppler share/doc/poppler
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
# TODO: Later add an option to choose Splash versus Cairo backend.
|
|
# Build the Splash graphics backend.
|
|
CONFIGURE_ARGS+= --enable-splash-output
|
|
# Don't build the cairo graphics backend.
|
|
CONFIGURE_ARGS+= --disable-cairo-output
|
|
# Don't compile poppler qt wrapper.
|
|
CONFIGURE_ARGS+= --disable-poppler-qt
|
|
# Don't compile GTK+ test program.
|
|
CONFIGURE_ARGS+= --disable-gtk-test
|
|
# Don't compile GLib wrapper which also needs gtk2
|
|
CONFIGURE_ARGS+= --disable-poppler-glib
|
|
# Don't build and install the tools
|
|
CONFIGURE_ARGS+= --disable-utils
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.poppler
|
|
PKG_SUPPORTED_OPTIONS= poppler-cms
|
|
PKG_SUGGESTED_OPTIONS= poppler-cms
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Mpoppler-cms)
|
|
CONFIGURE_ARGS+= --enable-cms
|
|
.include "../../graphics/lcms/buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-cms
|
|
.endif
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/poppler/
|
|
${INSTALL_MAN} ${WRKSRC}/README-XPDF ${DESTDIR}${PREFIX}/share/doc/poppler/
|
|
|
|
.include "../../fonts/fontconfig/buildlink3.mk"
|
|
.include "../../graphics/jpeg/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|