diff options
Diffstat (limited to 'vcpkg/ports/coin-or-cgl')
| -rw-r--r-- | vcpkg/ports/coin-or-cgl/fix-c1083-error.patch | 30 | ||||
| -rw-r--r-- | vcpkg/ports/coin-or-cgl/portfile.cmake | 34 | ||||
| -rw-r--r-- | vcpkg/ports/coin-or-cgl/vcpkg.json | 12 |
3 files changed, 76 insertions, 0 deletions
diff --git a/vcpkg/ports/coin-or-cgl/fix-c1083-error.patch b/vcpkg/ports/coin-or-cgl/fix-c1083-error.patch new file mode 100644 index 0000000..bc5b62a --- /dev/null +++ b/vcpkg/ports/coin-or-cgl/fix-c1083-error.patch @@ -0,0 +1,30 @@ +diff --git a/Cgl/src/CglLandP/CglLandP.cpp b/Cgl/src/CglLandP/CglLandP.cpp
+index 2676790..af90a6e 100644
+--- a/Cgl/src/CglLandP/CglLandP.cpp
++++ b/Cgl/src/CglLandP/CglLandP.cpp
+@@ -22,7 +22,7 @@
+ #define CLONE_SI //Solver is cloned between two cuts
+
+ #include "CoinTime.hpp"
+-#include "CglGomory.hpp"
++#include "CglGomory/CglGomory.hpp"
+ #include "CoinFactorization.hpp"
+ #include <fstream>
+ namespace LAP
+diff --git a/Cgl/src/CglPreProcess/CglPreProcess.cpp b/Cgl/src/CglPreProcess/CglPreProcess.cpp
+index 17cf372..8cb738f 100644
+--- a/Cgl/src/CglPreProcess/CglPreProcess.cpp
++++ b/Cgl/src/CglPreProcess/CglPreProcess.cpp
+@@ -24,9 +24,9 @@
+ #include "CoinHelperFunctions.hpp"
+ #include "CoinWarmStartBasis.hpp"
+
+-#include "CglProbing.hpp"
+-#include "CglDuplicateRow.hpp"
+-#include "CglClique.hpp"
++#include "CglProbing/CglProbing.hpp"
++#include "CglDuplicateRow/CglDuplicateRow.hpp"
++#include "CglClique/CglClique.hpp"
+ //#define PRINT_DEBUG 1
+ //#define COIN_DEVELOP 1
+ #ifdef COIN_DEVELOP
diff --git a/vcpkg/ports/coin-or-cgl/portfile.cmake b/vcpkg/ports/coin-or-cgl/portfile.cmake new file mode 100644 index 0000000..c370100 --- /dev/null +++ b/vcpkg/ports/coin-or-cgl/portfile.cmake @@ -0,0 +1,34 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO coin-or/Cgl + REF 3d7daa62b37e7b3504a372f2c93236052952d0f8 + SHA512 48014a5e5bec23ebda34d97f1c3aeb511271e17dac203258668a94a8004c01b7460ddfd7086b6db911d4e8800b61cf2bdc5a11b597cc22317cfef45364cf20fd +) + +file(COPY "${CURRENT_INSTALLED_DIR}/share/coin-or-buildtools/" DESTINATION "${SOURCE_PATH}") + +set(ENV{ACLOCAL} "aclocal -I \"${SOURCE_PATH}/BuildTools\"") + +vcpkg_configure_make( + SOURCE_PATH "${SOURCE_PATH}" + AUTOCONFIG + OPTIONS + --with-coinutils + --with-osi + # The rest will be pulled in via being available. + # Since there are no features in the other coin-or-* ports + # yet there is no need to control them here. + --without-sample + --without-netlib + --enable-relocatable + --disable-readline +) + +vcpkg_install_make() +vcpkg_copy_pdbs() +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/vcpkg/ports/coin-or-cgl/vcpkg.json b/vcpkg/ports/coin-or-cgl/vcpkg.json new file mode 100644 index 0000000..d87bef3 --- /dev/null +++ b/vcpkg/ports/coin-or-cgl/vcpkg.json @@ -0,0 +1,12 @@ +{ + "name": "coin-or-cgl", + "version-date": "2023-02-01", + "description": "The COIN-OR Cut Generation Library (Cgl) is a collection of cut generators that can be used with other COIN-OR packages that make use of cuts, such as, among others, the linear solver Clp or the mixed integer linear programming solvers Cbc or BCP.", + "homepage": "https://github.com/coin-or/Cgl", + "license": "EPL-2.0", + "dependencies": [ + "coin-or-clp", + "coin-or-osi", + "coinutils" + ] +} |