From 647afda5b2e594cdd3e279cf95ded7b9033fb553 Mon Sep 17 00:00:00 2001 From: riggs Date: Sat, 11 Oct 2014 18:46:41 +0000 Subject: - Initial import of math/nlopt PR: 193262 Submitted by: rhurlin@gwdg.de (maintainer) Reviewed by: koobs, riggs --- math/Makefile | 1 + math/nlopt/Makefile | 34 ++++++++++++++++++++++++++++++++++ math/nlopt/distinfo | 2 ++ math/nlopt/pkg-descr | 18 ++++++++++++++++++ math/nlopt/pkg-plist | 21 +++++++++++++++++++++ 5 files changed, 76 insertions(+) create mode 100644 math/nlopt/Makefile create mode 100644 math/nlopt/distinfo create mode 100644 math/nlopt/pkg-descr create mode 100644 math/nlopt/pkg-plist (limited to 'math') diff --git a/math/Makefile b/math/Makefile index a945ab337fbd..bbc3d3a90d39 100644 --- a/math/Makefile +++ b/math/Makefile @@ -260,6 +260,7 @@ SUBDIR += ndiff SUBDIR += newmat SUBDIR += ngraph + SUBDIR += nlopt SUBDIR += ntl SUBDIR += numdiff SUBDIR += nyh-hoc diff --git a/math/nlopt/Makefile b/math/nlopt/Makefile new file mode 100644 index 000000000000..8c2410b39ffb --- /dev/null +++ b/math/nlopt/Makefile @@ -0,0 +1,34 @@ +# Created by: Rainer Hurling +# $FreeBSD$ + +PORTNAME= nlopt +PORTVERSION= 2.4.2 +CATEGORIES= math +MASTER_SITES= http://ab-initio.mit.edu/nlopt/ + +MAINTAINER= rhurlin@gwdg.de +COMMENT= Nonlinear optimization library + +LICENSE= LGPL21 MIT +LICENSE_COMB= multi +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp \ + libguile.so:${PORTSDIR}/lang/guile +BUILD_DEPENDS= swig2.0:${PORTSDIR}/devel/swig20 \ + ${PYTHON_PKGNAMEPREFIX}numpy>=1.8.1:${PORTSDIR}/math/py-numpy +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.8.1:${PORTSDIR}/math/py-numpy + +CONFIGURE_ARGS= --enable-shared +CONFIGURE_ENV= SWIG="${LOCALBASE}/bin/swig2.0" + +USES= autoreconf compiler:features libtool pathfix \ + pkgconfig python:2 +USE_AUTOTOOLS= libtoolize +USE_LDCONFIG= yes + +PATHFIX_MAKEFILEIN= Makefile.am + +INSTALL_TARGET= install-strip + +.include diff --git a/math/nlopt/distinfo b/math/nlopt/distinfo new file mode 100644 index 000000000000..6fc468c0a303 --- /dev/null +++ b/math/nlopt/distinfo @@ -0,0 +1,2 @@ +SHA256 (nlopt-2.4.2.tar.gz) = 8099633de9d71cbc06cd435da993eb424bbcdbded8f803cdaa9fb8c6e09c8e89 +SIZE (nlopt-2.4.2.tar.gz) = 2361992 diff --git a/math/nlopt/pkg-descr b/math/nlopt/pkg-descr new file mode 100644 index 000000000000..1b577bd79505 --- /dev/null +++ b/math/nlopt/pkg-descr @@ -0,0 +1,18 @@ +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. + +WWW: http://ab-initio.mit.edu/wiki/index.php/NLopt diff --git a/math/nlopt/pkg-plist b/math/nlopt/pkg-plist new file mode 100644 index 000000000000..e88f52a5b210 --- /dev/null +++ b/math/nlopt/pkg-plist @@ -0,0 +1,21 @@ +include/nlopt.f +include/nlopt.h +include/nlopt.hpp +lib/libnlopt.a +lib/libnlopt.so +lib/libnlopt.so.0 +lib/libnlopt.so.0.8.2 +lib/libnlopt_guile.a +lib/libnlopt_guile.so +lib/libnlopt_guile.so.0 +lib/libnlopt_guile.so.0.8.2 +libdata/pkgconfig/nlopt.pc +%%PYTHON_SITELIBDIR%%/_nlopt.a +%%PYTHON_SITELIBDIR%%/_nlopt.so +%%PYTHON_SITELIBDIR%%/_nlopt.so.0 +%%PYTHON_SITELIBDIR%%/_nlopt.so.0.8.2 +%%PYTHON_SITELIBDIR%%/nlopt.py +%%PYTHON_SITELIBDIR%%/nlopt.pyc +%%PYTHON_SITELIBDIR%%/nlopt.pyo +man/man3/nlopt.3.gz +share/guile/site/nlopt.scm -- cgit