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
|
|
|
|
pkgname=(aom aom-docs)
|
2023-02-09 00:00:11 +00:00
|
|
|
pkgver=3.6.0
|
2021-10-17 23:20:14 +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)
|
|
|
|
license=(BSD custom:PATENTS)
|
|
|
|
depends=(gcc-libs)
|
2021-10-13 00:50:56 +00:00
|
|
|
makedepends=(cmake ninja doxygen yasm)
|
|
|
|
source=(https://storage.googleapis.com/aom-releases/libaom-$pkgver.tar.gz{,.asc})
|
2023-02-09 00:00:11 +00:00
|
|
|
b2sums=('bf97c74f3e59e3cc2431e7b7e3494beffde1b659d1a8f8775b4b47da0c7314b8bf5b9bdf14a9d1d47a8378271f49c9e26676e73509f9e910f1d5a01e79b575bc'
|
2021-10-13 00:50:56 +00:00
|
|
|
'SKIP')
|
|
|
|
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() {
|
2022-09-24 17:54:45 +00:00
|
|
|
# Upstream would like -O3
|
|
|
|
CFLAGS="${CFLAGS/-O2/-O3}"
|
|
|
|
CXXFLAGS="${CXXFLAGS/-O2/-O3}"
|
|
|
|
|
2018-10-03 12:50:16 +00:00
|
|
|
[[ $CARCH != "aarch64" ]] && CONFIG="-DAOM_TARGET_CPU=generic"
|
2022-02-18 00:17:34 +00:00
|
|
|
cmake -S libaom-$pkgver -B build -G Ninja \
|
2018-10-03 12:50:16 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2022-09-24 17:54:45 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=None \
|
2018-10-03 12:50:16 +00:00
|
|
|
-DBUILD_SHARED_LIBS=1 \
|
|
|
|
-DENABLE_TESTS=0 $CONFIG
|
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:
|