aboutsummaryrefslogtreecommitdiffstats
path: root/community/aom
diff options
context:
space:
mode:
authorOleg Titov <oleg.titov@gmail.com>2019-12-30 10:15:29 -0600
committerRasmus Thomsen <oss@cogitri.dev>2019-12-30 17:51:05 +0100
commit7ad732d6364b1b1c38575c6b55994762a7f05cce (patch)
treecb4bf4bc148b54e991e244f066ab71647bfbae6a /community/aom
parenta47e956de4896ec3ee053ddbc144568444ac35a0 (diff)
downloadaports-7ad732d6364b1b1c38575c6b55994762a7f05cce.tar.bz2
aports-7ad732d6364b1b1c38575c6b55994762a7f05cce.tar.xz
community/aom: move from testing
Diffstat (limited to 'community/aom')
-rw-r--r--community/aom/APKBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/community/aom/APKBUILD b/community/aom/APKBUILD
new file mode 100644
index 0000000000..674bc506ab
--- /dev/null
+++ b/community/aom/APKBUILD
@@ -0,0 +1,55 @@
+# 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 !armv7 !armhf" # ASM inlining fails on armhf/armv7
+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"