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-01-06 13:30:02 +01:00
|
|
|
POPPLER_VERSION = 0.24.5
|
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)
|
2014-09-27 21:32:44 +02:00
|
|
|
POPPLER_CONF_OPTS += --enable-cms=lcms2
|
2013-04-16 12:48:04 +02:00
|
|
|
POPPLER_DEPENDENCIES += lcms2
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
POPPLER_CONF_OPTS += --enable-cms=none
|
2013-04-16 12:48:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TIFF),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
POPPLER_CONF_OPTS += --enable-libtiff
|
2013-04-16 12:48:04 +02:00
|
|
|
POPPLER_DEPENDENCIES += tiff
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
POPPLER_CONF_OPTS += --disable-libtiff
|
2013-04-16 12:48:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
POPPLER_CONF_OPTS += --enable-libjpeg
|
2013-04-16 12:48:04 +02:00
|
|
|
POPPLER_DEPENDENCIES += jpeg
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
POPPLER_CONF_OPTS += --disable-libjpeg
|
2013-04-16 12:48:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
POPPLER_CONF_OPTS += --enable-libpng
|
2013-04-16 12:48:04 +02:00
|
|
|
POPPLER_DEPENDENCIES += libpng
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
POPPLER_CONF_OPTS += --disable-libpng
|
2013-04-16 12:48:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
POPPLER_CONF_OPTS += --enable-zlib
|
2013-04-16 12:48:04 +02:00
|
|
|
POPPLER_DEPENDENCIES += zlib
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
POPPLER_CONF_OPTS += --disable-zlib
|
2013-04-16 12:48:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_POPPLER_LIBCURL),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
POPPLER_CONF_OPTS += --enable-libcurl
|
2013-04-16 12:48:04 +02:00
|
|
|
POPPLER_DEPENDENCIES += libcurl
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
POPPLER_CONF_OPTS += --disable-libcurl
|
2013-04-16 12:48:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XORG7),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
POPPLER_CONF_OPTS += --with-x
|
2013-04-16 12:48:04 +02:00
|
|
|
POPPLER_DEPENDENCIES += xlib_libX11 xlib_libXext
|
|
|
|
else
|
2014-09-27 21:32:44 +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)
|
|
|
|
POPPLER_DEPENDENCIES += qt
|
|
|
|
POPPLER_CONF_OPTS += --enable-poppler-qt4
|
|
|
|
else
|
|
|
|
POPPLER_CONF_OPTS += --disable-poppler-qt4
|
|
|
|
endif
|
|
|
|
|
2013-04-16 12:48:04 +02:00
|
|
|
$(eval $(autotools-package))
|