summaryrefslogtreecommitdiff
path: root/media-libs/libaom
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-05 04:27:10 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-10-05 04:27:10 +0100
commitf3f72d0d5f1ae9ee74acaa63ccb7a247468e73bf (patch)
treee67f56736e141f27487331c26096c4c0a51979a8 /media-libs/libaom
parentfa275aeb316ed5e68498ca0057b27a1e9c887e26 (diff)
gentoo auto-resync : 05:10:2024 - 04:27:09
Diffstat (limited to 'media-libs/libaom')
-rw-r--r--media-libs/libaom/Manifest11
-rw-r--r--media-libs/libaom/files/libaom-3.7.0-big-endian-tests.patch43
-rw-r--r--media-libs/libaom/files/libaom-3.7.0-big-endian.patch130
-rw-r--r--media-libs/libaom/files/libaom-3.9.0-guard-ssse3.patch67
-rw-r--r--media-libs/libaom/libaom-3.5.0.ebuild113
-rw-r--r--media-libs/libaom/libaom-3.7.0-r2.ebuild135
-rw-r--r--media-libs/libaom/libaom-3.9.0.ebuild147
7 files changed, 0 insertions, 646 deletions
diff --git a/media-libs/libaom/Manifest b/media-libs/libaom/Manifest
index 30e0147b11d8..5862f671a852 100644
--- a/media-libs/libaom/Manifest
+++ b/media-libs/libaom/Manifest
@@ -1,23 +1,12 @@
AUX libaom-3.4.0-posix-c-source-ftello.patch 429 BLAKE2B 3e6ff2b95dbf39d2d90a46c9189abf160d3460e247446db4ad0e534bde7f382aeaa4e1457c0a4ddb7cf3c9666fd173efa1955a22fc4d3708a93dcd6b7c160f07 SHA512 30cc17c38219e81f92f1f034786d5d4096a0e657c86dfe581f84d18fc201a0e34bd331e98271f92c07e5dc49740e164a983b3316fc57599b98aea2615f7cf107
AUX libaom-3.7.0-allow-fortify-source.patch 467 BLAKE2B 405f87a6467daae59823eedc9fd7cac959909d5c07df6b4930b55af129750bfd0ed2749b41c6a4fbdb2a8dd49a6881e9de0af526972d27c8c731ce29ab34d1af SHA512 ab69882b8652cb61bdfa14b5fbf5e5cef3344df3aee852f42192af1e935299be1029947a3cb80527362b2db57c93197b889fb45dc562123353b7a3871feaa811
-AUX libaom-3.7.0-big-endian-tests.patch 1611 BLAKE2B 9c0ab0a6a5788fdbc87f30ef5f2a6524521dcf1ec1911544827acb912551c08fcf370c369abfde1567d691a8b814ec897d90819431d7ad091dc247dc7e7396e0 SHA512 299f511b45ba9f1511ab508159f7341ff6ca433118feefd66e96266131588203fc651b4b88be79487b1cbb688c7946dddeeba1b07d88c471da95465e6782fb87
-AUX libaom-3.7.0-big-endian.patch 4168 BLAKE2B 6c9a9ac0933b29b3ee8111d8068dfff144385ae68ebf693a335672c3138cc31ef346486af44b0b0fff9bad58ad72d2335962b78bc82e40b1a7f4a4c9b5d3ca28 SHA512 aebd3f9d16f0cc6a6a0b7a240d5d8cb55d28fc8fe4a00444b26c4b54fed0536ff3577aab5aa624cd9900858770dfdad50f9429d91ee0638058d4be34873e8be6
AUX libaom-3.8.1-tests-parallel.patch 907 BLAKE2B 3c969182fed047b6075ebd0d19f50dfe19028658da42eefc991eaf4ed15736ac95219f5562dc8c04e34849c615fe74a5c940701e274ed7485387092d8d46fb50 SHA512 293924e8732640977c706dcf7fe811f76f093402faa3db8e61d35e32552df889dc63073f004dce4bc4230ceb647f78d0085c9a0099b597b148b9a29fc38f2544
-AUX libaom-3.9.0-guard-ssse3.patch 1570 BLAKE2B 69b5b73ba6ff68b1e5badfcd7cfdf9cc6afeca2838363273852c7757efba448881d042e52be9632c7593cd0992daea439c05da3423a7d31c2abac64fe86723f0 SHA512 5222e5af8a41da106074ed312fb1c35ce7337b43cc6d0ec3e9fbf11fecef2e5f756d64dafa3d5cb6a0d4d31afa9e155b795dfe0db37b891f54ad2d1b409b74a4
AUX libaom-3.9.1-gcc15-cstdint.patch 1173 BLAKE2B a52439c510a54a1af72c56efff47e004ffef6c276aeebc02981b95afeca30dbacaa87baadfb25f2638454ccbc556b023c06814878fcb45a0eaa0c3e5682fdb25 SHA512 396deeaefec8152c4f45a8c788941a30688d2b7d72cb6233902e3b4cdc7d2bb1110fed56219b176a77057dd7231a5deab3c190f261cdf9e194af519fbb71d09a
-DIST libaom-3.5.0.tar.gz 5206715 BLAKE2B d47ddb864c909c972f692667177417daef0350124a096547eacc83ab3630227fe7a23e95f3988a2109c580f9a87ba30a58bcc58be1a2e24fe694eb01655a4861 SHA512 370c529a84d54c95f05c5a3b3edadd1cca95eeccd5a6b5454e574211c6dd9bf5bd33ab67b43587c6de37688fe546ea9e16de0ab2d721e965143b7e8c85db6fd4
-DIST libaom-3.7.0-testdata.tar.xz 374076136 BLAKE2B 17036f37fbb04d59b50e13e5e2258215e99cab4b6f64ac558213009477bc22f43267b60bcbb30ec10325de2aed48b22237b12cd6220f4330e300b62bafedac0b SHA512 c08ef4c9c45f1a27e6c31b8cc9799d8e65d895663a79d7be51da1733be6d8013adaad3a8f1d7491f555a2eea58aead44b9ce935c3e9bb957cb8bbb93f6f4fd98
-DIST libaom-3.7.0.tar.gz 5347924 BLAKE2B 2693d60f5afa810e00ab6aadcf8ca763e328bc64e47b3678eeba9993db89b25cfa0380beeff5a5938f19da74410ce83068c318cff2aea30e5fe39680ac67e937 SHA512 b763a877db26dcaddea5513825900917e55bc131bf78a83f941f1e74b534a514cb599fb64c3ac18a8202ac0a72c511dfef6eeff21dfbe59ed9816887ca3ec5f3
DIST libaom-3.8.1-testdata.tar.xz 426372276 BLAKE2B 4d6194a98612045023f4d35ca851a37ffc69cbfbfd015d5c1f4e3aebb6789096d7b7f82b9641c545e4203b44fe8a9243de83bb23a8c53aced30ec26aed0376e0 SHA512 03bf5d521c613728dd12fd33bb76fc64a20798e276dbdc2501446e1fb9891552e88adb25f0e4ff65d6c8aad301a550aec195498ab1f1a506bce3fe384e24cc0e
DIST libaom-3.8.1.tar.gz 5450909 BLAKE2B fec3123f8ee68b1027a1a2019969c098b730da72be2902274659b983857f2d8f62dae5b563543b3f144ae8bc51b6d6fdd4fcd6aadf2ca04d5a4dd5be987fbbac SHA512 f9ee918a37699cfaf2bcb5aa16a4d8b077feb1fc577d8c5437ed3fa1a1c0a5d734c9564e3c8c0f0b1baf43dc5abb7ff0196a77607b10d926c0be7858778ac1e3
-DIST libaom-3.9.0-testdata.tar.xz 426348008 BLAKE2B 1d95116e738a3271cbb6381cdeb3d2cd359bd3d3001e759e6ed9f56f7f0d87b6a0a557f3655c4c5640e7812cee2e10de5626de70794c6b49fdac51f33d9a1b56 SHA512 b8e68cffa844ac33f3fd7cce8de08e90bc4e401055fa24e58ea6e1217a64db62bd09c469267106b1e82d480550238ac6aaa12c86f75e9fbfd8fa847180b41537
-DIST libaom-3.9.0.tar.gz 5518815 BLAKE2B 4c68b58f6a8e347ee912e309a030804c4a3cc99714e2aaf127add63222df3056c7cf4b6c50f4861557b0892739035149b5e002e25272882eff55cde5d9b745b7 SHA512 0793e0801be72d35144162141a180ff5e3ae11186f734af738b1eb2d81bff1364be7741cc34ae2507d2b88de11f840609a09f8b05b75e8d853aa80626241bf95
DIST libaom-3.9.1-testdata.tar.xz 426413144 BLAKE2B 99fad74bbfabbfd1a7b9a2a3ae72c1c5a4810a70cb6f2df54ad4e29da5afd9278fcc2555f859f51dadab41e1d1829d08ee9efee415ca34d05acd5175caf35205 SHA512 81ce77937264c3a4f6da19dab5cfc4feb559359c154fc00105e6aee6aebb1900e4ecaadd248ba09c5aa266ba0f937451a075338c474ca69a64871d6e6f9c4480
DIST libaom-3.9.1.tar.gz 5524048 BLAKE2B 2f983a4a563e16120aa8937e059f4cd267fb60b6d4148f952f1e664a50b84bc0d8ba7629231b60e4263963d97559a819752a4fa0dcf2427c9f94036716221324 SHA512 d134583c9cc17e0c8e0dec17677a5daca6f42636f3cde83e1b0fc5250f7372f190c125afb845540cd947fb28462cc91b111a69ae4fec51946c3730cacf42c36e
-EBUILD libaom-3.5.0.ebuild 3292 BLAKE2B 3b4681c03dfc7196988c307fea3c6aca874f722be082ef853860a471ad85a42db35e499f541bccf2cd01bcce9e679252f57aedfe0af789bd2e23568cd775c19f SHA512 6ed0b74f3920883ff37a0edf1a00096daed9295583da34e60d228602a0fe627224046c059c5dfd4f486b8ee407ee492756fad0e9fac6a5faaac8c92a9a310a30
-EBUILD libaom-3.7.0-r2.ebuild 4382 BLAKE2B a51a503b0c20d9e193084ac04b2b183de398bc3c28493cfd1c2e26147954b1b904063e6f785b93a1a94e567ef8cdbe930d39b434fa0e18d80679c6cc212ec4e0 SHA512 8a2de72b09b5dcaff7ce21934d59002a44ac59e5a2eeb0ed70b423b611e3caec76037ad934a2acaa5df379077cd3588fd9a4c2e9eb7e0b55330942138805fc56
EBUILD libaom-3.8.1.ebuild 5015 BLAKE2B 561e6364a992a899a7fee70fcc21ec55c682951dbaf8fb49e502c3f593a3ea86a5c17b0c52a3735460dc6a8af5f6776351031a194a2d60b2b5e37d62215c5c9e SHA512 9aacaccc730e10a8d6442733cd142589f11d22071b490dd858a76a905016b9f004474a1bfd5740ea13f6704c470790b4c6cb27e79f28e30106b399f732b4bcd6
-EBUILD libaom-3.9.0.ebuild 4540 BLAKE2B d24aba5ad3754ffa126f77f37157c292dc8d2a2fce555db5fb9ea6fc5096273c3c24ce7b021de0fb4752ed8b2336b1616580b0c3ba8a9c34f11c61fbcfef22e5 SHA512 163f0d4fc42dc35312b05da69569dc42163d1394279fab681e19fb3ceb60bcc1d7c3349971b5504fe453d8766a7dc269f19b1d91b7fa13666a2569f54e6d0084
EBUILD libaom-3.9.1.ebuild 4536 BLAKE2B 824808c3e872db0426e3a651f4d4ee9966d90df3f53a0e7db81acb9d8b9d113d400f59f3d25736a3f29c99551961ef65dde86ef94ed5822f39d1841e06138b47 SHA512 9e1e893ac35613003c6200cb59b0469bdfb5ae4b61613aa1b3a1353f3d743c301d05b9ec135541b0c8224d199b920934d1878dde2597defa25f39cc495c4bf46
EBUILD libaom-9999.ebuild 4514 BLAKE2B a21027df09390d3893b8ea1d7717aebaf1b43ec72d6da81e19678b612da5677b7a414aa8ce92e678a6aa32b3b0c91ba1f723e4c5ed440d5157ee25d0a01d3c59 SHA512 e499d3254f6928353fd9a340daa3a8a74f45d3fffa266a5cf288fe382c674c5c8fc915e15a1f7126f3bc2183b399691b8c699dca78b1b5da2601505c9f464a68
MISC metadata.xml 224 BLAKE2B a8fa831654345ddf74b54f53fdc27d128ff6896378c8aa2dcb27139a4382f63efd0cac17f94ee420932e2855042c94e32fe534c99a977698953aaab4c51c31d0 SHA512 0b59f17151d352f25e3b073a3ee388d0189e1caddf0d97142851a19df433d082e3eead9f5aae07f4beb247861d90f02ae217514d02445703b95ee6ff62d967b8
diff --git a/media-libs/libaom/files/libaom-3.7.0-big-endian-tests.patch b/media-libs/libaom/files/libaom-3.7.0-big-endian-tests.patch
deleted file mode 100644
index 38559c564726..000000000000
--- a/media-libs/libaom/files/libaom-3.7.0-big-endian-tests.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-https://bugs.chromium.org/p/aomedia/issues/detail?id=3487
-https://aomedia.googlesource.com/aom/+/7029529477e1473e6eb7417538cea18edc5e3bd0
-
-From 7029529477e1473e6eb7417538cea18edc5e3bd0 Mon Sep 17 00:00:00 2001
-From: Wan-Teh Chang <wtc@google.com>
-Date: Wed, 13 Sep 2023 10:55:05 -0700
-Subject: [PATCH] Fix big-endian bugs in CodingPathSync tests
-
-Change Serialize() to read uint16_t samples correctly. Although only the
-least significant byte of each sample is nonzero, we cannot assume the
-least significant byte of the c-th sample in `row` is row[c * 2]. That
-is correct only on little-endian systems.
-
-Bug: aomedia:3487
-Change-Id: I9919ce6e3c877608ca7488fe4cc6957bcfe8c4cc
----
- test/coding_path_sync.cc | 10 ++++++----
- 1 file changed, 6 insertions(+), 4 deletions(-)
-
-diff --git a/test/coding_path_sync.cc b/test/coding_path_sync.cc
-index c3e51fd565..31bc2d56b0 100644
---- a/test/coding_path_sync.cc
-+++ b/test/coding_path_sync.cc
-@@ -130,11 +130,13 @@ std::vector<int16_t> Serialize(const aom_image_t *img) {
-
- for (int r = 0; r < h; ++r) {
- for (int c = 0; c < w; ++c) {
-- unsigned char *row = img->planes[plane] + r * img->stride[plane];
-- if (img->fmt & AOM_IMG_FMT_HIGHBITDEPTH)
-- bytes.push_back(row[c * 2]);
-- else
-+ const unsigned char *row = img->planes[plane] + r * img->stride[plane];
-+ if (img->fmt & AOM_IMG_FMT_HIGHBITDEPTH) {
-+ const uint16_t *row16 = reinterpret_cast<const uint16_t *>(row);
-+ bytes.push_back(row16[c]);
-+ } else {
- bytes.push_back(row[c]);
-+ }
- }
- }
- }
---
-2.42.0
diff --git a/media-libs/libaom/files/libaom-3.7.0-big-endian.patch b/media-libs/libaom/files/libaom-3.7.0-big-endian.patch
deleted file mode 100644
index 907e5fd1110e..000000000000
--- a/media-libs/libaom/files/libaom-3.7.0-big-endian.patch
+++ /dev/null
@@ -1,130 +0,0 @@
-https://bugs.chromium.org/p/aomedia/issues/detail?id=3487
-https://aomedia.googlesource.com/aom/+/8b65d76f2f95b1bfdc82b8f135246cb367d444e6%5E%21/
-
-From 8b65d76f2f95b1bfdc82b8f135246cb367d444e6 Mon Sep 17 00:00:00 2001
-From: Wan-Teh Chang <wtc@google.com>
-Date: Tue, 12 Sep 2023 16:38:47 -0700
-Subject: [PATCH] Fix byte order issue in write_enc_data_to_out_buf
-
-Fix the byte order issue for big-endian systems introduced in
-https://aomedia-review.googlesource.com/c/aom/+/167581.
-
-Use the existing HToBE64 macro defined in aom_util/endian_inl.h and
-delete the new get_byteswap64 function from aom_ports/bitops.h.
-
-Based on the patch in bug aomedia:3487.
-
-Bug: aomedia:3487
-Change-Id: I56183e062a9f2b18c4c6158fd8e47c5062de85ee
----
- aom_dsp/entenc.h | 7 ++++---
- aom_ports/bitops.h | 35 +----------------------------------
- 2 files changed, 5 insertions(+), 37 deletions(-)
-
-diff --git a/aom_dsp/entenc.h b/aom_dsp/entenc.h
-index 467e47bf56..d26f027ed0 100644
---- a/aom_dsp/entenc.h
-+++ b/aom_dsp/entenc.h
-@@ -13,7 +13,7 @@
- #define AOM_AOM_DSP_ENTENC_H_
- #include <stddef.h>
- #include "aom_dsp/entcode.h"
--#include "aom_ports/bitops.h"
-+#include "aom_util/endian_inl.h"
-
- #ifdef __cplusplus
- extern "C" {
-@@ -87,13 +87,14 @@ static AOM_INLINE void propagate_carry_bwd(unsigned char *buf, uint32_t offs) {
- } while (carry);
- }
-
--// Reverse byte order and write data to buffer adding the carry-bit
-+// Convert to big-endian byte order and write data to buffer adding the
-+// carry-bit
- static AOM_INLINE void write_enc_data_to_out_buf(unsigned char *out,
- uint32_t offs, uint64_t output,
- uint64_t carry,
- uint32_t *enc_offs,
- uint8_t num_bytes_ready) {
-- const uint64_t reg = get_byteswap64(output) >> ((8 - num_bytes_ready) << 3);
-+ const uint64_t reg = HToBE64(output << ((8 - num_bytes_ready) << 3));
- memcpy(&out[offs], &reg, 8);
- // Propagate carry backwards if exists
- if (carry) {
-diff --git a/aom_ports/bitops.h b/aom_ports/bitops.h
-index 3c5b992bde..7f4c165f5a 100644
---- a/aom_ports/bitops.h
-+++ b/aom_ports/bitops.h
-@@ -13,7 +13,6 @@
- #define AOM_AOM_PORTS_BITOPS_H_
-
- #include <assert.h>
--#include <stdint.h>
-
- #include "aom_ports/msvc.h"
- #include "config/aom_config.h"
-@@ -34,12 +33,8 @@ extern "C" {
- // These versions of get_msb() are only valid when n != 0 because all
- // of the optimized versions are undefined when n == 0:
-
--// get_byteswap64:
--// Returns the number (uint64_t) with byte-positions reversed
--// e.g. input 0x123456789ABCDEF0 returns 0xF0DEBC9A78563412
--
- // GCC compiler: https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html
--// MSVC: https://learn.microsoft.com/en-us/cpp/c-runtime-library/
-+// MSVC: https://learn.microsoft.com/en-us/cpp/intrinsics/compiler-intrinsics
-
- // use GNU builtins where available.
- #if defined(__GNUC__) && \
-@@ -48,10 +43,6 @@ static INLINE int get_msb(unsigned int n) {
- assert(n != 0);
- return 31 ^ __builtin_clz(n);
- }
--
--static INLINE uint64_t get_byteswap64(uint64_t num) {
-- return __builtin_bswap64(num);
--}
- #elif defined(USE_MSC_INTRINSICS)
- #pragma intrinsic(_BitScanReverse)
-
-@@ -61,10 +52,6 @@ static INLINE int get_msb(unsigned int n) {
- _BitScanReverse(&first_set_bit, n);
- return first_set_bit;
- }
--
--static INLINE uint64_t get_byteswap64(uint64_t num) {
-- return _byteswap_uint64(num);
--}
- #undef USE_MSC_INTRINSICS
- #else
- static INLINE int get_msb(unsigned int n) {
-@@ -82,26 +69,6 @@ static INLINE int get_msb(unsigned int n) {
- }
- return log;
- }
--
--static INLINE uint64_t get_byteswap64(uint64_t num) {
-- uint64_t out = 0x00;
-- uint64_t mask = 0xFF00000000000000;
-- int bit_shift = 56; // 7 bytes
-- // 4 ms bytes
-- do {
-- out |= (num & mask) >> bit_shift;
-- mask >>= 8;
-- bit_shift -= 16;
-- } while (bit_shift >= 0);
-- // 4 ls bytes
-- bit_shift = 8; // 1 byte
-- do {
-- out |= (num & mask) << bit_shift;
-- mask >>= 8;
-- bit_shift += 16;
-- } while (bit_shift <= 56);
-- return out;
--}
- #endif
-
- #ifdef __cplusplus
---
-2.42.0
diff --git a/media-libs/libaom/files/libaom-3.9.0-guard-ssse3.patch b/media-libs/libaom/files/libaom-3.9.0-guard-ssse3.patch
deleted file mode 100644
index 40cb17f0a354..000000000000
--- a/media-libs/libaom/files/libaom-3.9.0-guard-ssse3.patch
+++ /dev/null
@@ -1,67 +0,0 @@
-https://bugs.chromium.org/p/aomedia/issues/detail?id=3578#c6
-https://bugs.gentoo.org/933429
-
-From 8670445106036383c1f55c08b1a3283bd0accf7a Mon Sep 17 00:00:00 2001
-From: Wan-Teh Chang <wtc@google.com>
-Date: Mon, 3 Jun 2024 11:13:53 -0700
-Subject: [PATCH] Guard DECLS(ssse3), FNS(ssse3) with #if HAVE_SSSE3
-
-The aom_dsp/x86/variance_sse2.c file is compiled if the ENABLE_SSE2
-cmake option is enabled. The file also contains some SSSE3 code. That
-code should only be compiled if the ENABLE_SSSE3 cmake option is
-enabled.
-
-Bug: aomedia:3578
-Change-Id: I86685862e7da9506bd551b76228cdc9920c68ab1
-(cherry picked from commit afb5237d908bd04ce6ea15eae85db4a54cba289c)
----
- aom_dsp/x86/variance_sse2.c | 8 ++++++++
- 1 file changed, 8 insertions(+)
-
-diff --git a/aom_dsp/x86/variance_sse2.c b/aom_dsp/x86/variance_sse2.c
-index 81b30072a5..e71244f1c7 100644
---- a/aom_dsp/x86/variance_sse2.c
-+++ b/aom_dsp/x86/variance_sse2.c
-@@ -415,7 +415,9 @@ unsigned int aom_mse16x16_sse2(const uint8_t *src, int src_stride,
- DECL(8, opt); \
- DECL(16, opt)
-
-+#if HAVE_SSSE3
- DECLS(ssse3);
-+#endif
- #undef DECLS
- #undef DECL
-
-@@ -491,7 +493,9 @@ DECLS(ssse3);
- FN(4, 4, 4, 2, 2, opt, (int32_t), (int32_t))
- #endif
-
-+#if HAVE_SSSE3
- FNS(ssse3)
-+#endif
-
- #undef FNS
- #undef FN
-@@ -508,7 +512,9 @@ FNS(ssse3)
- DECL(8, opt); \
- DECL(16, opt)
-
-+#if HAVE_SSSE3
- DECLS(ssse3);
-+#endif
- #undef DECL
- #undef DECLS
-
-@@ -588,7 +594,9 @@ DECLS(ssse3);
- FN(4, 4, 4, 2, 2, opt, (uint32_t), (int32_t))
- #endif
-
-+#if HAVE_SSSE3
- FNS(ssse3)
-+#endif
-
- #undef FNS
- #undef FN
---
-2.45.2
-
diff --git a/media-libs/libaom/libaom-3.5.0.ebuild b/media-libs/libaom/libaom-3.5.0.ebuild
deleted file mode 100644
index d00dcbee1d8b..000000000000
--- a/media-libs/libaom/libaom-3.5.0.ebuild
+++ /dev/null
@@ -1,113 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{9..11} )
-inherit cmake-multilib python-any-r1
-
-if [[ ${PV} == *9999* ]]; then
- inherit git-r3
- EGIT_REPO_URI="https://aomedia.googlesource.com/aom"
-else
- SRC_URI="https://storage.googleapis.com/aom-releases/${P}.tar.gz"
- KEYWORDS="~alpha amd64 arm arm64 ~loong ppc64 ~riscv x86"
-fi
-
-DESCRIPTION="Alliance for Open Media AV1 Codec SDK"
-HOMEPAGE="https://aomedia.org https://aomedia.googlesource.com/aom/"
-
-LICENSE="BSD-2"
-SLOT="0/3"
-IUSE="doc +examples test"
-IUSE="${IUSE} cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3"
-IUSE="${IUSE} cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_avx cpu_flags_x86_avx2"
-IUSE="${IUSE} cpu_flags_arm_neon"
-# Tests need more wiring up
-RESTRICT="!test? ( test ) test"
-
-REQUIRED_USE="
- cpu_flags_x86_sse2? ( cpu_flags_x86_mmx )
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse2 )
-"
-
-BDEPEND="${PYTHON_DEPS}
- dev-lang/perl
- abi_x86_32? ( dev-lang/yasm )
- abi_x86_64? ( dev-lang/yasm )
- abi_x86_x32? ( dev-lang/yasm )
- doc? ( app-text/doxygen )
-"
-
-# The PATENTS file is required to be distributed with this package, bug #682214
-DOCS=( PATENTS )
-
-PATCHES=(
- "${FILESDIR}"/${PN}-3.4.0-posix-c-source-ftello.patch
-)
-
-multilib_src_configure() {
- local mycmakeargs=(
- -DENABLE_CCACHE=OFF
- -DENABLE_DOCS=$(multilib_native_usex doc ON OFF)
- -DENABLE_EXAMPLES=$(multilib_native_usex examples ON OFF)
- -DENABLE_NASM=OFF
- -DENABLE_TESTS=$(usex test)
- -DENABLE_TOOLS=ON
- -DENABLE_WERROR=OFF
-
- # Needs libjxl, currently unpackaged.
- -DCONFIG_TUNE_BUTTERAUGLI=0
-
- # neon support is assumed to be always enabled on arm64
- -DENABLE_NEON=$(usex cpu_flags_arm_neon ON $(usex arm64 ON OFF))
- # ENABLE_DSPR2 / ENABLE_MSA for mips
- -DENABLE_MMX=$(usex cpu_flags_x86_mmx ON OFF)
- -DENABLE_SSE=$(usex cpu_flags_x86_sse ON OFF)
- -DENABLE_SSE2=$(usex cpu_flags_x86_sse2 ON OFF)
- -DENABLE_SSE3=$(usex cpu_flags_x86_sse3 ON OFF)
- -DENABLE_SSSE3=$(usex cpu_flags_x86_ssse3 ON OFF)
- -DENABLE_SSE4_1=$(usex cpu_flags_x86_sse4_1 ON OFF)
- -DENABLE_SSE4_2=$(usex cpu_flags_x86_sse4_2 ON OFF)
- -DENABLE_AVX=$(usex cpu_flags_x86_avx ON OFF)
- -DENABLE_AVX2=$(usex cpu_flags_x86_avx2 ON OFF)
- )
-
- # For 32-bit multilib builds, force some intrinsics on to work around
- # bug #816027. libaom seems to do runtime detection for some targets
- # at least, so this isn't an issue.
- if ! multilib_is_native_abi && use amd64 ; then
- mycmakeargs+=(
- -DENABLE_SSE3=ON
- -DENABLE_SSSE3=ON
- )
- fi
-
- # On ARM32-on-ARM64, things end up failing if NEON is off, bug #835456
- # Just force generic, given it's a niche situation.
- # TODO: could try forcing armv7 or similar?
- if use arm && ! use cpu_flags_arm_neon && [[ $(uname -p) == "aarch64" ]] ; then
- ewarn "Forcing generic for arm32-on-arm64 build (bug #835456)"
- mycmakeargs+=(
- -DAOM_TARGET_CPU=generic
- )
- fi
-
- cmake_src_configure
-}
-
-multilib_src_test() {
- "${BUILD_DIR}"/test_libaom || die
-}
-
-multilib_src_install() {
- if multilib_is_native_abi && use doc ; then
- local HTML_DOCS=( "${BUILD_DIR}"/docs/html/. )
- fi
-
- cmake_src_install
-}
-
-multilib_src_install_all() {
- find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete || die
-}
diff --git a/media-libs/libaom/libaom-3.7.0-r2.ebuild b/media-libs/libaom/libaom-3.7.0-r2.ebuild
deleted file mode 100644
index bb0edd72931d..000000000000
--- a/media-libs/libaom/libaom-3.7.0-r2.ebuild
+++ /dev/null
@@ -1,135 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..11} )
-inherit cmake-multilib python-any-r1
-
-if [[ ${PV} == *9999* ]]; then
- inherit git-r3
- EGIT_REPO_URI="https://aomedia.googlesource.com/aom"
-else
- # To update test data tarball, follow these steps:
- # 1. Clone the upstream repo and check out the relevant tag,
- # or download the release tarball
- # 2. Regular cmake configure (options don't matter here):
- # cd build && cmake ..
- # 3. Set LIBAOM_TEST_DATA_PATH to the directory you want and
- # run the "make testdata" target:
- # LIBAOM_TEST_DATA_PATH=../libaom-3.7.0-testdata make testdata
- # This will download the test data from the internet.
- # 4. Create a tarball out of that directory.
- # cd .. && tar cvaf libaom-3.7.0-testdata.tar.xz libaom-3.7.0-testdata
- SRC_URI="
- https://storage.googleapis.com/aom-releases/${P}.tar.gz
- test? ( https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-testdata.tar.xz )
- "
- KEYWORDS="~alpha amd64 arm arm64 ~loong ppc64 ~riscv x86"
-fi
-
-DESCRIPTION="Alliance for Open Media AV1 Codec SDK"
-HOMEPAGE="https://aomedia.org https://aomedia.googlesource.com/aom/"
-
-LICENSE="BSD-2"
-SLOT="0/3"
-IUSE="big-endian doc +examples test"
-IUSE="${IUSE} cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3"
-IUSE="${IUSE} cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_avx cpu_flags_x86_avx2"
-IUSE="${IUSE} cpu_flags_arm_neon cpu_flags_ppc_vsx"
-RESTRICT="!test? ( test )"
-
-REQUIRED_USE="
- cpu_flags_x86_sse2? ( cpu_flags_x86_mmx )
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse2 )
-"
-
-BDEPEND="${PYTHON_DEPS}
- dev-lang/perl
- abi_x86_32? ( dev-lang/yasm )
- abi_x86_64? ( dev-lang/yasm )
- abi_x86_x32? ( dev-lang/yasm )
- doc? ( app-text/doxygen )
-"
-
-# The PATENTS file is required to be distributed with this package, bug #682214
-DOCS=( PATENTS )
-
-PATCHES=(
- "${FILESDIR}"/${PN}-3.4.0-posix-c-source-ftello.patch
- "${FILESDIR}"/${PN}-3.7.0-allow-fortify-source.patch
-
- "${FILESDIR}"/${P}-big-endian.patch
- "${FILESDIR}"/${P}-big-endian-tests.patch
-)
-
-multilib_src_configure() {
- local mycmakeargs=(
- -DENABLE_CCACHE=OFF
- -DENABLE_DOCS=$(multilib_native_usex doc ON OFF)
- -DENABLE_EXAMPLES=$(multilib_native_usex examples ON OFF)
- -DENABLE_NASM=OFF
- -DENABLE_TESTS=$(usex test)
- -DENABLE_TOOLS=ON
- -DENABLE_WERROR=OFF
- # https://bugs.chromium.org/p/aomedia/issues/detail?id=3487 shows
- # that big endian detection doesn't really work otherwise.
- -DCONFIG_BIG_ENDIAN=$(usex big-endian 1 0)
-
- # Needs libjxl, currently unpackaged.
- -DCONFIG_TUNE_BUTTERAUGLI=0
-
- # neon support is assumed to be always enabled on arm64
- -DENABLE_NEON=$(usex cpu_flags_arm_neon ON $(usex arm64 ON OFF))
- # ENABLE_DSPR2 / ENABLE_MSA for mips
- -DENABLE_MMX=$(usex cpu_flags_x86_mmx ON OFF)
- -DENABLE_SSE=$(usex cpu_flags_x86_sse ON OFF)
- -DENABLE_SSE2=$(usex cpu_flags_x86_sse2 ON OFF)
- -DENABLE_SSE3=$(usex cpu_flags_x86_sse3 ON OFF)
- -DENABLE_SSSE3=$(usex cpu_flags_x86_ssse3 ON OFF)
- -DENABLE_SSE4_1=$(usex cpu_flags_x86_sse4_1 ON OFF)
- -DENABLE_SSE4_2=$(usex cpu_flags_x86_sse4_2 ON OFF)
- -DENABLE_AVX=$(usex cpu_flags_x86_avx ON OFF)
- -DENABLE_AVX2=$(usex cpu_flags_x86_avx2 ON OFF)
-
- -DENABLE_VSX=$(usex cpu_flags_ppc_vsx ON OFF)
- )
-
- # For 32-bit multilib builds, force some intrinsics on to work around
- # bug #816027. libaom seems to do runtime detection for some targets
- # at least, so this isn't an issue.
- if ! multilib_is_native_abi && use amd64 ; then
- mycmakeargs+=(
- -DENABLE_SSE3=ON
- -DENABLE_SSSE3=ON
- )
- fi
-
- # On ARM32-on-ARM64, things end up failing if NEON is off, bug #835456
- # Just force generic, given it's a niche situation.
- # TODO: could try forcing armv7 or similar?
- if use arm && ! use cpu_flags_arm_neon && [[ $(uname -p) == "aarch64" ]] ; then
- ewarn "Forcing generic for arm32-on-arm64 build (bug #835456)"
- mycmakeargs+=(
- -DAOM_TARGET_CPU=generic
- )
- fi
-
- cmake_src_configure
-}
-
-multilib_src_test() {
- LIBAOM_TEST_DATA_PATH="${WORKDIR}/${P}-testdata" "${BUILD_DIR}"/test_libaom || die
-}
-
-multilib_src_install() {
- if multilib_is_native_abi && use doc ; then
- local HTML_DOCS=( "${BUILD_DIR}"/docs/html/. )
- fi
-
- cmake_src_install
-}
-
-multilib_src_install_all() {
- find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete || die
-}
diff --git a/media-libs/libaom/libaom-3.9.0.ebuild b/media-libs/libaom/libaom-3.9.0.ebuild
deleted file mode 100644
index a44e3bdd68dd..000000000000
--- a/media-libs/libaom/libaom-3.9.0.ebuild
+++ /dev/null
@@ -1,147 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-inherit cmake-multilib flag-o-matic multiprocessing python-any-r1
-
-if [[ ${PV} == *9999* ]]; then
- inherit git-r3
- EGIT_REPO_URI="https://aomedia.googlesource.com/aom"
-else
- # To update test data tarball,
- # chromium-tools.git/generate-libaom-test-tarball.sh
- SRC_URI="
- https://storage.googleapis.com/aom-releases/${P}.tar.gz
- test? ( https://deps.gentoo.zip/${CATEGORY}/${P}-testdata.tar.xz )
- "
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
-fi
-
-DESCRIPTION="Alliance for Open Media AV1 Codec SDK"
-HOMEPAGE="https://aomedia.org https://aomedia.googlesource.com/aom/"
-
-LICENSE="BSD-2"
-SLOT="0/3"
-IUSE="big-endian debug doc +examples test"
-IUSE="${IUSE} cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3"
-IUSE="${IUSE} cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_avx cpu_flags_x86_avx2"
-IUSE="${IUSE} cpu_flags_arm_crc32 cpu_flags_arm_neon cpu_flags_ppc_vsx"
-RESTRICT="!test? ( test )"
-
-REQUIRED_USE="
- cpu_flags_x86_sse2? ( cpu_flags_x86_mmx )
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse2 )
-"
-
-BDEPEND="${PYTHON_DEPS}
- dev-lang/perl
- abi_x86_32? ( dev-lang/yasm )
- abi_x86_64? ( dev-lang/yasm )
- abi_x86_x32? ( dev-lang/yasm )
- doc? ( app-text/doxygen )
-"
-
-# The PATENTS file is required to be distributed with this package, bug #682214
-DOCS=( PATENTS )
-
-PATCHES=(
- "${FILESDIR}"/${PN}-3.4.0-posix-c-source-ftello.patch
- "${FILESDIR}"/${PN}-3.7.0-allow-fortify-source.patch
- "${FILESDIR}"/${PN}-3.8.1-tests-parallel.patch
- "${FILESDIR}"/libaom-3.9.0-guard-ssse3.patch
-)
-
-multilib_src_configure() {
- # Follow upstream recommendations in README (bug #921438) and avoid
- # asserts during common use (bug #914614).
- append-cppflags $(usex debug '-UNDEBUG' '-DNDEBUG')
-
- local mycmakeargs=(
- -DENABLE_CCACHE=OFF
- -DENABLE_DOCS=$(multilib_native_usex doc ON OFF)
- -DENABLE_EXAMPLES=$(multilib_native_usex examples ON OFF)
- -DENABLE_NASM=OFF
- -DENABLE_TESTS=$(usex test)
- -DENABLE_TOOLS=ON
- -DENABLE_WERROR=OFF
- # https://bugs.chromium.org/p/aomedia/issues/detail?id=3487 shows
- # that big endian detection doesn't really work otherwise.
- -DCONFIG_BIG_ENDIAN=$(usex big-endian 1 0)
-
- # Needs libjxl, currently unpackaged.
- -DCONFIG_TUNE_BUTTERAUGLI=0
-
- # arm
- -DENABLE_NEON=$(usex cpu_flags_arm_neon ON OFF)
- -DENABLE_ARM_CRC32=$(usex cpu_flags_arm_crc32 ON OFF)
- # bug #917277
- -DENABLE_NEON_DOTPROD=OFF
- # bug #917278
- -DENABLE_NEON_I8MM=OFF
- # bug #920474
- -DENABLE_SVE=OFF
-
- # mips
- # ENABLE_DSPR2 / ENABLE_MSA for mips
-
- # amd64
- -DENABLE_MMX=$(usex cpu_flags_x86_mmx ON OFF)
- -DENABLE_SSE=$(usex cpu_flags_x86_sse ON OFF)
- -DENABLE_SSE2=$(usex cpu_flags_x86_sse2 ON OFF)
- -DENABLE_SSE3=$(usex cpu_flags_x86_sse3 ON OFF)
- -DENABLE_SSSE3=$(usex cpu_flags_x86_ssse3 ON OFF)
- -DENABLE_SSE4_1=$(usex cpu_flags_x86_sse4_1 ON OFF)
- -DENABLE_SSE4_2=$(usex cpu_flags_x86_sse4_2 ON OFF)
- -DENABLE_AVX=$(usex cpu_flags_x86_avx ON OFF)
- -DENABLE_AVX2=$(usex cpu_flags_x86_avx2 ON OFF)
-
- # ppc
- -DENABLE_VSX=$(usex cpu_flags_ppc_vsx ON OFF)
- )
-
- # For 32-bit multilib builds, force some intrinsics on to work around
- # bug #816027. libaom seems to do runtime detection for some targets
- # at least, so this isn't an issue.
- if ! multilib_is_native_abi && use amd64 ; then
- mycmakeargs+=(
- -DENABLE_SSE3=ON
- -DENABLE_SSSE3=ON
- )
- fi
-
- # On ARM32-on-ARM64, things end up failing if NEON is off, bug #835456
- # Just force generic, given it's a niche situation.
- # TODO: could try forcing armv7 or similar?
- if use arm && ! use cpu_flags_arm_neon && [[ $(uname -p) == "aarch64" ]] ; then
- ewarn "Forcing generic for arm32-on-arm64 build (bug #835456)"
- mycmakeargs+=(
- -DAOM_TARGET_CPU=generic
- )
- fi
-
- # LIBAOM_TEST_PROCS is added by our tests-parallel.patch
- export LIBAOM_TEST_PROCS="$(makeopts_jobs)"
-
- cmake_src_configure
-}
-
-multilib_src_test() {
- einfo "Running quiet tests which take hours."
- # We use ninja rather than test_libaom directly so we can run it in parallel
- # with sharding, see https://aomedia.googlesource.com/aom/#sharded-testing.
- LIBAOM_TEST_DATA_PATH="${WORKDIR}/${P}-testdata" eninja -C "${BUILD_DIR}" runtests
-}
-
-multilib_src_install() {
- if multilib_is_native_abi && use doc ; then
- local HTML_DOCS=( "${BUILD_DIR}"/docs/html/. )
- fi
-
- cmake_src_install
-}
-
-multilib_src_install_all() {
- find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete || die
-}