Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nco: add variant esmf to replace accelerate and atlas #12978

Merged
merged 1 commit into from
Nov 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 6 additions & 15 deletions science/nco/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PortGroup compilers 1.0
PortGroup github 1.0

github.setup nco nco 5.0.3
revision 1
revision 2
platforms darwin
maintainers {takeshi @tenomoto}
license GPL-3
Expand Down Expand Up @@ -65,14 +65,7 @@ configure.args --disable-dependency-tracking \
--disable-openmp

if {[gcc_variant_isset] || [clang_variant_isset]} {
default_variants +openmp
}

if {[variant_isset atlas]} {
configure.ldflags-append -lsatlas
} else {
default_variants-append +accelerate
configure.ldflags-append -lvecLibFort
default_variants-append +openmp
}

post-destroot {
Expand Down Expand Up @@ -100,12 +93,10 @@ variant mpich description {enable MPI with mpich (currently MPI is not supported
variant openmpi description {enable MPI with openmpi (currently MPI is not supported)} {
}

variant accelerate conflicts atlas description {use Accelerate framework for LAPACK} {
depends_lib-append port:vecLibFort
}

variant atlas conflicts accelerate description {use Atlas for LAPACK} {
depends_lib-append port:atlas
variant esmf description {use ESMF (Earth System Modeling Framework)} {
configure.args-delete --disable-esmf
configure.args-append --enable-esmf
depends_lib-append port:esmf
}

livecheck.type regex
Expand Down