summaryrefslogtreecommitdiffstats
path: root/package/leptonica
diff options
context:
space:
mode:
authorGilles Talis <gilles.talis@gmail.com>2017-03-19 09:07:52 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-19 14:57:50 +0100
commitccab2d636fbee6eb8073ea2010442d7678a9ec54 (patch)
treedd6a9d66c021bca5c01b07d5045fc193c42beaf5 /package/leptonica
parent2b2e216ee0cb6894b0012316c20da9291ce14458 (diff)
downloadbuildroot-ccab2d636fbee6eb8073ea2010442d7678a9ec54.tar.gz
buildroot-ccab2d636fbee6eb8073ea2010442d7678a9ec54.zip
leptonica: new package
Signed-off-by: Gilles Talis <gilles.talis@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/leptonica')
-rw-r--r--package/leptonica/Config.in8
-rw-r--r--package/leptonica/leptonica.hash2
-rw-r--r--package/leptonica/leptonica.mk64
3 files changed, 74 insertions, 0 deletions
diff --git a/package/leptonica/Config.in b/package/leptonica/Config.in
new file mode 100644
index 0000000000..a4053a3fad
--- /dev/null
+++ b/package/leptonica/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LEPTONICA
+ bool "leptonica"
+ help
+ Leptonica is a pedagogically-oriented open source site containing
+ software that is broadly useful for image processing and image
+ analysis applications.
+
+ http://www.leptonica.org/
diff --git a/package/leptonica/leptonica.hash b/package/leptonica/leptonica.hash
new file mode 100644
index 0000000000..48da06b3ff
--- /dev/null
+++ b/package/leptonica/leptonica.hash
@@ -0,0 +1,2 @@
+# locally computed hash
+sha256 746a517a47a3bd2a90bc8d581ca6464c10f30e91a60209735efe45b3778bec62 leptonica-1.74.1.tar.gz
diff --git a/package/leptonica/leptonica.mk b/package/leptonica/leptonica.mk
new file mode 100644
index 0000000000..37e5219926
--- /dev/null
+++ b/package/leptonica/leptonica.mk
@@ -0,0 +1,64 @@
+################################################################################
+#
+# leptonica
+#
+################################################################################
+
+LEPTONICA_VERSION = 1.74.1
+LEPTONICA_SITE = http://www.leptonica.org/source
+LEPTONICA_LICENSE = BSD-2c
+LEPTONICA_LICENSE_FILES = leptonica-license.txt
+LEPTONICA_INSTALL_STAGING = YES
+
+LEPTONICA_CONF_OPTS += --disable-programs
+
+ifeq ($(BR2_PACKAGE_GIFLIB),y)
+LEPTONICA_DEPENDENCIES += giflib
+LEPTONICA_CONF_OPTS += --with-giflib
+else
+LEPTONICA_CONF_OPTS += --without-giflib
+endif
+
+ifeq ($(BR2_PACKAGE_JPEG),y)
+LEPTONICA_DEPENDENCIES += jpeg
+LEPTONICA_CONF_OPTS += --with-jpeg
+else
+LEPTONICA_CONF_OPTS += --without-jpeg
+endif
+
+ifeq ($(BR2_PACKAGE_LIBPNG),y)
+LEPTONICA_DEPENDENCIES += libpng
+LEPTONICA_CONF_OPTS += --with-libpng
+else
+LEPTONICA_CONF_OPTS += --without-libpng
+endif
+
+ifeq ($(BR2_PACKAGE_OPENJPEG),y)
+LEPTONICA_DEPENDENCIES += openjpeg
+LEPTONICA_CONF_OPTS += --with-libopenjpeg
+else
+LEPTONICA_CONF_OPTS += --without-libopenjpeg
+endif
+
+ifeq ($(BR2_PACKAGE_TIFF),y)
+LEPTONICA_DEPENDENCIES += tiff
+LEPTONICA_CONF_OPTS += --with-libtiff
+else
+LEPTONICA_CONF_OPTS += --without-libtiff
+endif
+
+ifeq ($(BR2_PACKAGE_WEBP),y)
+LEPTONICA_DEPENDENCIES += webp
+LEPTONICA_CONF_OPTS += --with-libwebp
+else
+LEPTONICA_CONF_OPTS += --without-libwebp
+endif
+
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+LEPTONICA_DEPENDENCIES += zlib
+LEPTONICA_CONF_OPTS += --with-zlib
+else
+LEPTONICA_CONF_OPTS += --without-zlib
+endif
+
+$(eval $(autotools-package))
OpenPOWER on IntegriCloud