1
0
forked from ports/opt
opt/libwebp/Pkgfile

25 lines
630 B
Plaintext
Raw Normal View History

2018-03-17 16:02:37 +11:00
# 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
2019-02-05 01:16:59 +11:00
# Depends on: libpng libtiff
2018-07-15 10:27:09 +10:00
# Optional: freeglut giflib libsdl
2018-03-17 16:02:37 +11:00
name=libwebp
2021-03-12 22:43:33 +11:00
version=1.2.0
2018-03-17 16:02:37 +11:00
release=1
2018-07-15 10:27:09 +10:00
source=(https://storage.googleapis.com/downloads.webmproject.org/releases/webp/$name-$version.tar.gz)
2018-03-17 16:02:37 +11:00
build() {
cd $name-$version
./configure \
--prefix=/usr \
--enable-swap-16bit-csp \
2021-03-12 22:43:33 +11:00
--enable-experimental \
2018-03-17 16:02:37 +11:00
--enable-libwebp{mux,demux,decoder,extras}
2018-03-17 16:02:45 +11:00
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
2018-03-17 16:02:37 +11:00
make
make DESTDIR=$PKG install
}