# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libtiff
version=4.0.10
build=1sml
homepage="http://www.simplesystems.org/libtiff/"
download="https://download.osgeo.org/libtiff/tiff-$version.tar.gz"
desc="Library for reading and writing TIFF files"
requires="xz zlib libjpeg-turbo glu"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf "tiff-$version"

  tar xf $srcdir/tiff-$version.tar.?z*
  cd "tiff-$version"
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix="" \
    --libdir="/lib" \
    --with-pic \
    --enable-shared \
    --disable-static

  make
  make install DESTDIR=$pkg

  cp COPYRIGHT $pkgdocs/

  mkfinalpkg
}

sha512sums="
2ea696ac44738d32d40c05efcc033eac6cc39c289ee9dc312e9846397f28623823755aea0ef414fc6538c4b68c311c39e409b83068ffb61b61e5612bcd1970ff  tiff-4.0.10.tar.lz
"
