APP=libwebp
VERSION=1.1.0
BUILD=1sml
HOMEPAGE="https://developers.google.com/speed/webp/"
DOWNLOAD="https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.1.0.tar.gz"
DESC="WebP library and conversion tools"
REQUIRES="giflib libpng zstd libtiff"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --disable-static \
    --disable-silent-rules \
    --enable-everything \
    --enable-swap-16bit-csp 

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
5df747f059b0e92ea090ce08d74990944e6cd4d60afbbefa17528887ef805dea70bb4c16afabdaf72df7c71408117338f0e81cc389848675de3416d793757d37  libwebp-1.1.0.tar.lz
"
