Files
macports-ports/science/shtools/Portfile
T
2026-03-09 07:06:53 -04:00

63 lines
2.1 KiB
Tcl

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup github 1.0
PortGroup compilers 1.0
name shtools
revision 0
categories science math
license BSD
maintainers {@MarkWieczorek aleeas.com:github.59oty}
description Spherical Harmonic Tools
long_description SHTOOLS is a library of Fortran 95 software that can be \
used to perform spherical harmonic transforms, multitaper \
spectral analyses, expansions of functions into Slepian \
bases, and standard operations on global gravitational \
and magnetic field data. Requires linking with FFTW-3 and \
LAPACK compatible libraries.
homepage https://shtools.github.io/SHTOOLS/index-fortran.html
github.setup SHTOOLS SHTOOLS 4.14.1 v
github.tarball_from releases
checksums sha256 df2085e1408b078009a798db0c7eb13b56968853d8b86e1a963695fcb985bef7 \
rmd160 ba001099621131dab3356d23e3d3d894cb06d7c0 \
size 41581150
use_configure no
compilers.choose f90
compilers.setup default_fortran
# Xcode clang on 10.7 fails: invalid instruction mnemonic 'cvtsi2sdl'
# https://github.com/macports/macports-ports/pull/17193
# https://github.com/william-dawson/NTPoly/issues/192
compiler.blacklist-append \
{clang < 500}
pre-build {
build.args F95=${configure.f90}
}
build.target fortran
variant openmp description {Add OpenMP support} {
use_parallel_build no
build.target-append fortran-mp
}
pre-test {
test.args F95=${configure.f90} \
PREFIX=${prefix} \
LAPACK="-lopenblas" \
BLAS=""
}
test.run yes
test.target fortran-tests-no-timing
destroot.args PREFIX=${prefix}
depends_test [fortran_variant_depends]
depends_lib port:fftw-3 \
path:lib/libopenblas.dylib:OpenBLAS