From b4076f9e4f9ef32591385bf53b42d61fc1f7fcc3 Mon Sep 17 00:00:00 2001 From: wen Date: Sat, 28 Nov 2015 07:33:38 +0000 Subject: Import nlopt-2.4.2 as math/nlopt. NLopt is a free/open-source library for nonlinear optimization, providing a common interface for a number of different free optimization outines available online as well as original implementations of various other algorithms. Its features include: - Callable from C, C++, Fortran, Matlab or GNU Octave, Python, GNU Guile, Julia, GNU R, Lua, and OCaml. - A common interface for many different algorithms -- try a different algorithm just by changing one parameter. - Support for large-scale optimization (some algorithms scalable to millions of parameters and thousands of constraints). - Both global and local optimization algorithms. - Algorithms using function values only (derivative-free) and also algorithms exploiting user-supplied gradients. - Algorithms for unconstrained optimization, bound-constrained optimization, and general nonlinear inequality/equality constraints. Reviewed by: wiz@ --- math/nlopt/DESCR | 17 +++++++++++++++++ math/nlopt/Makefile | 20 ++++++++++++++++++++ math/nlopt/PLIST | 7 +++++++ math/nlopt/buildlink3.mk | 13 +++++++++++++ math/nlopt/distinfo | 5 +++++ 5 files changed, 62 insertions(+) create mode 100644 math/nlopt/DESCR create mode 100644 math/nlopt/Makefile create mode 100644 math/nlopt/PLIST create mode 100644 math/nlopt/buildlink3.mk create mode 100644 math/nlopt/distinfo (limited to 'math/nlopt') diff --git a/math/nlopt/DESCR b/math/nlopt/DESCR new file mode 100644 index 00000000000..46ef961116c --- /dev/null +++ b/math/nlopt/DESCR @@ -0,0 +1,17 @@ +NLopt is a free/open-source library for nonlinear optimization, +providing a common interface for a number of different free optimization +outines available online as well as original implementations of various +other algorithms. + +Its features include: +- Callable from C, C++, Fortran, Matlab or GNU Octave, Python, + GNU Guile, Julia, GNU R, Lua, and OCaml. +- A common interface for many different algorithms -- try a different + algorithm just by changing one parameter. +- Support for large-scale optimization (some algorithms scalable to + millions of parameters and thousands of constraints). +- Both global and local optimization algorithms. +- Algorithms using function values only (derivative-free) and also + algorithms exploiting user-supplied gradients. +- Algorithms for unconstrained optimization, bound-constrained + optimization, and general nonlinear inequality/equality constraints. diff --git a/math/nlopt/Makefile b/math/nlopt/Makefile new file mode 100644 index 00000000000..03a6538d347 --- /dev/null +++ b/math/nlopt/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1 2015/11/28 07:33:38 wen Exp $ + +DISTNAME= nlopt-2.4.2 +CATEGORIES= math +MASTER_SITES= http://ab-initio.mit.edu/nlopt/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://ab-initio.mit.edu/nlopt/ +COMMENT= Nonlinear optimization library +LICENSE= gnu-lgpl-v2.1 OR mit + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_TOOLS+= pkg-config +USE_LANGUAGES= c c++ + +PKGCONFIG_OVERRIDE= lib/pkgconfig/nlopt.pc + +.include "../../devel/gmp/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/math/nlopt/PLIST b/math/nlopt/PLIST new file mode 100644 index 00000000000..8e4bd791aa4 --- /dev/null +++ b/math/nlopt/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST,v 1.1 2015/11/28 07:33:38 wen Exp $ +include/nlopt.f +include/nlopt.h +include/nlopt.hpp +lib/libnlopt.la +lib/pkgconfig/nlopt.pc +man/man3/nlopt.3 diff --git a/math/nlopt/buildlink3.mk b/math/nlopt/buildlink3.mk new file mode 100644 index 00000000000..0a31219fcaa --- /dev/null +++ b/math/nlopt/buildlink3.mk @@ -0,0 +1,13 @@ +# $NetBSD: buildlink3.mk,v 1.1 2015/11/28 07:33:38 wen Exp $ + +BUILDLINK_TREE+= nlopt + +.if !defined(NLOPT_BUILDLINK3_MK) +NLOPT_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.nlopt+= nlopt>=2.4.2 +BUILDLINK_ABI_DEPENDS.nlopt+= nlopt>=2.4.2 +BUILDLINK_PKGSRCDIR.nlopt?= ../../math/nlopt +.endif # NLOPT_BUILDLINK3_MK + +BUILDLINK_TREE+= -nlopt diff --git a/math/nlopt/distinfo b/math/nlopt/distinfo new file mode 100644 index 00000000000..4ca07d4be34 --- /dev/null +++ b/math/nlopt/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2015/11/28 07:33:38 wen Exp $ + +SHA1 (nlopt-2.4.2.tar.gz) = 838c399d8fffd7aa56b20231e0d7bd3462ca0226 +RMD160 (nlopt-2.4.2.tar.gz) = 851cdb65ce4de04007df1c038c566d0be8d9917b +Size (nlopt-2.4.2.tar.gz) = 2361992 bytes -- cgit v1.2.3