aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuri <yuri@FreeBSD.org>2018-06-08 23:51:31 +0800
committeryuri <yuri@FreeBSD.org>2018-06-08 23:51:31 +0800
commit2c38aa617c98812336120f1e7196607b5d1bc97f (patch)
treefc80d18629ecdbb61897ee1048a44bd39fb77c42
parent26b39f0584bf071f7d7d7ed4ea252cd17a9abebe (diff)
downloadfreebsd-ports-gnome-2c38aa617c98812336120f1e7196607b5d1bc97f.tar.gz
freebsd-ports-gnome-2c38aa617c98812336120f1e7196607b5d1bc97f.tar.zst
freebsd-ports-gnome-2c38aa617c98812336120f1e7196607b5d1bc97f.zip
New port: math/ecos: Lightweight conic solver for second-order cone programming
-rw-r--r--math/Makefile1
-rw-r--r--math/ecos/Makefile25
-rw-r--r--math/ecos/distinfo3
-rw-r--r--math/ecos/pkg-descr10
-rw-r--r--math/ecos/pkg-plist14
5 files changed, 53 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index 9a88b392567e..b9ae53ab87c3 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -172,6 +172,7 @@
SUBDIR += drgeo
SUBDIR += dynare
SUBDIR += e
+ SUBDIR += ecos
SUBDIR += edenmath
SUBDIR += eigen2
SUBDIR += eigen3
diff --git a/math/ecos/Makefile b/math/ecos/Makefile
new file mode 100644
index 000000000000..0403172082be
--- /dev/null
+++ b/math/ecos/Makefile
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+PORTNAME= ecos
+DISTVERSIONPREFIX= v
+DISTVERSION= 2.0.6
+CATEGORIES= math
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Lightweight conic solver for second-order cone programming
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+USES= gmake
+USE_GITHUB= yes
+GH_ACCOUNT= embotech
+ALL_TARGET= shared
+USE_LDCONFIG= yes
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/include/ecos
+ ${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/include/ecos
+ ${INSTALL_LIB} ${WRKSRC}/libecos.so ${STAGEDIR}${PREFIX}/lib
+
+.include <bsd.port.mk>
diff --git a/math/ecos/distinfo b/math/ecos/distinfo
new file mode 100644
index 000000000000..e11bd52edc6c
--- /dev/null
+++ b/math/ecos/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1528436129
+SHA256 (embotech-ecos-v2.0.6_GH0.tar.gz) = ffc4b44e813a5c68abd464b638d216f09385d9b6e40cf487ac384289e6a27988
+SIZE (embotech-ecos-v2.0.6_GH0.tar.gz) = 1266378
diff --git a/math/ecos/pkg-descr b/math/ecos/pkg-descr
new file mode 100644
index 000000000000..f9eabb96b492
--- /dev/null
+++ b/math/ecos/pkg-descr
@@ -0,0 +1,10 @@
+ECOS is a numerical software for solving convex second-order cone programs
+(SOCPs) of type:
+
+min c'*x
+s.t. A*x = b
+ G*x <=_K h
+
+where the last inequality is generalized, i.e. h - G*x belongs to the cone K.
+
+WWW: https://github.com/embotech/ecos
diff --git a/math/ecos/pkg-plist b/math/ecos/pkg-plist
new file mode 100644
index 000000000000..ad1c82da6bd2
--- /dev/null
+++ b/math/ecos/pkg-plist
@@ -0,0 +1,14 @@
+include/ecos/cone.h
+include/ecos/ctrlc.h
+include/ecos/data.h
+include/ecos/ecos.h
+include/ecos/ecos_bb.h
+include/ecos/equil.h
+include/ecos/expcone.h
+include/ecos/glblopts.h
+include/ecos/kkt.h
+include/ecos/spla.h
+include/ecos/splamm.h
+include/ecos/timer.h
+include/ecos/wright_omega.h
+lib/libecos.so