# -*- 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.10.1 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  e7a670e593dae388921c6abbe8a03ffbd1449358 \
                    sha256  30d13ce16da119db3e987784f7864e35a562ec62c186352fae55cd003e6c58ff \
                    size    2064973

set python.version  314

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/python3.14
