diff options
-rw-r--r-- | main/aom/APKBUILD | 7 | ||||
-rw-r--r-- | main/aom/posix-implicit.patch | 13 |
2 files changed, 18 insertions, 2 deletions
diff --git a/main/aom/APKBUILD b/main/aom/APKBUILD index 3aec00d530b..c1a97b3af5a 100644 --- a/main/aom/APKBUILD +++ b/main/aom/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Oleg Titov <oleg.titov@gmail.com> pkgname=aom pkgver=3.5.0 -pkgrel=0 +pkgrel=1 pkgdesc="Alliance for Open Media (AOM) AV1 codec SDK" url="https://aomedia.org/" arch="all" @@ -11,7 +11,9 @@ options="!check" # tests run for 5+ hours 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" + fix-stack-size-e53da0b.patch + posix-implicit.patch + " case "$CARCH" in ppc64le) makedepends="$makedepends linux-headers" ;; @@ -66,4 +68,5 @@ unpack() { sha512sums=" 7499b9ee32e8b687edb82f448ebebca214feaa0a58442307483dd98b63f88f51494f15107cea6e2f0ed8b957526ee16905b2b50668b36e9cb4b71f5cb85c982c aom-3.5.0.tar.gz 573a6c9cd1e9c71a0612f750fb1b69ee65ab86364d3aa78ef51b8fb20633c69b97026d0685dedeabb51f31d0dab7c651d1fe5c72e0dc9f14b8ed2704584934a9 fix-stack-size-e53da0b.patch +30cc17c38219e81f92f1f034786d5d4096a0e657c86dfe581f84d18fc201a0e34bd331e98271f92c07e5dc49740e164a983b3316fc57599b98aea2615f7cf107 posix-implicit.patch " diff --git a/main/aom/posix-implicit.patch b/main/aom/posix-implicit.patch new file mode 100644 index 00000000000..6e910b3f732 --- /dev/null +++ b/main/aom/posix-implicit.patch @@ -0,0 +1,13 @@ +https://bugs.gentoo.org/869419 + +POSIX_C_SOURCE is needed for ftello. +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -266,6 +266,7 @@ add_library(aom_rtcd OBJECT ${AOM_RTCD_SOURCES}) + add_dependencies(aom_rtcd aom_version) + + if(ENABLE_EXAMPLES) ++ add_definitions(-D_POSIX_C_SOURCE=200112L) + add_library(aom_encoder_stats OBJECT ${AOM_ENCODER_STATS_SOURCES}) + set(AOM_LIB_TARGETS ${AOM_LIB_TARGETS} aom_encoder_stats) + endif() |