summaryrefslogtreecommitdiffstats
path: root/package/poppler/poppler.mk
diff options
context:
space:
mode:
authorOlivier Schonken <olivier.schonken@gmail.com>2013-04-16 10:48:04 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-04-23 22:40:18 +0200
commitf5d6eee6d0e319715ae2cbf07e0fc4b116ed32a2 (patch)
tree3e1d36816a8b07fe3e782358c6fdf14bfe16dcbb /package/poppler/poppler.mk
parente2a547fc53fe6c345d873ba19d9975d96b3ef484 (diff)
downloadbuildroot-novena-f5d6eee6d0e319715ae2cbf07e0fc4b116ed32a2.tar.gz
buildroot-novena-f5d6eee6d0e319715ae2cbf07e0fc4b116ed32a2.zip
poppler: new package
Poppler is a PDF rendering library based on the xpdf-3.0 code base. [Peter: Fix license, comment text and drop explicit library options] Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/poppler/poppler.mk')
-rw-r--r--package/poppler/poppler.mk63
1 files changed, 63 insertions, 0 deletions
diff --git a/package/poppler/poppler.mk b/package/poppler/poppler.mk
new file mode 100644
index 000000000..1ce7d1ed0
--- /dev/null
+++ b/package/poppler/poppler.mk
@@ -0,0 +1,63 @@
+#############################################################
+#
+# poppler
+#
+#############################################################
+
+POPPLER_VERSION = 0.22.3
+POPPLER_SITE = http://poppler.freedesktop.org
+POPPLER_DEPENDENCIES = fontconfig
+POPPLER_LICENSE = GPLv2+
+POPPLER_LICENSE_FILES = COPYING
+POPPLER_CONF_OPT = --with-font-configuration=fontconfig
+
+ifeq ($(BR2_PACKAGE_LCMS2),y)
+ POPPLER_CONF_OPT += --enable-cms=lcms2
+ POPPLER_DEPENDENCIES += lcms2
+else
+ POPPLER_CONF_OPT += --enable-cms=none
+endif
+
+ifeq ($(BR2_PACKAGE_TIFF),y)
+ POPPLER_CONF_OPT += --enable-libtiff
+ POPPLER_DEPENDENCIES += tiff
+else
+ POPPLER_CONF_OPT += --disable-libtiff
+endif
+
+ifeq ($(BR2_PACKAGE_JPEG),y)
+ POPPLER_CONF_OPT += --enable-libjpeg
+ POPPLER_DEPENDENCIES += jpeg
+else
+ POPPLER_CONF_OPT += --disable-libjpeg
+endif
+
+ifeq ($(BR2_PACKAGE_LIBPNG),y)
+ POPPLER_CONF_OPT += --enable-libpng
+ POPPLER_DEPENDENCIES += libpng
+else
+ POPPLER_CONF_OPT += --disable-libpng
+endif
+
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+ POPPLER_CONF_OPT += --enable-zlib
+ POPPLER_DEPENDENCIES += zlib
+else
+ POPPLER_CONF_OPT += --disable-zlib
+endif
+
+ifeq ($(BR2_PACKAGE_POPPLER_LIBCURL),y)
+ POPPLER_CONF_OPT += --enable-libcurl
+ POPPLER_DEPENDENCIES += libcurl
+else
+ POPPLER_CONF_OPT += --disable-libcurl
+endif
+
+ifeq ($(BR2_PACKAGE_XORG7),y)
+ POPPLER_CONF_OPT += --with-x
+ POPPLER_DEPENDENCIES += xlib_libX11 xlib_libXext
+else
+ POPPLER_CONF_OPT += --without-x
+endif
+
+$(eval $(autotools-package))