]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
package/tiff: add optional support for xz
authorBernd Kuhls <bernd.kuhls@t-online.de>
Wed, 10 Feb 2016 20:59:10 +0000 (21:59 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 16 Feb 2016 22:15:37 +0000 (23:15 +0100)
When xz was compiled before, tiff will use it as optional dependency:

$ output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a output/target/usr/lib/libtiff.so.5.2.4 | grep NEEDED
 0x00000001 (NEEDED)                     Shared library: [liblzma.so.5]
 0x00000001 (NEEDED)                     Shared library: [libjpeg.so.9]
 0x00000001 (NEEDED)                     Shared library: [libz.so.1]
 0x00000001 (NEEDED)                     Shared library: [libm.so.1]
 0x00000001 (NEEDED)                     Shared library: [libc.so.1]

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/tiff/Config.in
package/tiff/tiff.mk

index acb335cc9d07efd406412ef9fca2f553bed4c432..00c2a3dc164a4798cc933999646886d3f5a28e79 100644 (file)
@@ -41,6 +41,10 @@ config BR2_PACKAGE_TIFF_ZLIB
        select BR2_PACKAGE_ZLIB
        default y
 
+config BR2_PACKAGE_TIFF_XZ
+       bool "XZ compression"
+       select BR2_PACKAGE_XZ
+
 config BR2_PACKAGE_TIFF_PIXARLOG
        bool "Pixar log-format algorithm (requires Zlib)"
        select BR2_PACKAGE_TIFF_ZLIB
index c2e713cd9611ae89ddc8ba4f3bef7d2d54811412..266272aa13ab7db213e6e0623b1af6c99bd5815b 100644 (file)
@@ -49,6 +49,12 @@ else
 TIFF_DEPENDENCIES += zlib
 endif
 
+ifneq ($(BR2_PACKAGE_TIFF_XZ),y)
+TIFF_CONF_OPTS += --disable-lzma
+else
+TIFF_DEPENDENCIES += xz
+endif
+
 ifneq ($(BR2_PACKAGE_TIFF_PIXARLOG),y)
 TIFF_CONF_OPTS += --disable-pixarlog
 endif