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
|
|
|
|
2015-03-22 22:12:48 +01:00
|
|
|
POPPLER_VERSION = 0.32.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
|
2013-04-16 12:48:04 +02:00
|
|
|
POPPLER_LICENSE = GPLv2+
|
|
|
|
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
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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)
|
2015-03-31 09:21:57 +02:00
|
|
|
POPPLER_CONF_OPTS += --enable-libjpeg
|
|
|
|
POPPLER_DEPENDENCIES += jpeg
|
2013-04-16 12:48:04 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
POPPLER_CONF_OPTS += --disable-libjpeg
|
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
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_POPPLER_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
|
|
|
|
|
2015-03-22 22:12:48 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENJPEG),y)
|
|
|
|
POPPLER_DEPENDENCIES += openjpeg
|
2015-05-06 00:48:08 +02:00
|
|
|
POPPLER_CONF_OPTS += --enable-libopenjpeg=openjpeg1
|
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))
|