diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/coin-or-osi/portfile.cmake | |
Diffstat (limited to 'vcpkg/ports/coin-or-osi/portfile.cmake')
| -rw-r--r-- | vcpkg/ports/coin-or-osi/portfile.cmake | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/vcpkg/ports/coin-or-osi/portfile.cmake b/vcpkg/ports/coin-or-osi/portfile.cmake new file mode 100644 index 0000000..c338eaf --- /dev/null +++ b/vcpkg/ports/coin-or-osi/portfile.cmake @@ -0,0 +1,37 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO coin-or/Osi + REF 2420bb864d039a03e11c579b0c9087adbdaa26db + SHA512 27d501cb513a0570ad83247b6a8e7fc69cdbcd2cbec6c11aea0b5982627e76efa7ea6403e6d97419f6c984553434f088a748a7d8d54c1bf73cdbdfd5bef1f2b0 + PATCHES glpk.patch +) + +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-glpk + --with-lapack + --with-coinutils + --without-netlib + --without-sample + --without-gurobi + --without-xpress + --without-cplex + --without-soplex + --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) |