aboutsummaryrefslogtreecommitdiffstats
path: root/community/aom/APKBUILD
blob: cde56c90322aa7eb71f9960676c4712961489a9e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=aom
pkgver=1.0.0
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/v$pkgver-errata1-avif.tar.gz
	force-disable-neon.patch"
#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=None \
		-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="3dcd119b3bef33add39b2d43577ed4a08ea47f9a565bba7119e45f58c21d017457d10dad3fa7bd332a35483d71e4b2d2514ac9e3859f9d5fe5ea9ac9442bca32  aom-1.0.0.tar.gz
f26b5bee6176647bd3e703ca79d2a1930f28a9cfe314efc51679804545b6b3febc88ec92c6dbb564f0f9d957b8935c04d9b9e1bf8b22348374fe326497cd10fc  force-disable-neon.patch"