blob: ab81522814922a26f5b9eafbae681f89044317d3 (
plain)
1 # Description: A library for a new image format comparable to JPEG.
2 # URL: https://developers.google.com/speed/webp/
3 # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
4 # Depends on: giflib-32 libpng-32 libtiff-32 zstd-32 libwebp
5 # Optional: freeglut-32 libsdl-32 ninja
6
7 name=libwebp-32
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_32+=' -G Ninja'
14
15 prt-get isinst freeglut && ! prt-get isinst freeglut-32 && printf "\e[031mfreeglut is detected on your system, please run:
16 prt-get depinst freeglut-32
17 before continuing with libwebp-32.\033[0m\n" &&
18 exit 1
19
20 prt-get isinst libsdl && ! prt-get isinst libsdl-32 && printf "\e[031mlibsdl is detected on your system, please run:
21 prt-get depinst libsdl-32
22 before continuing with libwebp-32.\033[0m\n" &&
23 exit 1
24
25 cmake -S ${name%-*}-$version -B build $PKGMK_LIBWEBP_32 \
26 -D CMAKE_INSTALL_PREFIX="/usr" \
27 -D CMAKE_INSTALL_LIBDIR="/usr/lib32" \
28 -D BUILD_SHARED_LIBS=ON \
29 -D CMAKE_BUILD_TYPE=Release \
30 -D CMAKE_C_FLAGS_RELEASE="${CFLAGS}" \
31 -D WEBP_BUILD_VWEBP=OFF \
32 -Wno-dev
33
34 cmake --build build
35 DESTDIR=$PKG cmake --install build
36
37
38 rm -r $PKG/usr/{bin,share,include}
39 }
|