opt/libwebp/Pkgfile

25 lines
830 B
Plaintext

# Description: A library for a new image format comparable to JPEG.
# URL: https://developers.google.com/speed/webp/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: giflib libpng libtiff
# Optional: freeglut libsdl ninja
name=libwebp
version=1.2.1
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}"
cmake --build build
DESTDIR=$PKG cmake --install build
}