63 lines
1.7 KiB
Bash
63 lines
1.7 KiB
Bash
# Template file for 'libwebp'
|
|
pkgname=libwebp
|
|
version=1.4.0
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--enable-libwebpmux --enable-libwebpdemux --enable-libwebpdecoder"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="giflib-devel libpng-devel tiff-devel"
|
|
short_desc="WebP image format"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://developers.google.com/speed/webp/"
|
|
changelog="https://chromium.googlesource.com/webm/libwebp/+/refs/heads/main/NEWS"
|
|
distfiles="http://downloads.webmproject.org/releases/webp/libwebp-${version}.tar.gz"
|
|
checksum=61f873ec69e3be1b99535634340d5bde750b2e4447caa1db9f61be3fd49ab1e5
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
armv6*) configure_args+=" --disable-neon";;
|
|
armv7*) CFLAGS="-mfpu=neon";;
|
|
*) makedepends+=" libfreeglut-devel";;
|
|
esac
|
|
|
|
post_install() {
|
|
vlicense COPYING LICENSE
|
|
}
|
|
|
|
libwebp-tools_package() {
|
|
short_desc+=" - tools"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/share/man
|
|
}
|
|
}
|
|
|
|
libwebp-devel_package() {
|
|
depends="libsharpyuv-devel>=${version}_${revision} ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove "usr/lib/*.a"
|
|
}
|
|
}
|
|
|
|
libsharpyuv_package() {
|
|
short_desc="Library to expose libwebp's sharpyuv functionality"
|
|
pkg_install() {
|
|
vmove "usr/lib/libsharpyuv.so.*"
|
|
}
|
|
}
|
|
|
|
libsharpyuv-devel_package() {
|
|
short_desc="Library to expose libwebp's sharpyuv functionality - development files"
|
|
depends="libsharpyuv>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include/webp/sharpyuv
|
|
vmove usr/lib/pkgconfig/libsharpyuv.pc
|
|
vmove usr/lib/libsharpyuv.so
|
|
vmove usr/lib/libsharpyuv.a
|
|
}
|
|
}
|