diff options
author | he <he@pkgsrc.org> | 2021-12-27 10:45:59 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2021-12-27 10:45:59 +0000 |
commit | 45b2e2dac7793a1da45339e6f24ac2b59da066e8 (patch) | |
tree | 93212fa4c6d17b974d87a4bcb174df743dbfb718 /multimedia | |
parent | 8a4411321342c5475d2c8d34ad3e080ede176864 (diff) | |
download | pkgsrc-45b2e2dac7793a1da45339e6f24ac2b59da066e8.tar.gz |
Fix libaom so that it at least builds on NetBSD/powerpc.
No dynamic CPU feature detection so far on NetBSD/powerpc.
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/libaom/distinfo | 3 | ||||
-rw-r--r-- | multimedia/libaom/patches/patch-aom__ports_ppc__cpudetect.c | 25 |
2 files changed, 27 insertions, 1 deletions
diff --git a/multimedia/libaom/distinfo b/multimedia/libaom/distinfo index 58853ef536c..0091dd4b8b5 100644 --- a/multimedia/libaom/distinfo +++ b/multimedia/libaom/distinfo @@ -1,8 +1,9 @@ -$NetBSD: distinfo,v 1.13 2021/11/13 11:27:34 nia Exp $ +$NetBSD: distinfo,v 1.14 2021/12/27 10:45:59 he Exp $ BLAKE2s (libaom-3.2.0.tar.gz) = 0324096a1c955c6db4fa194397280810c36398b51b05833633d621268a88a68c SHA512 (libaom-3.2.0.tar.gz) = 649bebde85c1a42b0c1c3d2d3b7110b999e3ee1c8e76595259e4e75a8b0f3918e23ff7c7e2c313da4d579882f55bf29765bb882570280adc81f3bc1e82f1ee19 Size (libaom-3.2.0.tar.gz) = 4717955 bytes +SHA1 (patch-aom__ports_ppc__cpudetect.c) = 3ee7048d8ab543605f5c14fe7d872c63fde1028e SHA1 (patch-build_cmake_aom__configure.cmake) = 87a8b65cee873f7deff18cd74c140cd7e8c95924 SHA1 (patch-build_cmake_exports.cmake) = be181c5718a5fac75f31bd8e74f214fc8b610ad9 SHA1 (patch-build_cmake_version.cmake) = 1e6b4a1373c0d54cafdc8ad5c153881e41758bd6 diff --git a/multimedia/libaom/patches/patch-aom__ports_ppc__cpudetect.c b/multimedia/libaom/patches/patch-aom__ports_ppc__cpudetect.c new file mode 100644 index 00000000000..149a5a1dda7 --- /dev/null +++ b/multimedia/libaom/patches/patch-aom__ports_ppc__cpudetect.c @@ -0,0 +1,25 @@ +$NetBSD: patch-aom__ports_ppc__cpudetect.c,v 1.1 2021/12/27 10:45:59 he Exp $ + +Make this at least build on NetBSD. +So far no dynamic CPU feature detection on NetBSD. + +--- work/aom_ports/ppc_cpudetect.c.orig 2021-10-14 18:05:43.000000000 +0000 ++++ work/aom_ports/ppc_cpudetect.c +@@ -12,14 +12,16 @@ + #include <fcntl.h> + #include <unistd.h> + #include <stdint.h> ++#if !defined(__NetBSD__) + #include <asm/cputable.h> + #include <linux/auxvec.h> ++#endif + + #include "config/aom_config.h" + + #include "aom_ports/ppc.h" + +-#if CONFIG_RUNTIME_CPU_DETECT ++#if (CONFIG_RUNTIME_CPU_DETECT && !defined(__NetBSD__)) + static int cpu_env_flags(int *flags) { + char *env; + env = getenv("AOM_SIMD_CAPS"); |