pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/libaom Fix libaom so that it at least build...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4d5e434f571f
branches:  trunk
changeset: 771810:4d5e434f571f
user:      he <he%pkgsrc.org@localhost>
date:      Mon Dec 27 10:45:59 2021 +0000

description:
Fix libaom so that it at least builds on NetBSD/powerpc.
No dynamic CPU feature detection so far on NetBSD/powerpc.

diffstat:

 multimedia/libaom/distinfo                                  |   3 +-
 multimedia/libaom/patches/patch-aom__ports_ppc__cpudetect.c |  25 +++++++++++++
 2 files changed, 27 insertions(+), 1 deletions(-)

diffs (43 lines):

diff -r 8fd708c59eba -r 4d5e434f571f multimedia/libaom/distinfo
--- a/multimedia/libaom/distinfo        Mon Dec 27 10:18:25 2021 +0000
+++ b/multimedia/libaom/distinfo        Mon Dec 27 10:45:59 2021 +0000
@@ -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 -r 8fd708c59eba -r 4d5e434f571f multimedia/libaom/patches/patch-aom__ports_ppc__cpudetect.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/libaom/patches/patch-aom__ports_ppc__cpudetect.c       Mon Dec 27 10:45:59 2021 +0000
@@ -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");



Home | Main Index | Thread Index | Old Index