<pre style='margin:0'>
ra1nb0w (ra1nb0w) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/2a078859575b92fb62ff17bdd0add3dcd1a15ec0">https://github.com/macports/macports-ports/commit/2a078859575b92fb62ff17bdd0add3dcd1a15ec0</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 2a078859575b92fb62ff17bdd0add3dcd1a15ec0
</span>Author: Davide Gerhard <ra1nb0w@macports.org>
AuthorDate: Mon Nov 30 21:09:22 2020 +0100
<span style='display:block; white-space:pre;color:#404040;'> fldigi: add native cpu flags optimization variant
</span>---
science/fldigi/Portfile | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/fldigi/Portfile b/science/fldigi/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e51e4a0ba51..3dc2802036c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/fldigi/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/fldigi/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -47,14 +47,16 @@ if {${os.platform} eq "darwin" && ${os.major} <= 13} {
</span> # We put this into a pre-configure block so it can be evaluated _after_ platform selection.
pre-configure {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # enable optimization (SSE3) on all Intel hardwares
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # enable optimization on all Intel hardwares
</span> if {[variant_isset universal]} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set merger_configure_args(x86_64) configure.args-append --enable-optimizations=sse3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set merger_configure_args(i386) configure.args-append --enable-optimizations=sse3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set merger_configure_args(x86_64) configure.args-append --enable-optimizations=x86-64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set merger_configure_args(i386) configure.args-append --enable-optimizations=i686
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {[variant_isset native]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --enable-optimizations=native
</span> } else {
switch -- ${configure.build_arch} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- x86_64 { configure.args-append --enable-optimizations=sse3 }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- i386 { configure.args-append --enable-optimizations=sse3 }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ x86_64 { configure.args-append --enable-optimizations=x86-64 }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ i386 { configure.args-append --enable-optimizations=i686 }
</span> }
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -86,6 +88,10 @@ variant pulseaudio description {Build fldigi with pulseaudio support} {
</span> port:pulseaudio
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+variant native description {Enable native cpu flags optimization} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # check pre-configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> default_variants-append +bundle
livecheck.type regex
</pre><pre style='margin:0'>
</pre>