44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
# Template file for 'libwebp'
|
|
pkgname=libwebp
|
|
version=1.2.1
|
|
revision=1
|
|
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/"
|
|
distfiles="http://downloads.webmproject.org/releases/webp/${pkgname}-${version}.tar.gz"
|
|
checksum=808b98d2f5b84e9b27fdef6c5372dac769c3bda4502febbfa5031bd3c4d7d018
|
|
|
|
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="${makedepends/libfreeglut-devel/} ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove "usr/lib/*.a"
|
|
}
|
|
}
|