<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/70bab304a81d5ff8436435bea49497ddef76a63a">https://github.com/macports/macports-ports/commit/70bab304a81d5ff8436435bea49497ddef76a63a</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 70bab304a81d5ff8436435bea49497ddef76a63a
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Sun Apr 28 09:27:44 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> openvdb: fix build on PowerPC
</span>---
graphics/openvdb/Portfile | 20 ++++++++++++++++++--
graphics/openvdb/files/patch-libatomic.diff | 11 +++++++++++
2 files changed, 29 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/openvdb/Portfile b/graphics/openvdb/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a78f1a1f552..38bfe69f7da 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/openvdb/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/openvdb/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -59,7 +59,16 @@ configure.args-append -DUSE_CCACHE=OFF \
</span> -DOPENVDB_ABI_VERSION_NUMBER=[lindex [split ${version} .] 0]
# Enable SIMD compiler flags
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args-append -DOPENVDB_SIMD=AVX
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${configure.build_arch} ni [list ppc ppc64]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DOPENVDB_SIMD=AVX
</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;'>+if {[string match *gcc* ${configure.compiler}] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ && ${configure.build_arch} in [list i386 ppc]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://github.com/AcademySoftwareFoundation/openvdb/issues/1801
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-libatomic.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
# Disable CMake uninstall target
configure.args-append -DOPENVDB_ENABLE_UNINSTALL=OFF
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -249,4 +258,11 @@ foreach s $python_suffixes {
</span> }
default_variants +docs +nanovdb +examples +openexr +jemalloc \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- +utils +png +jpg +alembic
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ +utils +png +jpg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# While alembic builds, it does not work correctly on BE platforms:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/alembic/alembic/issues/449
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${configure.build_arch} ni [list ppc ppc64]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ +alembic
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/openvdb/files/patch-libatomic.diff b/graphics/openvdb/files/patch-libatomic.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..3c7d484a918
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/openvdb/files/patch-libatomic.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- openvdb/openvdb/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ openvdb/openvdb/CMakeLists.txt 2024-04-28 09:18:21.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -250,6 +250,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ list(APPEND OPENVDB_CORE_DEPENDENT_LIBS Boost::headers)
</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;'>++list(APPEND OPENVDB_CORE_DEPENDENT_LIBS atomic)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WIN32)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Boost headers contain #pragma commands on Windows which causes Boost
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # libraries to be linked in automatically. Custom boost installations
</span></pre><pre style='margin:0'>
</pre>