mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-21 16:41:52 +01:00
50 lines
1.4 KiB
Plaintext
50 lines
1.4 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=libvpx
|
|
pkgver=1.8.0
|
|
pkgrel=0
|
|
pkgdesc="Library for the vp8 codec"
|
|
url="https://www.webmproject.org/"
|
|
arch="all"
|
|
license="GPL"
|
|
depends=""
|
|
makedepends="coreutils yasm bash perl diffutils linux-headers" # linux-headers is needed on ppc64le
|
|
subpackages="$pkgname-dev $pkgname-utils"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/webmproject/libvpx/archive/v$pkgver.tar.gz
|
|
fix-arm-float-abi.patch
|
|
"
|
|
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
build() {
|
|
cd "$builddir"
|
|
# build fix for arm
|
|
export CROSS=" "
|
|
bash ./configure \
|
|
--enable-pic \
|
|
--enable-libs \
|
|
--enable-runtime-cpu-detect \
|
|
--enable-vp8 \
|
|
--enable-vp9 \
|
|
--enable-shared \
|
|
--disable-install-srcs \
|
|
--enable-postproc
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make DIST_DIR="$pkgdir"/usr install
|
|
chmod 644 "$pkgdir"/usr/include/vpx/*.h \
|
|
"$pkgdir"/usr/lib/pkgconfig/*
|
|
chown root:root -R "$pkgdir"
|
|
chmod 755 "$pkgdir"/usr/lib/*
|
|
}
|
|
|
|
utils() {
|
|
pkgdesc="VP8 utilities and tools"
|
|
install -d "$subpkgdir"/usr
|
|
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
|
|
}
|
|
|
|
sha512sums="77477ec7059de1d90f048c10783b4adce463a84c9c828f125686e533f5bc8c9eeab8a1747df5c928e0869ccf855a9af5608199c8c376a75d35659f719ee870ef libvpx-1.8.0.tar.gz
|
|
4eadbc2f4eb68eaff35cf85515aef271d6fd47293a53cba7b7a6e9e0fb71106dfb5ded45b9e9ba83264a91846e4a5fa4db42e39fc3eaff6ac37769e622f90f6c fix-arm-float-abi.patch"
|