# -*- 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           compilers 1.0
PortGroup           github 1.0
PortGroup           linear_algebra 1.0

github.setup        NanoComp harminv 1.4.2 v
license             GPL-2
categories          science
revision            1
platforms           darwin
maintainers         saabusa.com:Yogesh.Sharma openmaintainer
description         Harmonic inversion solver
long_description    Solve the problem of harmonic inversion: given a discrete-time, finite-length signal that consists of a sum of \
                    finitely-many sinusoids (possibly exponentially decaying) \
                    in a given bandwidth, it determines the frequencies, decay constants, amplitudes, and phases of those sinusoids.
homepage            http://ab-initio.mit.edu/wiki/index.php/Harminv
checksums           rmd160  fcfd0aa598608db47fe16af2500a8094166e544e \
                    sha256  5a9a1bf710972442f065d0d62c62d0c4ec3da4a3696d7160a35602c9470bc7a2 \
                    size    459325
github.tarball_from releases

configure.args-append   --mandir="${prefix}/share/man"

compilers.choose    f77
compilers.setup     require_fortran

pre-configure {
    configure.args-append   --with-blas="${linalglib}"
}

test.run            yes
test.target         check
