b632d5c0c4
fixing CVE-2017-14517 CVE-2017-14518 CVE-2017-14519 CVE-2017-14520 CVE-2017-15565 upstream notable changes: Release 0.61.1 core: * CairoOutputDev: don't overflow y * stride when accessing image data cpp: * Fix for corrupted image files on Windows. Bug #102494 build system: * Fix incorrect paths in .pc files. Bug #103578 * add the custom buildtests target only once. Bug #103003 Release 0.61.0 core: * Fix crashes in broken files * Cleanup unused functions from GlobalParams * Tweak LZWStream::processNextCode error handling. Bug #103174 * Warning fixes * Remove t1lib code qt5: * Clean up the remaining Splash code in Arthur backend. Bug #103117 * ArthurOutputDev: Properly implement saveState/restoreState. Bug #103118 * Fix leak in ArthurOutputDev::updateFont. Bug #103508 build system: * Use GNUInstallDirs. Bug #103211 * mingw: Install pkg-config files * mingw: change library names to include the soversion. Bug #103157 * Fix installing a .cc file as header * Use -pthread flag instead of -lpthread Release 0.60.1 qt5: * ArthurOutputDev: Add missing 'return' in error paths build system: * FindLIBOPENJPEG.cmake: Add CheckCXXSourceCompiles Release 0.60.0 core: * Enable libcurl support by default * PSOutputDev: Fix wrong text generation. Bug #102760 * Added methods to get and set the font size of text fields. Bug #101692 * CairoOutputDev: Do not extend the pattern in drawImageMaskRegular * CairoOutputDev: do not use the custom downscaling for rendering images when using cairo >= 1.14 * Fix build with old clang * Fix various crashes in broken files * Fix some warnings * Add some constness to the basic classes * Remove unused functions from GlobalParams qt5: * Added methods to get and set the font size of text fields. Bug #101692 * Add whether renderToImage shows annotations * ArthurOutputDev: Replace Splash font rendering by Qt font rendering * ArthurOutputDev: Implement the drawSoftMaskedImage method * ArthurOutputDev: Fix several small bugs related to dash pattern handling * Fix two minor typos build system: * cmake is now the default build system * autotools based build system has been removed utils: * pdfinfo: don't truncate dest name
51 lines
1.8 KiB
Makefile
51 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.67 2017/12/08 07:48:11 spz Exp $
|
|
|
|
.include "../../print/poppler/Makefile.common"
|
|
|
|
COMMENT= PDF rendering library
|
|
MAINTAINER= reed@reedmedia.net
|
|
|
|
#PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler-cairo.pc.cmake
|
|
PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler-splash.pc.cmake
|
|
PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler.pc.cmake
|
|
|
|
INSTALLATION_DIRS+= include/poppler share/doc/poppler
|
|
|
|
# TODO: Later add an option to choose Splash versus Cairo backend.
|
|
# Build the Splash graphics backend.
|
|
CMAKE_ARGS+= -DENABLE_SPLASH=ON
|
|
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_CAIRO=TRUE
|
|
# Don't compile GTK+ test program.
|
|
CMAKE_ARGS+= -DBUILD_GTK_TESTS=OFF
|
|
# Don't compile GLib wrapper which also needs gtk2
|
|
CMAKE_ARGS+= -DENABLE_GLIB=OFF
|
|
# Don't build and install the tools
|
|
CMAKE_ARGS+= -DENABLE_UTILS=OFF
|
|
# Don't compile poppler cpp wrapper.
|
|
CMAKE_ARGS+= -DENABLE_CPP=OFF
|
|
# Don't compile poppler qt4 wrapper.
|
|
CMAKE_ARGS+= -DENABLE_QT4=OFF
|
|
# Don't compile poppler qt5 wrapper.
|
|
CMAKE_ARGS+= -DENABLE_QT5=OFF
|
|
# Don't build libcurl based HTTP support. ## might want to include
|
|
CMAKE_ARGS+= -DENABLE_LIBCURL=OFF
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
# Passing "-ansi" turns "long long" support off on FreeBSD/amd64:
|
|
.if ${OPSYS} == "FreeBSD" && ${MACHINE_ARCH} == "x86_64"
|
|
CFLAGS+= -D__LONG_LONG_SUPPORTED=
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/poppler/
|
|
${INSTALL_MAN} ${WRKSRC}/README-XPDF ${DESTDIR}${PREFIX}/share/doc/poppler/
|
|
${RMDIR} ${DESTDIR}${PREFIX}/include/poppler || ${TRUE}
|
|
|
|
.include "../../fonts/fontconfig/buildlink3.mk"
|
|
.include "../../graphics/lcms2/buildlink3.mk"
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|