<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/99ae19253b4bcb3dfc5dc58eef4ab6f2c4618954">https://github.com/macports/macports-ports/commit/99ae19253b4bcb3dfc5dc58eef4ab6f2c4618954</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 99ae19253b4 netgen: fix build on old macOS
</span>99ae19253b4 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 99ae19253b4bcb3dfc5dc58eef4ab6f2c4618954
</span>Author: Kirill A. Korinsky <kirill@korins.ky>
AuthorDate: Wed Dec 14 00:25:09 2022 +0100
<span style='display:block; white-space:pre;color:#404040;'> netgen: fix build on old macOS
</span>---
math/netgen/Portfile | 20 +++++++++++++++++++-
math/netgen/files/patch-sized-deallocation.diff | 13 +++++++++++++
2 files changed, 32 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/netgen/Portfile b/math/netgen/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index d9163ff027f..b3bc162f12e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/netgen/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/netgen/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,9 +6,10 @@ PortGroup github 1.0
</span> PortGroup cmake 1.1
PortGroup active_variants 1.1
PortGroup compiler_blacklist_versions 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup legacysupport 1.1
</span>
github.setup NGSolve netgen 6.2.2204 v
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> platforms darwin
categories math
license LGPL-2
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -34,6 +35,13 @@ compiler.blacklist-append {clang < 1000}
</span> compilers.choose cc cxx
compilers.setup
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Enable use of 'macports-libcxx' for macOS 10.14 and earlier, as port uses
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# libcxx features normally only available on 10.15 and later.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+legacysupport.use_mp_libcxx \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+legacysupport.newest_darwin_requires_legacy \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 18
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> patchfiles-append patch-no-external.diff \
patch-no-pybind.diff \
patch-CMakeLists.txt.diff \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -60,6 +68,16 @@ configure.args-append -DUSE_NATIVE_ARCH=OFF \
</span> -DUSE_JPEG=ON \
-DUSE_MPEG=ON
<span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} <= 15} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # No support for sized operator delete
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-sized-deallocation.diff
</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;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # use MacPorts Togl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace {/add_subdirectory.Togl/s/^/#/g} ${worksrcpath}/ng/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> set pythonversions {3.7 3.8 3.9}
set any_python no
foreach pdv ${pythonversions} {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/netgen/files/patch-sized-deallocation.diff b/math/netgen/files/patch-sized-deallocation.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..dd15eb23e59
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/netgen/files/patch-sized-deallocation.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git libsrc/core/CMakeLists.txt libsrc/core/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index ee89b4f6..37a1535c 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- libsrc/core/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ libsrc/core/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -18,7 +18,7 @@ target_compile_options(ngcore PUBLIC "${NG_COMPILE_FLAGS}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Pybind11 2.3 Issue https://github.com/pybind/pybind11/issues/1604
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- target_compile_options(ngcore PUBLIC -fsized-deallocation -faligned-allocation)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ target_compile_options(ngcore PUBLIC -faligned-allocation)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ target_link_libraries(ngcore PUBLIC stdc++fs)
</span></pre><pre style='margin:0'>
</pre>