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

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/cc9b82ef7c786d8383444e35c2f626e2054a2c6f">https://github.com/macports/macports-ports/commit/cc9b82ef7c786d8383444e35c2f626e2054a2c6f</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit cc9b82ef7c786d8383444e35c2f626e2054a2c6f
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Sat Jul 18 04:22:04 2020 -0500

<span style='display:block; white-space:pre;color:#404040;'>    wxMaxima: Use the cmake portgroup
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Closes: https://trac.macports.org/ticket/60453
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Also, -I flags go in cppflags, not cxxflags.
</span>---
 math/wxMaxima/Portfile | 24 +++++++++++-------------
 1 file changed, 11 insertions(+), 13 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/wxMaxima/Portfile b/math/wxMaxima/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index bde8e754ec2..e06878ccfbd 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/wxMaxima/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/wxMaxima/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,6 +3,7 @@
</span> PortSystem          1.0
 
 PortGroup           active_variants 1.1
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup           cmake 1.1
</span> PortGroup           wxWidgets 1.0
 PortGroup           github 1.0
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -30,29 +31,26 @@ wxWidgets.use       wxWidgets-3.0
</span> depends_lib-append  port:${wxWidgets.port} \
                     lib:lib/libomp/libomp.dylib:libomp
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# Note: the advantage of path:bin/cmake:cmake over port:cmake is that it also allows e.g. cmake-devel
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Note: the cmake port group seems to have issues with application packages
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_build-append path:bin/cmake:cmake
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> depends_run-append  port:gnuplot \
                     port:maxima
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-use_configure       no
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> post-patch {
     reinplace -W ${worksrcpath} "s|OSX_MACPORTS_PREFIX  *\"${prefix}\"|OSX_MACPORTS_PREFIX \"${prefix}\" // patched by MacPorts|" src/Dirstructure.cpp
     reinplace -W ${worksrcpath} "s|OSX_MACPORTS_PREFER 0|OSX_MACPORTS_PREFER 1 // patched by MacPorts|" src/Dirstructure.cpp
 }
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    system -W ${worksrcpath}       "mkdir ./build"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    system -W ${worksrcpath}/build "cmake -DwxWidgets_CONFIG_EXECUTABLE:FILEPATH=${wxWidgets.wxconfig} -DUSE_CPPCHECK=YES -DUSE_OPENMP=YES -DCMAKE_CXX_FLAGS=-I${prefix}/include/libomp -DOpenMP_CXX_FLAGS='-Xpreprocessor -fopenmp' -DOpenMP_CXX_LIB_NAMES=libomp -DOpenMP_libomp_LIBRARY=${prefix}/lib/libomp/libomp.dylib .."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    system -W ${worksrcpath}/build "cmake -LA ."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    system -W ${worksrcpath}/build "cmake --build ."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cppflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -I${prefix}/include/libomp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args      -DOpenMP_CXX_FLAGS="-Xpreprocessor -fopenmp" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DOpenMP_CXX_LIB_NAMES=libomp \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DOpenMP_libomp_LIBRARY=${prefix}/lib/libomp/libomp.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DUSE_CPPCHECK=YES \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DUSE_OPENMP=YES \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DwxWidgets_CONFIG_EXECUTABLE:FILEPATH=${wxWidgets.wxconfig}
</span> 
 destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    file copy ${worksrcpath}/build/src/wxmaxima.app ${destroot}${applications_dir}/wxMaxima.app
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    copy ${build.dir}/src/wxmaxima.app ${destroot}${applications_dir}/wxMaxima.app
</span> }
 
 notes "
</pre><pre style='margin:0'>

</pre>