# -*- 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        stevengj nlopt 2.11.0 v
github.tarball_from archive
revision            0

categories          math
license             {LGPL-2.1+ MIT}
maintainers         {mps @Schamschula} openmaintainer
description         NLopt is a library for nonlinear local and global optimization
long_description    {*}${description}, for functions with and without gradient \
                    information. It is designed as a simple, unified interface and \
                    packaging of several free/open-source nonlinear optimization \
                    libraries.
homepage            https://nlopt.readthedocs.io/en/latest/

checksums           rmd160  80d8da4c93243a3a85e94a27eb0baf1a43d7c199 \
                    sha256  53e552d83e9294d67db37f0f4a23f15933a9ef698485301a18b98b40004cf0de \
                    size    2065716

set python.version  314
set python.branch   [string index ${python.version} 0].[string range ${python.version} 1 end]

depends_lib         port:python${python.version}

depends_run         port:py${python.version}-numpy

configure.args      -DNLOPT_GUILE=OFF \
                    -DNLOPT_JAVA=OFF \
                    -DNLOPT_OCTAVE=OFF \
                    -DNLOPT_SWIG=OFF \
                    -DPython_EXECUTABLE=${prefix}/bin/python${python.branch}
