<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/8badda607bfad40ee8c82b5d89fcaaa86193858f">https://github.com/macports/macports-ports/commit/8badda607bfad40ee8c82b5d89fcaaa86193858f</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 8badda607bfad40ee8c82b5d89fcaaa86193858f
</span>Author: Sergey Fedorov <barracuda@macos-powerpc.org>
AuthorDate: Fri Jul 19 10:39:37 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> sfcgal: link to libatomic when building with gcc
</span>---
gis/sfcgal/Portfile | 4 ++++
gis/sfcgal/files/patch-atomic.diff | 11 +++++++++++
2 files changed, 15 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gis/sfcgal/Portfile b/gis/sfcgal/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index fb1795806ba..aa11837ecc7 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gis/sfcgal/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gis/sfcgal/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -32,6 +32,10 @@ depends_lib-append port:mpfr \
</span>
compiler.cxx_standard 2017
<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;'>+ patchfiles-append patch-atomic.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> variant examples description {builds examples} {
configure.args-append -DSFCGAL_BUILD_EXAMPLES=ON
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gis/sfcgal/files/patch-atomic.diff b/gis/sfcgal/files/patch-atomic.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..3e44b064b62
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gis/sfcgal/files/patch-atomic.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;'>+--- src/CMakeLists.txt 2023-12-21 21:54:09.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/CMakeLists.txt 2024-07-19 10:35:41.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -57,6 +57,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ target_link_libraries( SFCGAL ${Boost_LIBRARIES} )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++target_link_libraries( SFCGAL atomic )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ( ${Use_precompiled_headers} )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(PCHSupport_FOUND)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Add "-fPIC" for shared library build
</span></pre><pre style='margin:0'>
</pre>