Commit e8b3cd0d authored by Oleg Titov's avatar Oleg Titov Committed by Leo
Browse files

testing/aom: new aport

https://aomedia.org/
Alliance for Open Media (AOM) AV1 codec SDK
parent 8d0ed5f2
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=aom
pkgver=0_git20191223
_commit=db8f273c9d83b1e6d602b2d1c4e2f055a6f58acc
pkgrel=0
pkgdesc="Alliance for Open Media (AOM) AV1 codec SDK"
url="https://aomedia.org/"
arch="all"
license="custom"
options="!check" # No test suite from upstream
makedepends="cmake perl python3 yasm"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://aomedia.googlesource.com/aom/+archive/$_commit.tar.gz"
#builddir="$srcdir/$pkgname-$pkgver"
case "$CARCH" in
ppc64le) makedepends="$makedepends linux-headers" ;;
esac
build() {
mkdir -p aom_build
cd aom_build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS"
make
}
package() {
cd aom_build
make DESTDIR="$pkgdir" install
cd "$builddir"
install -Dm 644 -t "$pkgdir"/usr/share/doc/"$pkgname"/ README.md
install -Dm 644 -t "$pkgdir"/usr/share/doc/"$pkgname"/ LICENSE
install -Dm 644 -t "$pkgdir"/usr/share/doc/"$pkgname"/ PATENTS
}
unpack() {
mkdir -p "$builddir"
cd "$builddir"
busybox tar -zxvf "$srcdir/$pkgname-$pkgver.tar.gz" \
-C "$builddir" > /dev/null
}
sha512sums="b85a9d5ad48701bb5c5c1455a24f514fbda75098f8b65565a0aa3fec585473f62e85b2c90c251031847772cab8f9afb7aef8abd9137485fbb72e7aea109c69ea aom-0_git20191223.tar.gz"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment