<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b9dbccce898e56482aa17d0359b280f18e18f7d7">https://github.com/macports/macports-ports/commit/b9dbccce898e56482aa17d0359b280f18e18f7d7</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit b9dbccce898e56482aa17d0359b280f18e18f7d7
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Thu Aug 4 18:44:08 2022 +0545
<span style='display:block; white-space:pre;color:#404040;'> libffi: fix build on Rosetta
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes: https://trac.macports.org/ticket/64485
</span>---
devel/libffi/Portfile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libffi/Portfile b/devel/libffi/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 875a96a71da..e77447c4107 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/libffi/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libffi/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -8,7 +8,6 @@ github.setup libffi libffi 3.4.2 v
</span> revision 2
github.tarball_from releases
categories devel
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> license MIT
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -42,6 +41,13 @@ if {${os.platform} eq "darwin" && ${os.major} < 11} {
</span> configure.cxx_stdlib
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Fix for Rosetta: https://trac.macports.org/ticket/64485
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platform darwin {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} == 10 && ${build_arch} eq "ppc"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --build=powerpc-apple-darwin${os.major}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Older versions of cctools have a history of being problematic with complex
# asm like libffi has, so opt for the integrated assembler if it's available
if {[string match *clang* ${configure.compiler}]} {
</pre><pre style='margin:0'>
</pre>