<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/87d78fdc09de09f9d77aab8f463014ffe34bc88d">https://github.com/macports/macports-ports/commit/87d78fdc09de09f9d77aab8f463014ffe34bc88d</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 87d78fdc09de09f9d77aab8f463014ffe34bc88d
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Sun Oct 27 17:26:31 2024 +0800

<span style='display:block; white-space:pre;color:#404040;'>    cubeb: fix build with gcc and on < 10.6
</span>---
 audio/cubeb/Portfile | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/audio/cubeb/Portfile b/audio/cubeb/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index af6825aad48..543e1465edf 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/audio/cubeb/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/audio/cubeb/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -31,4 +31,14 @@ post-fetch {
</span> compiler.cxx_standard   2017
 
 configure.args-append \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                    -DBUILD_TESTS=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DBUILD_TESTS=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DUSE_AUDIOUNIT=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# AudioUnit configure check is wrong: it only verifies the header,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# but the code requires libdispatch and support for blocks.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/mozilla/cubeb/issues/804
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {(${os.platform} eq "darwin" && ${os.major} > 9) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    && [string match *clang* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    configure.args-replace \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DUSE_AUDIOUNIT=OFF -DUSE_AUDIOUNIT=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span></pre><pre style='margin:0'>

</pre>