git: 1eef39b12710 - main - New port: math/cgl-conic: Strategies for conic problems for COIN-OR Cut Generation
Yuri Victorovich
yuri at FreeBSD.org
Wed May 12 19:11:23 UTC 2021
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1eef39b12710beebb61d3e83877ce92b4489844a
commit 1eef39b12710beebb61d3e83877ce92b4489844a
Author: Yuri Victorovich <yuri at FreeBSD.org>
AuthorDate: 2021-05-12 19:03:34 +0000
Commit: Yuri Victorovich <yuri at FreeBSD.org>
CommitDate: 2021-05-12 19:11:15 +0000
New port: math/cgl-conic: Strategies for conic problems for COIN-OR Cut Generation
---
math/Makefile | 1 +
math/cgl-conic/Makefile | 37 ++++++++++++++++++++++
math/cgl-conic/distinfo | 3 ++
.../files/patch-src_CglConicGD1_CglConicGD1Cut.cpp | 14 ++++++++
math/cgl-conic/pkg-descr | 5 +++
math/cgl-conic/pkg-plist | 24 ++++++++++++++
6 files changed, 84 insertions(+)
diff --git a/math/Makefile b/math/Makefile
index 4b05d8282241..b87b99fae4e7 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -183,6 +183,7 @@
SUBDIR += ceres-solver
SUBDIR += cgal
SUBDIR += cgl
+ SUBDIR += cgl-conic
SUBDIR += cglm
SUBDIR += chaco
SUBDIR += chryzodus
diff --git a/math/cgl-conic/Makefile b/math/cgl-conic/Makefile
new file mode 100644
index 000000000000..3090f85222bf
--- /dev/null
+++ b/math/cgl-conic/Makefile
@@ -0,0 +1,37 @@
+PORTNAME= cgl-conic
+DISTVERSIONPREFIX= releases/
+DISTVERSION= 1.0.0-6
+DISTVERSIONSUFFIX= -gc96de60
+CATEGORIES= math
+PKGNAMEPREFIX= coin-or-
+
+MAINTAINER= yuri at FreeBSD.org
+COMMENT= Strategies for conic problems for COIN-OR Cut Generation
+
+LICENSE= EPL
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libblas.so:math/blas \
+ libCgl.so:math/cgl \
+ libClp.so:math/clp \
+ libcoinasl.so:math/asl \
+ libCoinUtils.so:math/coinutils \
+ libipopt.so:math/ipopt \
+ liblapack.so:math/lapack \
+ libopenblas.so:math/openblas \
+ libOsiConic.so:math/osi-conic \
+ libOsiIpopt.so:math/osiipopt \
+ libOsi.so:math/osi
+
+USES= gmake libtool pkgconfig
+USE_LDCONFIG= yes
+
+USE_GITHUB= yes
+GH_ACCOUNT= aykutbulut
+GH_PROJECT= CGL-CONIC
+
+GNU_CONFIGURE= yes
+
+INSTALL_TARGET= install-strip
+
+.include <bsd.port.mk>
diff --git a/math/cgl-conic/distinfo b/math/cgl-conic/distinfo
new file mode 100644
index 000000000000..9325cccd5afc
--- /dev/null
+++ b/math/cgl-conic/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1620025112
+SHA256 (aykutbulut-CGL-CONIC-releases-1.0.0-6-gc96de60_GH0.tar.gz) = ccab635dc759cef1eabad3ab376b6b557e7653f3ddc59ac04dfcd250bdd71c3b
+SIZE (aykutbulut-CGL-CONIC-releases-1.0.0-6-gc96de60_GH0.tar.gz) = 407418
diff --git a/math/cgl-conic/files/patch-src_CglConicGD1_CglConicGD1Cut.cpp b/math/cgl-conic/files/patch-src_CglConicGD1_CglConicGD1Cut.cpp
new file mode 100644
index 000000000000..de06514bc20c
--- /dev/null
+++ b/math/cgl-conic/files/patch-src_CglConicGD1_CglConicGD1Cut.cpp
@@ -0,0 +1,14 @@
+- workaround for https://github.com/aykutbulut/CGL-CONIC/issues/5
+
+--- src/CglConicGD1/CglConicGD1Cut.cpp.orig 2021-05-12 18:05:03 UTC
++++ src/CglConicGD1/CglConicGD1Cut.cpp
+@@ -3,6 +3,9 @@
+ #include <vector>
+ #include <numeric>
+
++#define F77_FUNC(name,NAME) name ## _
++#define F77_FUNC_(name,NAME) name
++
+ extern "C" {
+ // blas routines
+ void F77_FUNC(dcopy,DCOPY)(int*, double*, int*, double*, int*);
diff --git a/math/cgl-conic/pkg-descr b/math/cgl-conic/pkg-descr
new file mode 100644
index 000000000000..f92aa66b5e54
--- /dev/null
+++ b/math/cgl-conic/pkg-descr
@@ -0,0 +1,5 @@
+CGL-Conic is library for generation of conic cuts for Mixed Integer Second
+Order Conic Optimization (MISOCO) problems. CGL-Conic can be considered as
+a generalization of COIN-OR's Cut Generation Library (CGL).
+
+WWW: https://github.com/aykutbulut/CGL-CONIC
diff --git a/math/cgl-conic/pkg-plist b/math/cgl-conic/pkg-plist
new file mode 100644
index 000000000000..accc9cd28b12
--- /dev/null
+++ b/math/cgl-conic/pkg-plist
@@ -0,0 +1,24 @@
+include/coin/CglConicConfig.hpp
+include/coin/CglConicCutGenerator.hpp
+include/coin/CglConicGD1.hpp
+include/coin/CglConicGD1Cut.hpp
+include/coin/CglConicGD1Param.hpp
+include/coin/CglConicGD2.hpp
+include/coin/CglConicGD2Param.hpp
+include/coin/CglConicIPM.hpp
+include/coin/CglConicIPMParam.hpp
+include/coin/CglConicIPMint.hpp
+include/coin/CglConicIPMintParam.hpp
+include/coin/CglConicMIR.hpp
+include/coin/CglConicMIRParam.hpp
+include/coin/CglConicOA.hpp
+include/coin/CglConicOAParam.hpp
+include/coin/CglConicParam.hpp
+lib/libCglConic.so
+lib/libCglConic.so.0
+lib/libCglConic.so.0.0.0
+libdata/pkgconfig/cglconic.pc
+share/coin/doc/CglConic/AUTHORS
+share/coin/doc/CglConic/LICENSE
+share/coin/doc/CglConic/README
+share/coin/doc/CglConic/cglconic_addlibs.txt
More information about the dev-commits-ports-all
mailing list