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-clp/portfile.cmake | |
Diffstat (limited to 'vcpkg/ports/coin-or-clp/portfile.cmake')
| -rw-r--r-- | vcpkg/ports/coin-or-clp/portfile.cmake | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/vcpkg/ports/coin-or-clp/portfile.cmake b/vcpkg/ports/coin-or-clp/portfile.cmake new file mode 100644 index 0000000..bb994c5 --- /dev/null +++ b/vcpkg/ports/coin-or-clp/portfile.cmake @@ -0,0 +1,39 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO coin-or/Clp + REF 5315ef2e93f5f532a600e16ab604ac439a416e59 + SHA512 78dc8f562e7c1bff3e86c81eda4eda9780a4075921bcdd2338191f37820699baee94eec86b6f63b1b27e5bca7346a2611d669a7cdf3e47e1c032b072ca10bdab + PATCHES dep.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-coinutils + --with-glpk + --with-osi + --without-ositests + --without-sample + --without-netlib + --without-amd + --without-cholmod + --without-mumps + --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") + +vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/coin-or/ClpModel.hpp" "\"glpk.h\"" "\"../glpk.h\"") + +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) |