aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2022-01-12 02:24:49 +0100
committerLeo <thinkabit.ukim@gmail.com>2022-01-16 19:41:18 +0000
commit0f69849e89ae779d546f84c096bad6837567d543 (patch)
treed3cd9229908398330d7e6d064b1607c16289624c
parent5b98c8097a3dff6a4383d9a6510e6b06f7db5e42 (diff)
downloadaports-0f69849e89ae779d546f84c096bad6837567d543.tar.gz
aports-0f69849e89ae779d546f84c096bad6837567d543.tar.bz2
aports-0f69849e89ae779d546f84c096bad6837567d543.tar.xz
community/aom: build with ninja
-rw-r--r--community/aom/APKBUILD22
1 files changed, 8 insertions, 14 deletions
diff --git a/community/aom/APKBUILD b/community/aom/APKBUILD
index 010e8617dc..e17cf13644 100644
--- a/community/aom/APKBUILD
+++ b/community/aom/APKBUILD
@@ -2,13 +2,13 @@
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=aom
pkgver=3.2.0
-pkgrel=0
+pkgrel=1
pkgdesc="Alliance for Open Media (AOM) AV1 codec SDK"
url="https://aomedia.org/"
arch="all"
license="custom"
options="net !check" # tests require a lot of time
-makedepends="cmake perl python3 yasm"
+makedepends="cmake perl python3 yasm samurai"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://aomedia.googlesource.com/aom/+archive/v$pkgver.tar.gz
fix-stack-size-e53da0b.patch"
@@ -24,40 +24,34 @@ esac
# - CVE-2021-30475
build() {
- mkdir -p build
- cd build
local _neon_opt=
case "$CARCH" in
armhf) _neon_opt="-DENABLE_NEON=OFF" ;;
armv7) _neon_opt="-DAOM_NEON_INTRIN_FLAG=-mfpu=neon" ;;
esac
- cmake .. \
+ cmake -B build -G Ninja \
$_neon_opt \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
- -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS"
- make
+ ninja -C build
}
check() {
- cd build
local _testdata="$builddir"/test_data
mkdir -p $_testdata
export LIBAOM_TEST_DATA_PATH=$_testdata
- make testdata
- make runtests
+ ninja -C build testdata
+ ninja -C build runtests
}
package() {
- cd build
+ DESTDIR="$pkgdir" ninja -C build install
- 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