<pre style='margin:0'>
Takeshi Enomoto (tenomoto) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/0cffc58f2a3c958d44f4b13d0209fd9e1359a656">https://github.com/macports/macports-ports/commit/0cffc58f2a3c958d44f4b13d0209fd9e1359a656</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 0cffc58f2a3c958d44f4b13d0209fd9e1359a656
</span>Author: Takeshi Enomoto <takeshi@macports.org>
AuthorDate: Sat Oct 20 16:11:35 2018 +0900
<span style='display:block; white-space:pre;color:#404040;'> nco: enable build on Mojave. add openmp variant
</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/57275
</span>---
science/nco/Portfile | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/nco/Portfile b/science/nco/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1bc1554..2a41b9f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/nco/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/nco/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -12,7 +12,7 @@ categories science
</span> description The netCDF Operators
compilers.choose cc cxx
<span style='display:block; white-space:pre;background:#ffe0e0;'>-compilers.setup -clang
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compilers.setup -clang33 -clang34
</span>
checksums rmd160 5f9a327b430c2ac945ecf5b3e47061f157d50837 \
sha256 ae6cc2363b947bdcd9c06379f1b0cf029a1f97f58a9450d0f68b09b07d5eff90 \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -47,8 +47,7 @@ depends_run port:wget
</span>
configure.env HAVE_ANTLR=yes ANTLR_ROOT=${prefix} \
PATH_TO_NCGEN=${prefix}/bin/ncgen
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.cppflags-append -I/usr/include/malloc \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -I${prefix}/include/udunits2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cppflags-append -I${prefix}/include/udunits2 \
</span> -I${prefix}/include \
-DENABLE_NETCDF4
configure.ldflags-append -lxerces-c
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -60,9 +59,8 @@ configure.args --disable-dependency-tracking \
</span> --disable-esmf \
--disable-openmp
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if [gcc_variant_isset] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-delete --disable-openmp
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append --enable-openmp --disable-ncoxx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[gcc_variant_isset] || [clang_variant_isset]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants +openmp
</span> }
if {[variant_isset atlas]} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -80,6 +78,17 @@ post-destroot {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+variant openmp description {enable support for OpenMP} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-delete --disable-openmp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --enable-openmp --disable-ncoxx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ compiler.whitelist macports-clang-7.0 macports-clang-6.0 macports-clang-5.0 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ macports-clang-4.0 macports-clang-3.9 macports-clang-3.7 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ macports-gcc-8 macports-gcc-7 macports-gcc-6 macports-gcc-5 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ macports-gcc-4.8 macports-gcc-4.7 macports-gcc-4.6 macports-gcc-4.5 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ macports-gcc-4.4 macports-gcc-4.3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ compiler.fallback macports-clang-7.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> variant mpich description {enable MPI with mpich (currently MPI is not supported)} {
}
</pre><pre style='margin:0'>
</pre>