opt/libwebp/Pkgfile

27 lines
790 B
Plaintext
Raw Normal View History

2018-03-17 06:02:37 +01:00
# Description: A library for a new image format comparable to JPEG.
# URL: https://developers.google.com/speed/webp/
2023-06-30 17:27:12 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: giflib libpng libtiff
# Optional: freeglut libsdl ninja
2018-03-17 06:02:37 +01:00
name=libwebp
2023-09-14 07:07:12 +02:00
version=1.3.2
2021-08-22 16:05:12 +02:00
release=1
2018-07-15 02:27:09 +02:00
source=(https://storage.googleapis.com/downloads.webmproject.org/releases/webp/$name-$version.tar.gz)
2018-03-17 06:02:37 +01:00
build() {
2023-06-30 17:27:12 +02:00
prt-get isinst ninja && PKGMK_LIBWEBP+=' -G Ninja'
2018-03-17 06:02:37 +01:00
2023-06-30 17:27:12 +02:00
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
2018-03-17 06:02:37 +01:00
2023-06-30 17:27:12 +02:00
cmake --build build
DESTDIR=$PKG cmake --install build
2018-03-17 06:02:37 +01:00
}