aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorriggs <riggs@FreeBSD.org>2014-10-12 02:46:41 +0800
committerriggs <riggs@FreeBSD.org>2014-10-12 02:46:41 +0800
commit647afda5b2e594cdd3e279cf95ded7b9033fb553 (patch)
tree194ca4a94817e175d58cd9a87dae240586757616 /math
parenta2d2b40a924fa07d83c0ae90efae7dcc998ff31a (diff)
downloadfreebsd-ports-gnome-647afda5b2e594cdd3e279cf95ded7b9033fb553.tar.gz
freebsd-ports-gnome-647afda5b2e594cdd3e279cf95ded7b9033fb553.tar.zst
freebsd-ports-gnome-647afda5b2e594cdd3e279cf95ded7b9033fb553.zip
- Initial import of math/nlopt
PR: 193262 Submitted by: rhurlin@gwdg.de (maintainer) Reviewed by: koobs, riggs
Diffstat (limited to 'math')
-rw-r--r--math/Makefile1
-rw-r--r--math/nlopt/Makefile34
-rw-r--r--math/nlopt/distinfo2
-rw-r--r--math/nlopt/pkg-descr18
-rw-r--r--math/nlopt/pkg-plist21
5 files changed, 76 insertions, 0 deletions
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 <rhurlin@gwdg.de>
+# $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 <bsd.port.mk>
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