git: fdf434595805 - main - emulators/mednafen: fix build on powerpc64*

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Fri, 10 May 2024 16:20:25 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fdf434595805724973180480d2ced784563f560d

commit fdf434595805724973180480d2ced784563f560d
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-05-08 22:39:10 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-05-10 16:19:52 +0000

    emulators/mednafen: fix build on powerpc64*
    
    sound/OwlResampler_altivec.inc:35:11: error: use of undeclared identifier 'vec_madd'
---
 emulators/mednafen/files/patch-src_sound_OwlResampler__altivec.inc | 7 +++++++
 .../mednafen/files/patch-src_sound_SwiftResampler__altivec.inc     | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/emulators/mednafen/files/patch-src_sound_OwlResampler__altivec.inc b/emulators/mednafen/files/patch-src_sound_OwlResampler__altivec.inc
new file mode 100644
index 000000000000..cad6e417a854
--- /dev/null
+++ b/emulators/mednafen/files/patch-src_sound_OwlResampler__altivec.inc
@@ -0,0 +1,7 @@
+--- src/sound/OwlResampler_altivec.inc.orig	2024-05-08 15:13:14 UTC
++++ src/sound/OwlResampler_altivec.inc
+@@ -1,3 +1,4 @@
++#include <altivec.h>
+ //
+ //
+ //
diff --git a/emulators/mednafen/files/patch-src_sound_SwiftResampler__altivec.inc b/emulators/mednafen/files/patch-src_sound_SwiftResampler__altivec.inc
new file mode 100644
index 000000000000..85304e9341eb
--- /dev/null
+++ b/emulators/mednafen/files/patch-src_sound_SwiftResampler__altivec.inc
@@ -0,0 +1,7 @@
+--- src/sound/SwiftResampler_altivec.inc.orig	2024-05-08 15:12:59 UTC
++++ src/sound/SwiftResampler_altivec.inc
+@@ -1,3 +1,4 @@
++#include <altivec.h>
+ template<unsigned TA_NumFractBits>
+ static INLINE void DoMAC_AltiVec(const int16 *wave, const int16 *coeffs, int32 count, int32 *accum_output)
+ {