f3ab33c62f
This commit updates poppler to the latest version in the 22.x series, with only has bug fixes. Here is the list of commits between 22.10.0 and 22.12.0: df568263c51950ceed6f1fb42f80e99a2614c275 (tag: poppler-22.12.0) poppler 22.12.0 198dc1d0674c0a462668e6868c35b1ee0e731005 Form::addFontToDefaultResources: Be stubborn in finding a font we can use a5952ab70716a2d4f792a943c2dcf3068f1d6885 Revert "CI: Fix Debian brokenness" 8fcaa7c622d24761a9ecb3922f95d072077d6f34 CI: Fix Debian brokenness cc665f757af6b87dd245d36e079dd44d8d2d2182 (tag: poppler-22.11.0) poppler 22.11.0 a296982e1d5b4968b2bd044d80647ae6f9267526 Do not include a poppler/ file from a splash/ header bc4a0d9a2abfcd75d9b0ee4be3f7600905fe6001 Form: Provide Unicode marker when ensuring fonts 111f38a722eedddd94faa52dda8c5e0da561fb41 Cairo: Update font after restore 907d05a6a141284aee22fbd16ab0a2fb4e0f2724 Fix crash in file that wants to do huge transparency group e53f5aae3bce7d09788f2ad62be998895fb9807b PSOutputDev::setupResources: Fix stack overflow in malformed doc a4ca3a96a6b1f65b335a1ea362e6c202e46ae055 topIdx can't be negative e471f8e09bf2e38df0cf5df1acecbcca70685573 Init all the fields of JPXStreamPrivate 5190c0d4369bd9f501922585140be4ec736e24f2 No need to store smaskInData in priv 6263bb90b09326103b10e4c4edfbc5b84c884921 Page label ranges can't start in < 0 Note: this version bump does not include the fix for CVE-2023-34872, so we still need the backported patch. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
149 lines
3.6 KiB
Makefile
149 lines
3.6 KiB
Makefile
################################################################################
|
|
#
|
|
# poppler
|
|
#
|
|
################################################################################
|
|
|
|
POPPLER_VERSION = 22.12.0
|
|
POPPLER_SOURCE = poppler-$(POPPLER_VERSION).tar.xz
|
|
POPPLER_SITE = https://poppler.freedesktop.org
|
|
POPPLER_DEPENDENCIES = fontconfig host-pkgconf
|
|
POPPLER_LICENSE = GPL-2.0+
|
|
POPPLER_LICENSE_FILES = COPYING
|
|
POPPLER_CPE_ID_VENDOR = freedesktop
|
|
# 0001-OutlineItem-open-Fix-crash-on-malformed-files.patch
|
|
POPPLER_IGNORE_CVES += CVE-2023-34872
|
|
POPPLER_INSTALL_STAGING = YES
|
|
|
|
POPPLER_CONF_OPTS = \
|
|
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
|
|
-DBUILD_GTK_TESTS=OFF \
|
|
-DBUILD_QT5_TESTS=OFF \
|
|
-DBUILD_QT6_TESTS=OFF \
|
|
-DBUILD_CPP_TESTS=OFF \
|
|
-DBUILD_MANUAL_TESTS=OFF \
|
|
-DENABLE_GTK_DOC=OFF \
|
|
-DENABLE_QT6=OFF \
|
|
-DRUN_GPERF_IF_PRESENT=OFF
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
POPPLER_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_BOOST),y)
|
|
POPPLER_DEPENDENCIES += boost
|
|
POPPLER_CONF_OPTS += -DENABLE_BOOST=ON
|
|
else
|
|
POPPLER_CONF_OPTS += -DENABLE_BOOST=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
|
POPPLER_DEPENDENCIES += jpeg
|
|
POPPLER_CONF_OPTS += -DENABLE_DCTDECODER=libjpeg -DWITH_JPEG=ON
|
|
else
|
|
POPPLER_CONF_OPTS += -DENABLE_DCTDECODER=none -DWITH_JPEG=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
|
|
POPPLER_DEPENDENCIES += gobject-introspection
|
|
POPPLER_CONF_OPTS += \
|
|
-DENABLE_GOBJECT_INTROSPECTION=ON \
|
|
-DINTROSPECTION_SCANNER=$(STAGING_DIR)/usr/bin/g-ir-scanner \
|
|
-DINTROSPECTION_COMPILER=$(STAGING_DIR)/usr/bin/g-ir-compiler \
|
|
-DINTROSPECTION_COMPILER_ARGS="--includedir=$(STAGING_DIR)/usr/share/gir-1.0"
|
|
else
|
|
POPPLER_CONF_OPTS += -DENABLE_GOBJECT_INTROSPECTION=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
|
POPPLER_DEPENDENCIES += libpng
|
|
POPPLER_CONF_OPTS += -DWITH_PNG=ON
|
|
else
|
|
POPPLER_CONF_OPTS += -DWITH_PNG=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LCMS2),y)
|
|
POPPLER_DEPENDENCIES += lcms2
|
|
POPPLER_CONF_OPTS += -DENABLE_CMS=lcms2
|
|
else
|
|
POPPLER_CONF_OPTS += -DENABLE_CMS=none
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENJPEG),y)
|
|
POPPLER_DEPENDENCIES += openjpeg
|
|
POPPLER_CONF_OPTS += -DENABLE_LIBOPENJPEG=openjpeg2
|
|
else
|
|
POPPLER_CONF_OPTS += -DENABLE_LIBOPENJPEG=none
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
|
POPPLER_DEPENDENCIES += libcurl
|
|
POPPLER_CONF_OPTS += -DENABLE_LIBCURL=ON
|
|
else
|
|
POPPLER_CONF_OPTS += -DENABLE_LIBCURL=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_POPPLER_QT5),y)
|
|
POPPLER_DEPENDENCIES += qt5base
|
|
POPPLER_CONF_OPTS += -DENABLE_QT5=ON
|
|
else
|
|
POPPLER_CONF_OPTS += -DENABLE_QT5=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_POPPLER_UTILS),y)
|
|
POPPLER_CONF_OPTS += -DENABLE_UTILS=ON
|
|
else
|
|
POPPLER_CONF_OPTS += -DENABLE_UTILS=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
POPPLER_DEPENDENCIES += zlib
|
|
POPPLER_CONF_OPTS += -DENABLE_ZLIB=ON
|
|
else
|
|
POPPLER_CONF_OPTS += -DENABLE_ZLIB=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CAIRO),y)
|
|
POPPLER_DEPENDENCIES += cairo
|
|
POPPLER_CONF_OPTS += -DWITH_Cairo=ON
|
|
else
|
|
POPPLER_CONF_OPTS += -DWITH_Cairo=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_TIFF),y)
|
|
POPPLER_DEPENDENCIES += tiff
|
|
POPPLER_CONF_OPTS += -DWITH_TIFF=ON
|
|
else
|
|
POPPLER_CONF_OPTS += -DWITH_TIFF=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
|
|
POPPLER_DEPENDENCIES += libglib2
|
|
POPPLER_CONF_OPTS += -DENABLE_GLIB=ON
|
|
else
|
|
POPPLER_CONF_OPTS += -DENABLE_GLIB=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBNSS),y)
|
|
POPPLER_DEPENDENCIES += libnss
|
|
POPPLER_CONF_OPTS += -DWITH_NSS3=ON
|
|
else
|
|
POPPLER_CONF_OPTS += -DWITH_NSS3=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_SOFT_FLOAT),y)
|
|
POPPLER_CONF_OPTS += -DUSE_FLOAT=OFF
|
|
else
|
|
POPPLER_CONF_OPTS += -DUSE_FLOAT=ON
|
|
endif
|
|
|
|
POPPLER_CXXFLAGS = $(TARGET_CXXCFLAGS)
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
|
|
POPPLER_CXXFLAGS += -O0
|
|
endif
|
|
|
|
POPPLER_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(POPPLER_CXXFLAGS)"
|
|
|
|
$(eval $(cmake-package))
|