<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5470216bb9a25d5cc488c94634e017a3f5c0c65d">https://github.com/macports/macports-ports/commit/5470216bb9a25d5cc488c94634e017a3f5c0c65d</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 5470216 flac: fix for building with PowerPC
</span>5470216 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 5470216bb9a25d5cc488c94634e017a3f5c0c65d
</span>Author: Thomas BERNARD <miniupnp@free.fr>
AuthorDate: Sun Feb 9 21:52:13 2020 +0100
<span style='display:block; white-space:pre;color:#404040;'> flac: fix for building with PowerPC
</span>---
audio/flac/Portfile | 3 ++-
audio/flac/files/patch-ppc-cpu.c.diff | 31 +++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/audio/flac/Portfile b/audio/flac/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 2fcc98e..39a54a8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/audio/flac/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/audio/flac/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -33,7 +33,8 @@ checksums rmd160 8e5d51781d2cead83f2f0cdd1f28ba4cc641e0e1 \
</span> size 1044472
patchfiles patch-nasm.h.diff \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-build_lib.mk.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-build_lib.mk.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-ppc-cpu.c.diff
</span>
use_autoreconf yes
autoreconf.args -fvi
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/audio/flac/files/patch-ppc-cpu.c.diff b/audio/flac/files/patch-ppc-cpu.c.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..034fd98
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/audio/flac/files/patch-ppc-cpu.c.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,31 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/libFLAC/cpu.c.orig 2018-08-20 10:17:21.000000000 +0200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/libFLAC/cpu.c 2020-02-09 21:39:50.000000000 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -53,7 +53,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define dfprintf(file, format, ...)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if defined FLAC__CPU_PPC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(FLAC__CPU_PPC) && defined(__linux__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/auxv.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -245,11 +245,19 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define PPC_FEATURE2_ARCH_2_07 0x80000000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(__linux__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (getauxval(AT_HWCAP2) & PPC_FEATURE2_ARCH_3_00) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ info->ppc.arch_3_00 = true;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else if (getauxval(AT_HWCAP2) & PPC_FEATURE2_ARCH_2_07) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ info->ppc.arch_2_07 = true;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#elif defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ /* No Mac OS X version runs on PowerPC CPU compatible with Power ISA 2.07 or 3.00 */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ info->ppc.arch_2_07 = false;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ info->ppc.arch_3_00 = false;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#error "please add detection of VSX support for your system here"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ info->ppc.arch_2_07 = false;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ info->ppc.arch_3_00 = false;
</span></pre><pre style='margin:0'>
</pre>