# -*- 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           cmake 1.1
PortGroup           github 1.0

github.setup        devernay cminpack 1.3.11 v
categories          math
license             BSD
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Solving nonlinear equations and nonlinear least squares problems
long_description    A C/C++ rewrite of the MINPACK software (originally in Fortran) \
                    for solving nonlinear equations and nonlinear least squares problems.
checksums           rmd160  50aa8b983fccce5e7510ddd477fac00d80e93f3a \
                    sha256  45675fac0a721a1c7600a91a9842fe1ab313069db163538f2923eaeddb0f46de \
                    size    337521
github.tarball_from archive

configure.args-append \
                    -DBUILD_SHARED_LIBS=ON \
                    -DUSE_BLAS=OFF

notes "
This product includes software developed by the University
of Chicago, as Operator of Argonne National Laboratory.
"

post-destroot {
    xinstall -d ${destroot}${prefix}/share/${name}
    xinstall -m 0644 -W ${worksrcpath} CopyrightMINPACK.txt ${destroot}${prefix}/share/${name}
}

test.run            yes
test.cmd            ctest
