[buildout]
extends =
  ../libjpeg/buildout.cfg
  ../jbigkit/buildout.cfg
  ../patch/buildout.cfg
  ../zlib/buildout.cfg

parts =
  libtiff

[libtiff]
recipe = slapos.recipe.cmmi
shared = true
url = http://download.osgeo.org/libtiff/tiff-4.2.0.tar.gz
md5sum = 2bbf6db1ddc4a59c89d6986b368fc063
configure-options =
  --disable-static
  --without-x
  --disable-libdeflate
  --disable-lzma
  --disable-zstd
  --disable-webp
patch-options = -p1
patches =
  ${:_profile_base_location_}/debian_4.2.0-1+deb11u1.patch#2ded3a01abc353bad4aa1a1f128d6d1a
environment =
  CPPFLAGS=-I${libjpeg:location}/include -I${jbigkit:location}/include -I${zlib:location}/include
  LDFLAGS=-L${libjpeg:location}/lib -Wl,-rpath=${libjpeg:location}/lib -L${jbigkit:location}/lib -Wl,-rpath=${jbigkit:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
  PATH=${patch:location}/bin:%(PATH)s
