git: 9af83886826a - main - New port: math/osiipopt: Conic solver interface for Ipopt
Yuri Victorovich
yuri at FreeBSD.org
Wed May 12 19:11:22 UTC 2021
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=9af83886826add547caae4d7289cb465d7cfc14b
commit 9af83886826add547caae4d7289cb465d7cfc14b
Author: Yuri Victorovich <yuri at FreeBSD.org>
AuthorDate: 2021-05-12 18:59:56 +0000
Commit: Yuri Victorovich <yuri at FreeBSD.org>
CommitDate: 2021-05-12 19:11:15 +0000
New port: math/osiipopt: Conic solver interface for Ipopt
---
math/Makefile | 1 +
math/osiipopt/Makefile | 35 +++++++++++++++++++++++++++++++++++
math/osiipopt/distinfo | 3 +++
math/osiipopt/files/patch-Makefile.in | 13 +++++++++++++
math/osiipopt/pkg-descr | 5 +++++
math/osiipopt/pkg-plist | 8 ++++++++
6 files changed, 65 insertions(+)
diff --git a/math/Makefile b/math/Makefile
index 375417263800..4b05d8282241 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -562,6 +562,7 @@
SUBDIR += orpie
SUBDIR += osi
SUBDIR += osi-conic
+ SUBDIR += osiipopt
SUBDIR += osqp
SUBDIR += p5-AI-DecisionTree
SUBDIR += p5-AI-Genetic
diff --git a/math/osiipopt/Makefile b/math/osiipopt/Makefile
new file mode 100644
index 000000000000..7c634de4ccc7
--- /dev/null
+++ b/math/osiipopt/Makefile
@@ -0,0 +1,35 @@
+PORTNAME= osiipopt
+DISTVERSIONPREFIX= releases/
+DISTVERSION= 0.1-8
+DISTVERSIONSUFFIX= -gc808091
+CATEGORIES= math
+PKGNAMEPREFIX= coin-or-
+
+MAINTAINER= yuri at FreeBSD.org
+COMMENT= Conic solver interface for Ipopt
+
+LICENSE= EPL
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libblas.so:math/blas \
+ libCoinUtils.so:math/coinutils \
+ libipopt.so:math/ipopt \
+ liblapack.so:math/lapack \
+ libopenblas.so:math/openblas \
+ libOsi.so:math/osi \
+ libOsiConic.so:math/osi-conic
+
+USES= gmake libtool pkgconfig
+USE_LDCONFIG= yes
+
+USE_GITHUB= yes
+GH_ACCOUNT= aykutbulut
+GH_PROJECT= OsiIpopt
+
+GNU_CONFIGURE= yes
+
+MAKE_ARGS= FREEBSD_STAGEDIR=${STAGEDIR}
+
+INSTALL_TARGET= install-strip
+
+.include <bsd.port.mk>
diff --git a/math/osiipopt/distinfo b/math/osiipopt/distinfo
new file mode 100644
index 000000000000..998a4051b7a3
--- /dev/null
+++ b/math/osiipopt/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1620838892
+SHA256 (aykutbulut-OsiIpopt-releases-0.1-8-gc808091_GH0.tar.gz) = 90ee6c5dc3bd0a1e1cf86428b321399087a04ced34dff5ce573d8bc41755b4d3
+SIZE (aykutbulut-OsiIpopt-releases-0.1-8-gc808091_GH0.tar.gz) = 403740
diff --git a/math/osiipopt/files/patch-Makefile.in b/math/osiipopt/files/patch-Makefile.in
new file mode 100644
index 000000000000..0613716ba1ed
--- /dev/null
+++ b/math/osiipopt/files/patch-Makefile.in
@@ -0,0 +1,13 @@
+- workaround for https://github.com/aykutbulut/OsiIpopt/issues/1
+
+--- Makefile.in.orig 2021-05-12 17:04:21 UTC
++++ Makefile.in
+@@ -788,7 +788,7 @@ uninstall-info: uninstall-info-recursive
+
+ install-data-hook:
+ @$(mkdir_p) "$(addlibsdir)"
+- at COIN_HAS_PKGCONFIG_TRUE@ PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \
++ at COIN_HAS_PKGCONFIG_TRUE@ PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@:$(FREEBSD_STAGEDIR)$(PREFIX)/lib/pkgconfig \
+ @COIN_HAS_PKGCONFIG_TRUE@ $(PKG_CONFIG) --libs osiipopt > $(addlibsdir)/osiipopt_addlibs.txt
+ @COIN_CXX_IS_CL_TRUE@@COIN_HAS_PKGCONFIG_FALSE@ echo "-libpath:`$(CYGPATH_W) @abs_lib_dir@` libOsiIpopt.lib @OSIIPOPTLIB_LIBS_INSTALLED@" > $(addlibsdir)/osiipopt_addlibs.txt
+ @COIN_CXX_IS_CL_FALSE@@COIN_HAS_PKGCONFIG_FALSE@ echo -L at abs_lib_dir@ -lOsiIpopt @OSIIPOPTLIB_LIBS_INSTALLED@ > $(addlibsdir)/osiipopt_addlibs.txt
diff --git a/math/osiipopt/pkg-descr b/math/osiipopt/pkg-descr
new file mode 100644
index 000000000000..0112e4f000a1
--- /dev/null
+++ b/math/osiipopt/pkg-descr
@@ -0,0 +1,5 @@
+OsiIpopt is a conic solver interface for COIN-OR's Ipopt solver. OsiIpopt
+implements OsiConic interface, which extends Open Solver Interface (OSI) to
+second order conic optimization problems.
+
+WWW: https://github.com/aykutbulut/OsiIpopt
diff --git a/math/osiipopt/pkg-plist b/math/osiipopt/pkg-plist
new file mode 100644
index 000000000000..0542eff9f5bf
--- /dev/null
+++ b/math/osiipopt/pkg-plist
@@ -0,0 +1,8 @@
+include/coin/OsiIpoptConfig.h
+include/coin/OsiIpoptSolverInterface.hpp
+include/coin/OsiIpoptTNLP.hpp
+lib/libOsiIpopt.so
+lib/libOsiIpopt.so.0
+lib/libOsiIpopt.so.0.0.0
+libdata/pkgconfig/osiipopt.pc
+share/coin/doc/OsiIpopt/osiipopt_addlibs.txt
More information about the dev-commits-ports-all
mailing list