mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
extra/aom to 3.8.0-2
This commit is contained in:
parent
4a5acc39a5
commit
793a6ab607
2 changed files with 6 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
|||
pkgbase = aom
|
||||
pkgdesc = Alliance for Open Media video codec
|
||||
pkgver = 3.8.0
|
||||
pkgrel = 1
|
||||
pkgrel = 2
|
||||
url = https://aomedia.org/
|
||||
arch = x86_64
|
||||
license = BSD
|
||||
|
|
|
@ -10,7 +10,7 @@ pkgname=(
|
|||
aom-docs
|
||||
)
|
||||
pkgver=3.8.0
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Alliance for Open Media video codec"
|
||||
url="https://aomedia.org/"
|
||||
arch=(x86_64)
|
||||
|
@ -43,17 +43,16 @@ prepare() {
|
|||
build() {
|
||||
[[ $CARCH != "aarch64" ]] && CONFIG="-DAOM_TARGET_CPU=generic"
|
||||
local cmake_options=(
|
||||
# Upstream would like Release, adding -O3 and removing assertions
|
||||
# https://gitlab.archlinux.org/archlinux/packaging/packages/aom/-/issues/1
|
||||
-D CMAKE_BUILD_TYPE=Release
|
||||
|
||||
-D CMAKE_INSTALL_PREFIX=/usr
|
||||
-D CMAKE_BUILD_TYPE=None
|
||||
-D BUILD_SHARED_LIBS=1
|
||||
-D ENABLE_TESTS=0
|
||||
$CONFIG
|
||||
)
|
||||
|
||||
# Upstream would like -O3
|
||||
CFLAGS="${CFLAGS/-O2/-O3}"
|
||||
CXXFLAGS="${CXXFLAGS/-O2/-O3}"
|
||||
|
||||
cmake -S libaom-$pkgver -B build -G Ninja "${cmake_options[@]}"
|
||||
cmake --build build
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue