summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorwen <wen@pkgsrc.org>2015-11-28 07:33:38 +0000
committerwen <wen@pkgsrc.org>2015-11-28 07:33:38 +0000
commitb4076f9e4f9ef32591385bf53b42d61fc1f7fcc3 (patch)
treea62e6546b70ae3f2f782acf2ba3a13509b1c7adc /math
parentf76c27214d9bac79d0ceafb9c6fcf6c8478d54ce (diff)
downloadpkgsrc-b4076f9e4f9ef32591385bf53b42d61fc1f7fcc3.tar.gz
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@
Diffstat (limited to 'math')
-rw-r--r--math/nlopt/DESCR17
-rw-r--r--math/nlopt/Makefile20
-rw-r--r--math/nlopt/PLIST7
-rw-r--r--math/nlopt/buildlink3.mk13
-rw-r--r--math/nlopt/distinfo5
5 files changed, 62 insertions, 0 deletions
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