# -*- 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           fortran 1.0

github.setup        jacobwilliams nlesolver-fortran 3.0.0
name                fortran-nlesolver
revision            0
categories-append   math
license             BSD
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
description         Nonlinear equation solver with modern Fortran
long_description    Basic Newton–Raphson type nonlinear equation solver \
                    for dense systems with m functions of n input variables.
checksums           rmd160  f32818df8ae0d7574a83b12d5f16b3f5ab9d3387 \
                    sha256  b3ddc895baeb0b63af6daa2e1dc31aa7285910f199ec385c47a19e453f16bfff \
                    size    39771
github.tarball_from archive

depends_lib-append  port:vecLibFort

build.cmd-append    --link-flag="-L${prefix}/lib -lvecLibFort"

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} LICENSE README.md ${destroot}${docdir}
}

test.run            yes
