2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-04-16 12:48:04 +02:00
|
|
|
#
|
|
|
|
# poppler
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-04-16 12:48:04 +02:00
|
|
|
|
2017-09-17 20:28:18 +02:00
|
|
|
POPPLER_VERSION = 0.59.0
|
2013-10-09 09:02:04 +02:00
|
|
|
POPPLER_SOURCE = poppler-$(POPPLER_VERSION).tar.xz
|
2013-04-16 12:48:04 +02:00
|
|
|
POPPLER_SITE = http://poppler.freedesktop.org
|
2015-05-03 15:41:13 +02:00
|
|
|
POPPLER_DEPENDENCIES = fontconfig host-pkgconf
|
2017-03-30 15:43:32 +02:00
|
|
|
POPPLER_LICENSE = GPL-2.0+
|
2013-04-16 12:48:04 +02:00
|
|
|
POPPLER_LICENSE_FILES = COPYING
|
2014-10-12 21:56:53 +02:00
|
|
|
POPPLER_INSTALL_STAGING = YES
|
2016-01-20 23:17:46 +01:00
|
|
|
POPPLER_CONF_OPTS = --with-font-configuration=fontconfig \
|
|
|
|
--enable-xpdf-headers
|
2013-04-16 12:48:04 +02:00
|
|
|
|
2016-10-13 03:13:54 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_CAIRO),y)
|
|
|
|
POPPLER_CONF_OPTS += --enable-cairo-output
|
|
|
|
POPPLER_DEPENDENCIES += cairo
|
|
|
|
else
|
2017-02-07 09:38:37 +01:00
|
|
|
POPPLER_CONF_OPTS += --disable-cairo-output
|
2016-10-13 03:13:54 +02:00
|
|
|
endif
|
|
|
|
|
2013-04-16 12:48:04 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LCMS2),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
POPPLER_CONF_OPTS += --enable-cms=lcms2
|
|
|
|
POPPLER_DEPENDENCIES += lcms2
|
2013-04-16 12:48:04 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
POPPLER_CONF_OPTS += --enable-cms=none
|
2013-04-16 12:48:04 +02:00
|
|
|
endif
|
|
|
|
|
2016-10-13 03:13:55 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_CAIRO)$(BR2_PACKAGE_LIBGLIB2),yy)
|
|
|
|
POPPLER_CONF_OPTS += --enable-poppler-glib
|
|
|
|
POPPLER_DEPENDENCIES += libglib2
|
|
|
|
else
|
|
|
|
POPPLER_CONF_OPTS += --disable-poppler-glib
|
|
|
|
endif
|
|
|
|
|
2013-04-16 12:48:04 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_TIFF),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
POPPLER_CONF_OPTS += --enable-libtiff
|
2015-05-03 15:41:13 +02:00
|
|
|
# Help poppler to find libtiff in static linking scenarios
|
|
|
|
POPPLER_CONF_ENV += \
|
2015-07-12 16:35:26 +02:00
|
|
|
LIBTIFF_LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libtiff-4`"
|
2015-03-31 09:21:57 +02:00
|
|
|
POPPLER_DEPENDENCIES += tiff
|
2013-04-16 12:48:04 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
POPPLER_CONF_OPTS += --disable-libtiff
|
2013-04-16 12:48:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
2017-05-22 13:03:56 +02:00
|
|
|
POPPLER_CONF_OPTS += --enable-dctdecoder=libjpeg
|
2015-03-31 09:21:57 +02:00
|
|
|
POPPLER_DEPENDENCIES += jpeg
|
2013-04-16 12:48:04 +02:00
|
|
|
else
|
2017-05-22 13:03:56 +02:00
|
|
|
POPPLER_CONF_OPTS += --enable-dctdecoder=none
|
2013-04-16 12:48:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
POPPLER_CONF_OPTS += --enable-libpng
|
|
|
|
POPPLER_DEPENDENCIES += libpng
|
2013-04-16 12:48:04 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
POPPLER_CONF_OPTS += --disable-libpng
|
2013-04-16 12:48:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
POPPLER_CONF_OPTS += --enable-zlib
|
|
|
|
POPPLER_DEPENDENCIES += zlib
|
2013-04-16 12:48:04 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
POPPLER_CONF_OPTS += --disable-zlib
|
2013-04-16 12:48:04 +02:00
|
|
|
endif
|
|
|
|
|
2017-09-17 20:28:17 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
POPPLER_CONF_OPTS += --enable-libcurl
|
|
|
|
POPPLER_DEPENDENCIES += libcurl
|
2013-04-16 12:48:04 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
POPPLER_CONF_OPTS += --disable-libcurl
|
2013-04-16 12:48:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XORG7),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
POPPLER_CONF_OPTS += --with-x
|
|
|
|
POPPLER_DEPENDENCIES += xlib_libX11 xlib_libXext
|
2013-04-16 12:48:04 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
POPPLER_CONF_OPTS += --without-x
|
2013-04-16 12:48:04 +02:00
|
|
|
endif
|
|
|
|
|
2014-10-12 21:56:52 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_POPPLER_QT),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
POPPLER_DEPENDENCIES += qt
|
|
|
|
POPPLER_CONF_OPTS += --enable-poppler-qt4
|
2014-10-12 21:56:52 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
POPPLER_CONF_OPTS += --disable-poppler-qt4
|
2014-10-12 21:56:52 +02:00
|
|
|
endif
|
|
|
|
|
2017-02-11 12:05:30 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_POPPLER_QT5),y)
|
|
|
|
POPPLER_DEPENDENCIES += qt5base
|
|
|
|
POPPLER_CONF_OPTS += --enable-poppler-qt5
|
2017-02-11 12:05:31 +01:00
|
|
|
# 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"
|
|
|
|
endif
|
2017-02-11 12:05:30 +01:00
|
|
|
else
|
|
|
|
POPPLER_CONF_OPTS += --disable-poppler-qt5
|
|
|
|
endif
|
|
|
|
|
2015-03-22 22:12:48 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENJPEG),y)
|
|
|
|
POPPLER_DEPENDENCIES += openjpeg
|
2017-06-02 06:54:51 +02:00
|
|
|
POPPLER_CONF_OPTS += --enable-libopenjpeg=openjpeg2
|
2015-03-22 22:12:48 +01:00
|
|
|
else
|
2015-05-06 00:48:08 +02:00
|
|
|
POPPLER_CONF_OPTS += --enable-libopenjpeg=none
|
2015-03-22 22:12:48 +01:00
|
|
|
endif
|
|
|
|
|
2013-04-16 12:48:04 +02:00
|
|
|
$(eval $(autotools-package))
|