<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/dbe5bd5e2fb06ad942a722c32990af91b0978c77">https://github.com/macports/macports-ports/commit/dbe5bd5e2fb06ad942a722c32990af91b0978c77</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit dbe5bd5e2fb06ad942a722c32990af91b0978c77
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Sat Nov 11 07:14:07 2017 -0700
<span style='display:block; white-space:pre;color:#404040;'> sundials: enable KLU support from SuiteSparse
</span>---
math/sundials/Portfile | 16 +++++++++++++++-
math/sundials/files/patch-find_klu.diff | 11 +++++++++++
2 files changed, 26 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/sundials/Portfile b/math/sundials/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0f8c4bd..0c9ac3f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/sundials/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/sundials/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,7 +6,7 @@ PortGroup mpi 1.0
</span>
name sundials
version 2.6.2
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span> categories math devel
license bsd
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -32,11 +32,19 @@ checksums rmd160 da6549605b45ad698dfe40a5136b64a7a408d6c6 \
</span>
cmake.out_of_source yes
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# use dynamic libraries for SuiteSparse
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-find_klu.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:SuiteSparse
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> mpi.setup
configure.args-append \
-DCXX_ENABLE=OFF \
-DLAPACK_ENABLE=ON \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DKLU_ENABLE=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DKLU_LIBRARY_DIR=${prefix}/lib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DKLU_INCLUDE_DIR=${prefix}/include \
</span> -DMPI_ENABLE=OFF
pre-configure {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -48,6 +56,12 @@ pre-configure {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# without this, previously installed sundials headers are found first
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# this can cause problem when upgrading
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# see https://cmake.org/cmake/help/latest/variable/CMAKE_INCLUDE_DIRECTORIES_BEFORE.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_INCLUDE_DIRECTORIES_BEFORE=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-destroot {
xinstall -d ${destroot}${prefix}/share/examples
move ${destroot}${prefix}/examples ${destroot}${prefix}/share/examples/${name}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/sundials/files/patch-find_klu.diff b/math/sundials/files/patch-find_klu.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..db3e9a4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/sundials/files/patch-find_klu.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;'>+--- config/FindKLU.cmake.orig 2015-07-30 17:07:24.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ config/FindKLU.cmake 2017-11-10 21:52:03.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -16,7 +16,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF(WIN32)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(POST ".lib" ".dll")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else(WIN32)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(POST ".a" ".so")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(POST ".dylib" ".a" ".so")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif(WIN32)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (KLU_LIBRARY)
</span></pre><pre style='margin:0'>
</pre>