Import NLopt

NLopt is a library for nonlinear local and global optimization, 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.

Feedback and OK sthen
This commit is contained in:
kn 2018-12-13 09:35:32 +00:00
parent b300219af4
commit a0a878a930
4 changed files with 53 additions and 0 deletions

32
math/nlopt/Makefile Normal file
View File

@ -0,0 +1,32 @@
# $OpenBSD: Makefile,v 1.1.1.1 2018/12/13 09:35:32 kn Exp $
COMMENT = library for nonlinear optimization
V = 2.5.0
GH_ACCOUNT = stevengj
GH_PROJECT = nlopt
GH_TAGNAME = v${V}
SHARED_LIBS = nlopt 0.0 # 0.9
CATEGORIES = math
HOMEPAGE = http://ab-initio.mit.edu/nlopt
MAINTAINER = Klemens Nanni <kn@openbsd.org>
# LGPL 2.1+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB = m
MODULES = devel/cmake
CONFIGURE_ARGS = -DNLOPT_GUILE=OFF \
-DNLOPT_LINK_PYTHON=OFF \
-DNLOPT_MATLAB=OFF \
-DNLOPT_OCTAVE=OFF \
-DNLOPT_PYTHON=OFF \
-DNLOPT_SWIG=OFF
.include <bsd.port.mk>

2
math/nlopt/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (nlopt-2.5.0.tar.gz) = xt16VwH/+K1eu0Wj3I51fmHVJljeORjji6sjPn/TtK4=
SIZE (nlopt-2.5.0.tar.gz) = 2403609

4
math/nlopt/pkg/DESCR Normal file
View File

@ -0,0 +1,4 @@
NLopt is a library for nonlinear local and global optimization, 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.

15
math/nlopt/pkg/PLIST Normal file
View File

@ -0,0 +1,15 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/12/13 09:35:32 kn Exp $
include/nlopt.f
include/nlopt.h
include/nlopt.hpp
lib/cmake/
lib/cmake/nlopt/
lib/cmake/nlopt/NLoptConfig.cmake
lib/cmake/nlopt/NLoptConfigVersion.cmake
lib/cmake/nlopt/NLoptLibraryDepends${MODCMAKE_BUILD_SUFFIX}
lib/cmake/nlopt/NLoptLibraryDepends.cmake
@lib lib/libnlopt.so.${LIBnlopt_VERSION}
lib/pkgconfig/nlopt.pc
@man man/man3/nlopt.3
@man man/man3/nlopt_minimize.3
@man man/man3/nlopt_minimize_constrained.3