# Description: A library for a new image format comparable to JPEG. # URL: https://developers.google.com/speed/webp/ # Maintainer: Tim Biermann, tbier at posteo dot de # Depends on: giflib libpng libtiff # Optional: freeglut libsdl ninja name=libwebp version=1.4.0 release=1 source=(https://storage.googleapis.com/downloads.webmproject.org/releases/webp/$name-$version.tar.gz) build() { prt-get isinst ninja && PKGMK_LIBWEBP+=' -G Ninja' cmake -S ${name%-*}-$version -B build $PKGMK_LIBWEBP \ -D CMAKE_INSTALL_PREFIX="/usr" \ -D CMAKE_INSTALL_LIBDIR="/usr/lib" \ -D BUILD_SHARED_LIBS=ON \ -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_C_FLAGS_RELEASE="${CFLAGS}" \ -D WEBP_BUILD_VWEBP=OFF \ -Wno-dev cmake --build build DESTDIR=$PKG cmake --install build }