61 lines
1.4 KiB
Bash
61 lines
1.4 KiB
Bash
# Template file for 'libvpx'
|
|
# updates generally break abi, so if you update this,
|
|
# have fun rebuilding everything
|
|
pkgname=libvpx
|
|
version=1.13.0
|
|
revision=1
|
|
hostmakedepends="perl yasm"
|
|
short_desc="VP8 and VP9 video codec"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-3-Clause-Clear"
|
|
homepage="http://www.webmproject.org"
|
|
distfiles="https://github.com/webmproject/libvpx/archive/v${version}.tar.gz"
|
|
checksum=cb2a393c9c1fae7aba76b950bb0ad393ba105409fe1a147ccd61b0aaa1501066
|
|
|
|
do_configure() {
|
|
export LD="$CC"
|
|
local target args
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*) target="x86_64-linux-gcc" ;;
|
|
i686*) target="x86-linux-gcc" ;;
|
|
armv7*) target="armv7-linux-gcc"; args="--disable-neon" ;;
|
|
aarch64*) target="arm64-linux-gcc" ;;
|
|
*) target="generic-gnu";;
|
|
esac
|
|
CFLAGS+=" -fPIC"
|
|
|
|
./configure --enable-vp8 --enable-vp9 \
|
|
--enable-experimental \
|
|
--enable-runtime-cpu-detect --enable-shared \
|
|
--enable-postproc --enable-pic --disable-install-docs \
|
|
--disable-install-srcs --as=yasm ${args} --target=${target}
|
|
}
|
|
|
|
do_build() {
|
|
make ${makejobs}
|
|
}
|
|
|
|
do_install() {
|
|
make DIST_DIR=${DESTDIR}/usr install
|
|
vlicense LICENSE
|
|
}
|
|
|
|
libvpx-tools_package() {
|
|
short_desc+=" - tools"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
}
|
|
}
|
|
|
|
libvpx-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|