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

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/1173486b3ba4c9f84e411905f12fb6e2a2e80e25">https://github.com/macports/macports-ports/commit/1173486b3ba4c9f84e411905f12fb6e2a2e80e25</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 1173486b3ba xvega: fix build on powerpc
</span>1173486b3ba is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 1173486b3ba4c9f84e411905f12fb6e2a2e80e25
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Fri May 24 23:27:53 2024 +0800

<span style='display:block; white-space:pre;color:#404040;'>    xvega: fix build on powerpc
</span>---
 graphics/xvega/Portfile                            | 15 +++++++-
 ...-CMakeLists-fix-optflags-for-PowerPC-case.patch | 42 ++++++++++++++++++++++
 2 files changed, 56 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/xvega/Portfile b/graphics/xvega/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a8c8d73d344..8707edb8012 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/xvega/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/xvega/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -11,7 +11,6 @@ license             BSD
</span> maintainers         {mps @Schamschula} openmaintainer
 description         A C++ API for Vega-Lite
 long_description    {*}${description}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms           darwin
</span> 
 checksums           rmd160  b8d00eec9270c34f3e50a100bc9c77c20fedb760 \
                     sha256  a3ed98314eab2b8fba8c8c283e023584c313d6d5ef5bc67270c45182ac268497 \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,3 +24,17 @@ compiler.cxx_standard \
</span>                     2014
 
 configure.args      -DXVEGA_DISABLE_ARCH_NATIVE=ON
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${configure.build_arch} in [list ppc ppc64]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # # https://github.com/QuantStack/xvega/pull/44
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    0001-CMakeLists-fix-optflags-for-PowerPC-case.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    configure.args-replace \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DXVEGA_DISABLE_ARCH_NATIVE=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DXVEGA_DISABLE_OPT_NATIVE=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # g++-mp-13: error: unrecognized argument in option '-mtune=generic'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DXVEGA_DISABLE_TUNE_GENERIC=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/xvega/files/0001-CMakeLists-fix-optflags-for-PowerPC-case.patch b/graphics/xvega/files/0001-CMakeLists-fix-optflags-for-PowerPC-case.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..11949dc2fe1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/xvega/files/0001-CMakeLists-fix-optflags-for-PowerPC-case.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,42 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From f929eff2d940a553f2eb63a14d029256c0664557 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: barracuda156 <vital.had@gmail.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Fri, 24 May 2024 23:20:24 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] CMakeLists: fix optflags for PowerPC case
</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;'>+ CMakeLists.txt | 12 +++++++++---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 9 insertions(+), 3 deletions(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git CMakeLists.txt CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index c9a5c6a..00e4781 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -39,7 +39,7 @@ message(STATUS "xvega v${${PROJECT_NAME}_VERSION}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Build options
</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;'>+-OPTION(XVEGA_DISABLE_ARCH_NATIVE "disable -march=native flag" OFF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++OPTION(XVEGA_DISABLE_OPT_NATIVE "disable -march=native / -mtune=native flag" OFF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OPTION(XVEGA_DISABLE_TUNE_GENERIC "disable -mtune=generic flag" OFF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OPTION(XVEGA_BUILD_STATIC "Build xvega static library" ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -361,11 +361,17 @@ macro(xvega_set_common_options target_name)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         target_compile_options(${target_name} PUBLIC -Wunused-parameter -Wextra -Wreorder)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         # Mtune generic/native
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-        if (XVEGA_DISABLE_ARCH_NATIVE AND NOT XVEGA_DISABLE_TUNE_GENERIC)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++        if (XVEGA_DISABLE_OPT_NATIVE AND NOT XVEGA_DISABLE_TUNE_GENERIC)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+             target_compile_options(${target_name} PUBLIC -mtune=generic)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         elseif (XVEGA_DISABLE_TUNE_GENERIC)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++            # Do not pass optflags.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         else ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-            target_compile_options(${target_name} PUBLIC -march=native)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++            # PowerPC does not support -march
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++            if (CMAKE_SYSTEM_PROCESSOR MATCHES "ppc|powerpc")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++                target_compile_options(${target_name} PUBLIC -mtune=native)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++            else ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++                target_compile_options(${target_name} PUBLIC -march=native)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++            endif ()
</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;'>+         # C++14 flag
</span></pre><pre style='margin:0'>

</pre>