aboutsummaryrefslogtreecommitdiff
path: root/math/coinmp
diff options
context:
space:
mode:
Diffstat (limited to 'math/coinmp')
-rw-r--r--math/coinmp/Makefile47
-rw-r--r--math/coinmp/distinfo2
-rw-r--r--math/coinmp/files/patch-Cbc__src__CbcEventHandler.hpp10
-rw-r--r--math/coinmp/files/patch-CoinUtils+src+CoinParam.hpp10
-rw-r--r--math/coinmp/pkg-descr6
-rw-r--r--math/coinmp/pkg-plist255
6 files changed, 330 insertions, 0 deletions
diff --git a/math/coinmp/Makefile b/math/coinmp/Makefile
new file mode 100644
index 000000000000..8c41ec0d7a7a
--- /dev/null
+++ b/math/coinmp/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: CoinMP
+# Date created: 22 June 2011
+# Whom: Pedro Giffuni
+#
+# $FreeBSD$
+#
+
+PORTNAME= CoinMP
+PORTVERSION= 1.4.0
+CATEGORIES= math
+MASTER_SITES= http://www.coin-or.org/download/source/CoinMP/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= giffunip@tutopia.com
+COMMENT= Optimization library with support for most of COIN-OR CLP, CBC and CGL
+
+LICENSE= CPL
+LICENSE_NAME= Common Public License, Version 1.0
+LICENSE_FILE= ${WRKSRC}/CoinMP/LICENSE
+LICENSE_PERMS= auto-accept
+
+CONFLICTS= clp-[0-9]*
+
+GNU_CONFIGURE= yes
+USE_LDCONFIG= yes
+
+.include <bsd.port.pre.mk>
+
+.ifdef WITH_GLPK
+BROKEN = the GLPK option requires math/glpk headers that are not currently installed by that port
+CONFIGURE_ARGS+= --with-gmpl-incdir=${LOCALBASE}/include \
+ --with-gmpl-lib="-L${LOCALBASE}/lib -lglpk"
+LIB_DEPENDS+= glpk:${PORTSDIR}/math/glpk
+.else
+CONFIGURE_ARGS+= --disable-glpk-libcheck
+.endif
+
+CXXFLAGS+= -ffast-math
+.ifndef WITH_DEBUG
+CXXFLAGS+= -fomit-frame-pointer
+.endif
+
+check regression-test test: build
+ @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} \
+ ${MAKE_ARGS} test)
+
+.include <bsd.port.post.mk>
diff --git a/math/coinmp/distinfo b/math/coinmp/distinfo
new file mode 100644
index 000000000000..0a7dcc909c5c
--- /dev/null
+++ b/math/coinmp/distinfo
@@ -0,0 +1,2 @@
+SHA256 (CoinMP-1.4.0.tgz) = 93bc015e4affc31a97be8360238ef1e0a8ea7d3fa8b15627a14f13b8b1d5b032
+SIZE (CoinMP-1.4.0.tgz) = 11087531
diff --git a/math/coinmp/files/patch-Cbc__src__CbcEventHandler.hpp b/math/coinmp/files/patch-Cbc__src__CbcEventHandler.hpp
new file mode 100644
index 000000000000..cb88e0dbbbef
--- /dev/null
+++ b/math/coinmp/files/patch-Cbc__src__CbcEventHandler.hpp
@@ -0,0 +1,10 @@
+--- Cbc/src/CbcEventHandler.hpp.orig 2007-08-10 12:18:20.000000000 -0400
++++ Cbc/src/CbcEventHandler.hpp 2011-07-29 06:16:23.000000000 -0400
+@@ -43,6 +43,7 @@
+ */
+
+ #include <map>
++#include <cstddef>
+
+ /* May well already be declared, but can't hurt. */
+
diff --git a/math/coinmp/files/patch-CoinUtils+src+CoinParam.hpp b/math/coinmp/files/patch-CoinUtils+src+CoinParam.hpp
new file mode 100644
index 000000000000..9e661a50e12c
--- /dev/null
+++ b/math/coinmp/files/patch-CoinUtils+src+CoinParam.hpp
@@ -0,0 +1,10 @@
+--- CoinUtils/src/CoinParam.hpp.orig 2009-08-16 22:33:13.000000000 -0500
++++ CoinUtils/src/CoinParam.hpp 2009-08-16 22:34:23.000000000 -0500
+@@ -12,6 +12,7 @@
+
+ #include <vector>
+ #include <string>
++#include <cstdio>
+
+ /*! \class CoinParam
+ \brief A base class for `keyword value' command line parameters.
diff --git a/math/coinmp/pkg-descr b/math/coinmp/pkg-descr
new file mode 100644
index 000000000000..15d6e187ab05
--- /dev/null
+++ b/math/coinmp/pkg-descr
@@ -0,0 +1,6 @@
+CoinMP is a C-API interface library that supports most of the
+functionality of the CLP (Coin LP), CBC (Coin Branch-and-Cut), and CGL
+(Cut Generation Library) projects. When compiled for Unix it generates a
+CoinMP.so library that can be similarly used in other Unix C/C++ projects.
+
+WWW: https://projects.coin-or.org/CoinMP
diff --git a/math/coinmp/pkg-plist b/math/coinmp/pkg-plist
new file mode 100644
index 000000000000..1baa02c5615a
--- /dev/null
+++ b/math/coinmp/pkg-plist
@@ -0,0 +1,255 @@
+bin/cbc
+bin/clp
+include/coin/CoinAlloc.hpp
+include/coin/CoinUtilsConfig.h
+include/coin/config_coinutils.h
+include/coin/Coin_C_defines.h
+include/coin/CoinBuild.hpp
+include/coin/CoinDenseVector.hpp
+include/coin/CoinDistance.hpp
+include/coin/CoinError.hpp
+include/coin/CoinFactorization.hpp
+include/coin/CoinSimpFactorization.hpp
+include/coin/CoinDenseFactorization.hpp
+include/coin/CoinFileIO.hpp
+include/coin/CoinFinite.hpp
+include/coin/CoinFloatEqual.hpp
+include/coin/CoinHelperFunctions.hpp
+include/coin/CoinIndexedVector.hpp
+include/coin/CoinLpIO.hpp
+include/coin/CoinMessage.hpp
+include/coin/CoinMessageHandler.hpp
+include/coin/CoinModel.hpp
+include/coin/CoinStructuredModel.hpp
+include/coin/CoinModelUseful.hpp
+include/coin/CoinMpsIO.hpp
+include/coin/CoinPackedMatrix.hpp
+include/coin/CoinPackedVector.hpp
+include/coin/CoinPackedVectorBase.hpp
+include/coin/CoinParam.hpp
+include/coin/CoinPragma.hpp
+include/coin/CoinPresolveDoubleton.hpp
+include/coin/CoinPresolveDual.hpp
+include/coin/CoinPresolveDupcol.hpp
+include/coin/CoinPresolveEmpty.hpp
+include/coin/CoinPresolveFixed.hpp
+include/coin/CoinPresolveForcing.hpp
+include/coin/CoinPresolveImpliedFree.hpp
+include/coin/CoinPresolveIsolated.hpp
+include/coin/CoinPresolveMatrix.hpp
+include/coin/CoinPresolvePsdebug.hpp
+include/coin/CoinPresolveSingleton.hpp
+include/coin/CoinPresolveSubst.hpp
+include/coin/CoinPresolveTighten.hpp
+include/coin/CoinPresolveTripleton.hpp
+include/coin/CoinPresolveUseless.hpp
+include/coin/CoinPresolveZeros.hpp
+include/coin/CoinSearchTree.hpp
+include/coin/CoinShallowPackedVector.hpp
+include/coin/CoinSignal.hpp
+include/coin/CoinSmartPtr.hpp
+include/coin/CoinSnapshot.hpp
+include/coin/CoinSort.hpp
+include/coin/CoinTime.hpp
+include/coin/CoinTypes.hpp
+include/coin/CoinUtility.hpp
+include/coin/CoinWarmStart.hpp
+include/coin/CoinWarmStartBasis.hpp
+include/coin/CoinWarmStartVector.hpp
+include/coin/CoinWarmStartDual.hpp
+include/coin/CoinWarmStartPrimalDual.hpp
+include/coin/config_clp.h
+include/coin/ClpConfig.h
+include/coin/Clp_C_Interface.h
+include/coin/ClpCholeskyBase.hpp
+include/coin/ClpCholeskyDense.hpp
+include/coin/ClpCholeskyWssmp.hpp
+include/coin/ClpConstraint.hpp
+include/coin/ClpConstraintLinear.hpp
+include/coin/ClpConstraintQuadratic.hpp
+include/coin/ClpNode.hpp
+include/coin/ClpDualRowDantzig.hpp
+include/coin/ClpDualRowPivot.hpp
+include/coin/ClpDualRowSteepest.hpp
+include/coin/ClpDummyMatrix.hpp
+include/coin/ClpDynamicExampleMatrix.hpp
+include/coin/ClpDynamicMatrix.hpp
+include/coin/ClpEventHandler.hpp
+include/coin/ClpFactorization.hpp
+include/coin/ClpGubDynamicMatrix.hpp
+include/coin/ClpGubMatrix.hpp
+include/coin/ClpInterior.hpp
+include/coin/ClpLinearObjective.hpp
+include/coin/ClpMatrixBase.hpp
+include/coin/ClpMessage.hpp
+include/coin/ClpModel.hpp
+include/coin/ClpNetworkMatrix.hpp
+include/coin/ClpNonLinearCost.hpp
+include/coin/ClpObjective.hpp
+include/coin/ClpPackedMatrix.hpp
+include/coin/ClpPdcoBase.hpp
+include/coin/ClpPlusMinusOneMatrix.hpp
+include/coin/ClpParameters.hpp
+include/coin/ClpPresolve.hpp
+include/coin/ClpPrimalColumnDantzig.hpp
+include/coin/ClpPrimalColumnPivot.hpp
+include/coin/ClpPrimalColumnSteepest.hpp
+include/coin/ClpQuadraticObjective.hpp
+include/coin/ClpSimplex.hpp
+include/coin/ClpSimplexDual.hpp
+include/coin/ClpSimplexNonlinear.hpp
+include/coin/ClpSimplexOther.hpp
+include/coin/ClpSimplexPrimal.hpp
+include/coin/ClpSolve.hpp
+include/coin/CbcOrClpParam.hpp
+include/coin/CbcOrClpParam.cpp
+include/coin/Idiot.hpp
+include/coin/config_osi.h
+include/coin/OsiConfig.h
+include/coin/OsiAuxInfo.hpp
+include/coin/OsiBranchingObject.hpp
+include/coin/OsiChooseVariable.hpp
+include/coin/OsiColCut.hpp
+include/coin/OsiCollections.hpp
+include/coin/OsiCut.hpp
+include/coin/OsiCuts.hpp
+include/coin/OsiOpbdpSolve.hpp
+include/coin/OsiPresolve.hpp
+include/coin/OsiSolverBranch.hpp
+include/coin/OsiSolverInterface.hpp
+include/coin/OsiSolverParameters.hpp
+include/coin/OsiRowCut.hpp
+include/coin/OsiRowCutDebugger.hpp
+include/coin/OsiCbcSolverInterface.hpp
+include/coin/OsiClpParamMap.hpp
+include/coin/OsiClpSolverInterface.hpp
+include/coin/CglClique.hpp
+include/coin/CglMixedIntegerRounding.hpp
+include/coin/CglDuplicateRow.hpp
+include/coin/CglMixedIntegerRounding2.hpp
+include/coin/CglTwomir.hpp
+include/coin/CglKnapsackCover.hpp
+include/coin/CglSimpleRounding.hpp
+include/coin/CglLiftAndProject.hpp
+include/coin/CglFlowCover.hpp
+include/coin/CglPreProcess.hpp
+include/coin/CglLandP.hpp
+include/coin/CglLandPSimplex.hpp
+include/coin/CglLandPValidator.hpp
+include/coin/CglProbing.hpp
+include/coin/CglOddHole.hpp
+include/coin/CglGomory.hpp
+include/coin/CglAllDifferent.hpp
+include/coin/CglResidualCapacity.hpp
+include/coin/CglRedSplit.hpp
+include/coin/CglRedSplitParam.hpp
+include/coin/config_cgl.h
+include/coin/CglConfig.h
+include/coin/CglCutGenerator.hpp
+include/coin/CglMessage.hpp
+include/coin/CglStored.hpp
+include/coin/CglParam.hpp
+include/coin/CglTreeInfo.hpp
+include/coin/config_cbc.h
+include/coin/CbcConfig.h
+include/coin/Cbc_C_Interface.h
+include/coin/CbcBranchActual.hpp
+include/coin/CbcBranchBase.hpp
+include/coin/CbcBranchDynamic.hpp
+include/coin/CbcBranchLotsize.hpp
+include/coin/CbcBranchCut.hpp
+include/coin/CbcCompareActual.hpp
+include/coin/CbcCompareBase.hpp
+include/coin/CbcCutGenerator.hpp
+include/coin/CbcFathom.hpp
+include/coin/CbcEventHandler.hpp
+include/coin/CbcFeasibilityBase.hpp
+include/coin/CbcHeuristic.hpp
+include/coin/CbcHeuristicDive.hpp
+include/coin/CbcHeuristicDiveCoefficient.hpp
+include/coin/CbcHeuristicDiveFractional.hpp
+include/coin/CbcHeuristicDiveGuided.hpp
+include/coin/CbcHeuristicDiveLineSearch.hpp
+include/coin/CbcHeuristicDivePseudoCost.hpp
+include/coin/CbcHeuristicDiveVectorLength.hpp
+include/coin/CbcHeuristicFPump.hpp
+include/coin/CbcHeuristicGreedy.hpp
+include/coin/CbcHeuristicLocal.hpp
+include/coin/CbcHeuristicPivotAndFix.hpp
+include/coin/CbcHeuristicRandRound.hpp
+include/coin/CbcHeuristicRINS.hpp
+include/coin/CbcMessage.hpp
+include/coin/CbcModel.hpp
+include/coin/CbcNode.hpp
+include/coin/CbcStrategy.hpp
+include/coin/CbcSolver.hpp
+include/coin/CbcTree.hpp
+include/coin/CbcLinked.hpp
+include/coin/CbcTreeLocal.hpp
+include/coin/ClpConstraintAmpl.hpp
+include/coin/ClpAmplObjective.hpp
+include/coin/config_coinmp.h
+include/coin/CoinMPConfig.h
+include/coin/CoinMP.h
+@dirrm include/coin
+share/doc/coin/CoinMP/README
+share/doc/coin/CoinMP/AUTHORS
+share/doc/coin/CoinMP/LICENSE
+share/doc/coin/CoinMP/coinmp_addlibs.txt
+share/doc/coin/CoinMP/examples/Makefile
+share/doc/coin/CoinMP/examples/example.c
+@dirrm share/doc/coin/CoinMP/examples
+@dirrm share/doc/coin/CoinMP
+share/doc/coin/Cbc/README
+share/doc/coin/Cbc/AUTHORS
+share/doc/coin/Cbc/LICENSE
+share/doc/coin/Cbc/cbc_addlibs.txt
+@dirrm share/doc/coin/Cbc
+share/doc/coin/Cgl/README
+share/doc/coin/Cgl/AUTHORS
+share/doc/coin/Cgl/LICENSE
+share/doc/coin/Cgl/cgl_addlibs.txt
+@dirrm share/doc/coin/Cgl
+share/doc/coin/Clp/AUTHORS
+share/doc/coin/Clp/LICENSE
+share/doc/coin/Clp/README
+share/doc/coin/Clp/clp_addlibs.txt
+@dirrm share/doc/coin/Clp
+share/doc/coin/CoinUtils/AUTHORS
+share/doc/coin/CoinUtils/LICENSE
+share/doc/coin/CoinUtils/README
+share/doc/coin/CoinUtils/coinutils_addlibs.txt
+@dirrm share/doc/coin/CoinUtils
+share/doc/coin/Osi/README
+share/doc/coin/Osi/AUTHORS
+share/doc/coin/Osi/LICENSE
+share/doc/coin/Osi/osi_addlibs.txt
+@dirrm share/doc/coin/Osi
+@dirrm share/doc/coin
+lib/libCbc.la
+lib/libCbc.so
+lib/libCbc.so.0
+lib/libCbcSolver.la
+lib/libCbcSolver.so
+lib/libCbcSolver.so.0
+lib/libCgl.la
+lib/libCgl.so
+lib/libCgl.so.0
+lib/libClp.la
+lib/libClp.so
+lib/libClp.so.0
+lib/libCoinMP.la
+lib/libCoinMP.so
+lib/libCoinMP.so.0
+lib/libCoinUtils.la
+lib/libCoinUtils.so
+lib/libCoinUtils.so.0
+lib/libOsi.la
+lib/libOsi.so
+lib/libOsi.so.0
+lib/libOsiCbc.la
+lib/libOsiCbc.so
+lib/libOsiCbc.so.0
+lib/libOsiClp.la
+lib/libOsiClp.so
+lib/libOsiClp.so.0