blob: 8c3bba5c640d3fd697f31756fb6a02bc9c019d6d [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001SUMMARY = "Provides support for the Tag Image File Format (TIFF)"
2LICENSE = "BSD-2-Clause"
3LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=34da3db46fab7501992f9615d7e158cf"
4
5CVE_PRODUCT = "libtiff"
6
7SRC_URI = "http://download.osgeo.org/libtiff/tiff-${PV}.tar.gz \
8 file://libtool2.patch \
9 file://CVE-2017-9935.patch \
10 file://CVE-2017-18013.patch \
11 file://CVE-2018-5784.patch \
12 "
13
14SRC_URI[md5sum] = "54bad211279cc93eb4fca31ba9bfdc79"
15SRC_URI[sha256sum] = "6e7bdeec2c310734e734d19aae3a71ebe37a4d842e0e23dbb1b8921c0026cfcd"
16
17# exclude betas
18UPSTREAM_CHECK_REGEX = "tiff-(?P<pver>\d+(\.\d+)+).tar"
19
20inherit autotools multilib_header
21
22CACHED_CONFIGUREVARS = "ax_cv_check_gl_libgl=no"
23
24PACKAGECONFIG ?= "cxx jpeg zlib lzma \
25 strip-chopping extrasample-as-alpha check-ycbcr-subsampling"
26
27PACKAGECONFIG[cxx] = "--enable-cxx,--disable-cxx,,"
28PACKAGECONFIG[jpeg] = "--enable-jpeg,--disable-jpeg,jpeg,"
29PACKAGECONFIG[zlib] = "--enable-zlib,--disable-zlib,zlib,"
30PACKAGECONFIG[lzma] = "--enable-lzma,--disable-lzma,xz,"
31
32# Convert single-strip uncompressed images to multiple strips of specified
33# size (default: 8192) to reduce memory usage
34PACKAGECONFIG[strip-chopping] = "--enable-strip-chopping,--disable-strip-chopping,,"
35
36# Treat a fourth sample with no EXTRASAMPLE_ value as being ASSOCALPHA
37PACKAGECONFIG[extrasample-as-alpha] = "--enable-extrasample-as-alpha,--disable-extrasample-as-alpha,,"
38
39# Control picking up YCbCr subsample info. Disable to support files lacking
40# the tag
41PACKAGECONFIG[check-ycbcr-subsampling] = "--enable-check-ycbcr-subsampling,--disable-check-ycbcr-subsampling,,"
42
43# Support a mechanism allowing reading large strips (usually one strip files)
44# in chunks when using TIFFReadScanline. Experimental 4.0+ feature
45PACKAGECONFIG[chunky-strip-read] = "--enable-chunky-strip-read,--disable-chunky-strip-read,,"
46
47PACKAGES =+ "tiffxx tiff-utils"
48FILES_tiffxx = "${libdir}/libtiffxx.so.*"
49FILES_tiff-utils = "${bindir}/*"
50
51do_install_append() {
52 oe_multilib_header tiffconf.h
53}
54
55BBCLASSEXTEND = "native"