2020-12-11 01:00:36 +00:00
|
|
|
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
2018-10-03 12:50:16 +00:00
|
|
|
# Contributor: Chocobo1 <chocobo1 AT archlinux DOT net>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - cmake with -DAOM_TARGET_CPU=generic for !AArch64
|
|
|
|
|
2021-04-07 14:09:19 +00:00
|
|
|
pkgbase=aom
|
2023-05-11 18:26:52 +00:00
|
|
|
pkgname=(
|
|
|
|
aom
|
|
|
|
aom-docs
|
|
|
|
)
|
2024-11-18 01:37:50 +00:00
|
|
|
pkgver=3.11.0
|
2024-01-22 01:58:39 +00:00
|
|
|
pkgrel=1
|
2018-10-03 12:50:16 +00:00
|
|
|
pkgdesc="Alliance for Open Media video codec"
|
|
|
|
url="https://aomedia.org/"
|
|
|
|
arch=(x86_64)
|
2024-01-22 01:58:39 +00:00
|
|
|
license=(BSD-3-Clause)
|
2023-05-11 18:26:52 +00:00
|
|
|
depends=(
|
|
|
|
gcc-libs
|
2024-06-11 23:46:08 +00:00
|
|
|
glibc
|
2023-05-11 18:26:52 +00:00
|
|
|
)
|
|
|
|
makedepends=(
|
|
|
|
cmake
|
|
|
|
doxygen
|
|
|
|
ninja
|
|
|
|
yasm
|
|
|
|
)
|
|
|
|
source=(
|
|
|
|
https://storage.googleapis.com/aom-releases/libaom-$pkgver.tar.gz{,.asc}
|
|
|
|
)
|
2024-11-18 01:37:50 +00:00
|
|
|
b2sums=('3fd4cf48c73decc73d95604f2af12b329cbc02975c15232d16fa43366695bf0a7356f3685bccbc34c02f36c903d98100a7a4139659d90308c271e34c4d027019'
|
2021-10-13 00:50:56 +00:00
|
|
|
'SKIP')
|
2023-05-11 18:26:52 +00:00
|
|
|
validpgpkeys=(
|
|
|
|
B002F08B74A148DAA01F7123A48E86DB0B830498 # AOMedia release signing key <av1-discuss@aomedia.org>
|
|
|
|
)
|
2021-04-15 21:53:40 +00:00
|
|
|
|
|
|
|
prepare() {
|
2022-02-18 00:17:34 +00:00
|
|
|
cd libaom-$pkgver
|
2021-04-15 21:53:40 +00:00
|
|
|
}
|
2018-10-03 12:50:16 +00:00
|
|
|
|
|
|
|
build() {
|
2023-05-11 18:26:52 +00:00
|
|
|
[[ $CARCH != "aarch64" ]] && CONFIG="-DAOM_TARGET_CPU=generic"
|
|
|
|
local cmake_options=(
|
2023-12-10 00:17:22 +00:00
|
|
|
# Upstream would like Release, adding -O3 and removing assertions
|
|
|
|
# https://gitlab.archlinux.org/archlinux/packaging/packages/aom/-/issues/1
|
|
|
|
-D CMAKE_BUILD_TYPE=Release
|
|
|
|
|
2023-12-07 13:51:13 +00:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr
|
|
|
|
-D BUILD_SHARED_LIBS=1
|
|
|
|
-D ENABLE_TESTS=0
|
2023-05-11 18:26:52 +00:00
|
|
|
$CONFIG
|
|
|
|
)
|
|
|
|
|
2024-06-11 23:46:08 +00:00
|
|
|
# upstream wants this off
|
|
|
|
CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=0}"
|
|
|
|
CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=0}"
|
|
|
|
|
2023-05-11 18:26:52 +00:00
|
|
|
cmake -S libaom-$pkgver -B build -G Ninja "${cmake_options[@]}"
|
2020-02-22 02:38:07 +00:00
|
|
|
cmake --build build
|
2018-10-03 12:50:16 +00:00
|
|
|
}
|
|
|
|
|
2021-04-07 14:09:19 +00:00
|
|
|
package_aom() {
|
|
|
|
provides=(libaom.so)
|
|
|
|
|
2020-12-11 01:00:36 +00:00
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
2018-10-03 12:50:16 +00:00
|
|
|
|
2022-02-18 00:17:34 +00:00
|
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libaom-$pkgver/{LICENSE,PATENTS}
|
2021-04-07 14:09:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_aom-docs() {
|
|
|
|
pkgdesc+=" (documentation)"
|
|
|
|
depends=()
|
|
|
|
|
2018-10-03 12:50:16 +00:00
|
|
|
mkdir -p "$pkgdir/usr/share/doc"
|
2021-04-15 21:53:40 +00:00
|
|
|
cp -r build/docs/html "$pkgdir/usr/share/doc/$pkgbase"
|
2018-10-03 12:50:16 +00:00
|
|
|
|
2022-02-18 00:17:34 +00:00
|
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libaom-$pkgver/{LICENSE,PATENTS}
|
2018-10-03 12:50:16 +00:00
|
|
|
}
|
|
|
|
|
2022-09-24 17:54:45 +00:00
|
|
|
# vim:set sw=2 sts=-1 et:
|