43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
# Template file for 'libwebp'
|
|
pkgname=libwebp
|
|
version=1.0.2
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --enable-libwebpmux
|
|
--enable-libwebpdemux --enable-libwebpdecoder"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="giflib-devel libfreeglut-devel libpng-devel tiff-devel"
|
|
short_desc="WebP image format"
|
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://developers.google.com/speed/webp/"
|
|
distfiles="http://downloads.webmproject.org/releases/webp/${pkgname}-${version}.tar.gz"
|
|
checksum=3d47b48c40ed6476e8047b2ddb81d93835e0ca1b8d3e8c679afbb3004dd564b1
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
armv6*) configure_args+=" --disable-neon";;
|
|
armv7*) CFLAGS="-mfpu=neon";;
|
|
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} ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|