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
|
|
|
|
POPPLER_DEPENDENCIES = fontconfig
|
|
|
|
POPPLER_LICENSE = GPLv2+
|
|
|
|
POPPLER_LICENSE_FILES = COPYING
|
2014-10-12 21:56:53 +02:00
|
|
|
POPPLER_INSTALL_STAGING = YES
|
2014-09-27 21:32:44 +02:00
|
|
|
POPPLER_CONF_OPTS = --with-font-configuration=fontconfig
|
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
|
|
|
|
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-04-05 00:26:07 +02:00
|
|
|
POPPLER_CONF_OPTS += -enable-libopenjpeg=openjpeg1
|
2015-03-22 22:12:48 +01:00
|
|
|
else
|
|
|
|
POPPLER_CONF_OPTS += -enable-libopenjpeg=none
|
|
|
|
endif
|
|
|
|
|
2013-04-16 12:48:04 +02:00
|
|
|
$(eval $(autotools-package))
|