blob: d580f98519a177c3cbb589f0c86f727b870090a2 (
plain)
1 # Description: A library for a new image format comparable to JPEG.
2 # URL: https://developers.google.com/speed/webp/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: giflib libpng libtiff
5 # Optional: freeglut libsdl ninja
6
7 name=libwebp
8 version=1.3.0
9 release=1
10 source=(https://storage.googleapis.com/downloads.webmproject.org/releases/webp/$name-$version.tar.gz)
11
12 build() {
13 prt-get isinst ninja && PKGMK_LIBWEBP+=' -G Ninja'
14
15 cmake -S ${name%-*}-$version -B build $PKGMK_LIBWEBP \
16 -D CMAKE_INSTALL_PREFIX="/usr" \
17 -D CMAKE_INSTALL_LIBDIR="/usr/lib" \
18 -D BUILD_SHARED_LIBS=ON \
19 -D CMAKE_BUILD_TYPE=Release \
20 -D CMAKE_C_FLAGS_RELEASE="${CFLAGS}" \
21 -D WEBP_BUILD_VWEBP=OFF \
22 -Wno-dev
23
24 cmake --build build
25 DESTDIR=$PKG cmake --install build
26 }
|