ports: Add libwebp port

This commit is contained in:
2025-06-11 16:01:19 +03:00
parent f4f424bf04
commit 8574fcf6e1
3 changed files with 62 additions and 0 deletions

19
ports/libwebp/build.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash ../install.sh
NAME='libwebp'
VERSION='1.5.0'
DOWNLOAD_URL="https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-$VERSION.tar.gz#7d6fab70cf844bf6769077bd5d7a74893f8ffd4dfb42861745750c63c2a5c92c"
DEPENDENCIES=('libpng' 'libjpeg' 'libtiff')
CONFIGURE_OPTIONS=(
"--with-pngincludedir=$BANAN_SYSROOT/usr/include"
"--with-pnglibdir=$BANAN_SYSROOT/usr/lib"
)
install() {
make install DESTDIR="$BANAN_SYSROOT" || exit 1
# remove libtool files
rm -f $BANAN_SYSROOT/usr/lib/libwebp.la
rm -f $BANAN_SYSROOT/usr/lib/libwebpdemux.la
rm -f $BANAN_SYSROOT/usr/lib/libwebpmux.la
}