|
@@ -4,102 +4,110 @@
|
|
#
|
|
#
|
|
################################################################################
|
|
################################################################################
|
|
|
|
|
|
-POPPLER_VERSION = 0.59.0
|
|
|
|
|
|
+POPPLER_VERSION = 0.77.0
|
|
POPPLER_SOURCE = poppler-$(POPPLER_VERSION).tar.xz
|
|
POPPLER_SOURCE = poppler-$(POPPLER_VERSION).tar.xz
|
|
POPPLER_SITE = http://poppler.freedesktop.org
|
|
POPPLER_SITE = http://poppler.freedesktop.org
|
|
POPPLER_DEPENDENCIES = fontconfig host-pkgconf
|
|
POPPLER_DEPENDENCIES = fontconfig host-pkgconf
|
|
POPPLER_LICENSE = GPL-2.0+
|
|
POPPLER_LICENSE = GPL-2.0+
|
|
POPPLER_LICENSE_FILES = COPYING
|
|
POPPLER_LICENSE_FILES = COPYING
|
|
POPPLER_INSTALL_STAGING = YES
|
|
POPPLER_INSTALL_STAGING = YES
|
|
-POPPLER_CONF_OPTS = --with-font-configuration=fontconfig \
|
|
|
|
- --enable-xpdf-headers --disable-poppler-qt4
|
|
|
|
|
|
+
|
|
|
|
+POPPLER_CONF_OPTS = \
|
|
|
|
+ -DENABLE_UNSTABLE_API_ABI_HEADERS=ON
|
|
|
|
+ -DBUILD_GTK_TESTS=OFF \
|
|
|
|
+ -DBUILD_QT5_TESTS=OFF \
|
|
|
|
+ -DBUILD_CPP_TESTS=OFF \
|
|
|
|
+ -DENABLE_GOBJECT_INTROSPECTION=OFF \
|
|
|
|
+ -DENABLE_GTK_DOC=OFF
|
|
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
-POPPLER_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -latomic"
|
|
|
|
|
|
+POPPLER_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -latomic"
|
|
endif
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_CAIRO),y)
|
|
|
|
-POPPLER_CONF_OPTS += --enable-cairo-output
|
|
|
|
-POPPLER_DEPENDENCIES += cairo
|
|
|
|
|
|
+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_LIBPNG),y)
|
|
|
|
+POPPLER_DEPENDENCIES += libpng
|
|
|
|
+POPPLER_CONF_OPTS += -DWITH_PNG=ON
|
|
else
|
|
else
|
|
-POPPLER_CONF_OPTS += --disable-cairo-output
|
|
|
|
|
|
+POPPLER_CONF_OPTS += -DWITH_PNG=OFF
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LCMS2),y)
|
|
ifeq ($(BR2_PACKAGE_LCMS2),y)
|
|
-POPPLER_CONF_OPTS += --enable-cms=lcms2
|
|
|
|
POPPLER_DEPENDENCIES += lcms2
|
|
POPPLER_DEPENDENCIES += lcms2
|
|
|
|
+POPPLER_CONF_OPTS += -DENABLE_CMS=lcms2
|
|
else
|
|
else
|
|
-POPPLER_CONF_OPTS += --enable-cms=none
|
|
|
|
|
|
+POPPLER_CONF_OPTS += -DENABLE_CMS=none
|
|
endif
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_CAIRO)$(BR2_PACKAGE_LIBGLIB2),yy)
|
|
|
|
-POPPLER_CONF_OPTS += --enable-poppler-glib
|
|
|
|
-POPPLER_DEPENDENCIES += libglib2
|
|
|
|
|
|
+ifeq ($(BR2_PACKAGE_OPENJPEG),y)
|
|
|
|
+POPPLER_DEPENDENCIES += openjpeg
|
|
|
|
+POPPLER_CONF_OPTS += -DENABLE_LIBOPENJPEG=openjpeg2
|
|
else
|
|
else
|
|
-POPPLER_CONF_OPTS += --disable-poppler-glib
|
|
|
|
|
|
+POPPLER_CONF_OPTS += -DENABLE_LIBOPENJPEG=none
|
|
endif
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_TIFF),y)
|
|
|
|
-POPPLER_CONF_OPTS += --enable-libtiff
|
|
|
|
-# Help poppler to find libtiff in static linking scenarios
|
|
|
|
-POPPLER_CONF_ENV += \
|
|
|
|
- LIBTIFF_LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libtiff-4`"
|
|
|
|
-POPPLER_DEPENDENCIES += tiff
|
|
|
|
|
|
+ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
|
|
|
+POPPLER_DEPENDENCIES += libcurl
|
|
|
|
+POPPLER_CONF_OPTS += -DENABLE_LIBCURL=ON
|
|
else
|
|
else
|
|
-POPPLER_CONF_OPTS += --disable-libtiff
|
|
|
|
|
|
+POPPLER_CONF_OPTS += -DENABLE_LIBCURL=OFF
|
|
endif
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_JPEG),y)
|
|
|
|
-POPPLER_CONF_OPTS += --enable-dctdecoder=libjpeg
|
|
|
|
-POPPLER_DEPENDENCIES += jpeg
|
|
|
|
|
|
+ifeq ($(BR2_PACKAGE_POPPLER_QT5),y)
|
|
|
|
+POPPLER_DEPENDENCIES += qt5base
|
|
|
|
+POPPLER_CONF_OPTS += -DENABLE_QT5=ON
|
|
else
|
|
else
|
|
-POPPLER_CONF_OPTS += --enable-dctdecoder=none
|
|
|
|
|
|
+POPPLER_CONF_OPTS += -DENABLE_QT5=OFF
|
|
endif
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
|
|
|
-POPPLER_CONF_OPTS += --enable-libpng
|
|
|
|
-POPPLER_DEPENDENCIES += libpng
|
|
|
|
|
|
+ifeq ($(BR2_PACKAGE_POPPLER_UTILS),y)
|
|
|
|
+POPPLER_CONF_OPTS += -DENABLE_UTILS=ON
|
|
else
|
|
else
|
|
-POPPLER_CONF_OPTS += --disable-libpng
|
|
|
|
|
|
+POPPLER_CONF_OPTS += -DENABLE_UTILS=OFF
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
-POPPLER_CONF_OPTS += --enable-zlib
|
|
|
|
POPPLER_DEPENDENCIES += zlib
|
|
POPPLER_DEPENDENCIES += zlib
|
|
|
|
+POPPLER_CONF_OPTS += -DENABLE_ZLIB=ON
|
|
else
|
|
else
|
|
-POPPLER_CONF_OPTS += --disable-zlib
|
|
|
|
|
|
+POPPLER_CONF_OPTS += -DENABLE_ZLIB=OFF
|
|
endif
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
|
|
|
-POPPLER_CONF_OPTS += --enable-libcurl
|
|
|
|
-POPPLER_DEPENDENCIES += libcurl
|
|
|
|
|
|
+ifeq ($(BR2_PACKAGE_CAIRO),y)
|
|
|
|
+POPPLER_DEPENDENCIES += cairo
|
|
|
|
+POPPLER_CONF_OPTS += -DWITH_Cairo=ON
|
|
else
|
|
else
|
|
-POPPLER_CONF_OPTS += --disable-libcurl
|
|
|
|
|
|
+POPPLER_CONF_OPTS += -DWITH_Cairo=OFF
|
|
endif
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_XORG7),y)
|
|
|
|
-POPPLER_CONF_OPTS += --with-x
|
|
|
|
-POPPLER_DEPENDENCIES += xlib_libX11 xlib_libXext
|
|
|
|
|
|
+ifeq ($(BR2_PACKAGE_TIFF),y)
|
|
|
|
+POPPLER_DEPENDENCIES += tiff
|
|
|
|
+POPPLER_CONF_OPTS += -DWITH_TIFF=ON
|
|
else
|
|
else
|
|
-POPPLER_CONF_OPTS += --without-x
|
|
|
|
|
|
+POPPLER_CONF_OPTS += -DWITH_TIFF=OFF
|
|
endif
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_POPPLER_QT5),y)
|
|
|
|
-POPPLER_DEPENDENCIES += qt5base
|
|
|
|
-POPPLER_CONF_OPTS += --enable-poppler-qt5
|
|
|
|
-# since Qt5.7.x c++11 is needed (LTS Qt5.6.x is the last one without this requirement)
|
|
|
|
-ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
|
|
|
|
-POPPLER_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11"
|
|
|
|
|
|
+ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
|
|
|
|
+POPPLER_DEPENDENCIES += libglib2
|
|
endif
|
|
endif
|
|
|
|
+
|
|
|
|
+ifeq ($(BR2_PACKAGE_LIBNSS),y)
|
|
|
|
+POPPLER_DEPENDENCIES += libnss
|
|
|
|
+POPPLER_CONF_OPTS += -DWITH_NSS3=ON
|
|
else
|
|
else
|
|
-POPPLER_CONF_OPTS += --disable-poppler-qt5
|
|
|
|
|
|
+POPPLER_CONF_OPTS += -DWITH_NSS3=OFF
|
|
endif
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_OPENJPEG),y)
|
|
|
|
-POPPLER_DEPENDENCIES += openjpeg
|
|
|
|
-POPPLER_CONF_OPTS += --enable-libopenjpeg=openjpeg2
|
|
|
|
|
|
+ifeq ($(BR2_SOFT_FLOAT),y)
|
|
|
|
+POPPLER_CONF_OPTS += -USE_FIXEDPOINT=ON -DUSE_FLOAT=OFF
|
|
else
|
|
else
|
|
-POPPLER_CONF_OPTS += --enable-libopenjpeg=none
|
|
|
|
|
|
+POPPLER_CONF_OPTS += -USE_FIXEDPOINT=OFF -DUSE_FLOAT=ON
|
|
endif
|
|
endif
|
|
|
|
|
|
-$(eval $(autotools-package))
|
|
|
|
|
|
+$(eval $(cmake-package))
|