vcpkg/ports/coin-or-cbc/portfile.cmake

40 lines
1.1 KiB
CMake
Raw Normal View History

[coin-or-cbc] Add new port (#31607) * [cbc] Add new port * Add dependencies * [cgl] Update version to rebuild * [cbc] Update CMakeLists.txt [cgl] Revert the version * Update * add version file * adapt to new version * fix dependency name. VCPKG IS NOT CONSISTENT HERE * rename with coinor prefix, as this seems to be the standard. try different approach copied from cgl * accidentally renamed portfile * version??? * forgot add rename * quotes * try autoconf/make * more make changes * try cmake again * ifcase * try make again * really try make * add dependency libs to conf call * randomly copy stuff from other ports * without-miplib3 * try non-release version (after autoconf fixes) as in the other ports. * fix hash * skip autoconf?? * add macro patch * patch format?? * Update dep.patch * patch * weird caching?? * ???????? * sha * superfluous config options * cleanup * vcpkg commands * pkgconf patch for win * disable glpk since I do not plan to add it as a feature for now. * after conutils include * fix version * Update version database * Update ports/coin-or-cbc/portfile.cmake * Update version database * Apply suggestions from code review Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com> * add back AUTOCONFIG * try with autconfig and without configure.ac patch * Update version database * Update version database * cleanup * Update version database * chagne * Update version database --------- Co-authored-by: NancyLi1013 <lirui09@beyondsoft.com> Co-authored-by: Jim Wang (Beyondsoft Corporation) <v-wangjim@microsoft.com> Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>
2023-07-06 03:10:22 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO coin-or/Cbc
2024-06-21 11:21:53 +08:00
REF ca088df34881ef0d58124e53b3d70bfa73e92713
SHA512 9df1242910a42a9b942fd25dbf8a80b6278d75641c93e1218b39695224cf88bdf9d1a2d27e637ebb068b1e8733267a0f16c69b4db9a480e3f6b9cd732afb2d7a
[coin-or-cbc] Add new port (#31607) * [cbc] Add new port * Add dependencies * [cgl] Update version to rebuild * [cbc] Update CMakeLists.txt [cgl] Revert the version * Update * add version file * adapt to new version * fix dependency name. VCPKG IS NOT CONSISTENT HERE * rename with coinor prefix, as this seems to be the standard. try different approach copied from cgl * accidentally renamed portfile * version??? * forgot add rename * quotes * try autoconf/make * more make changes * try cmake again * ifcase * try make again * really try make * add dependency libs to conf call * randomly copy stuff from other ports * without-miplib3 * try non-release version (after autoconf fixes) as in the other ports. * fix hash * skip autoconf?? * add macro patch * patch format?? * Update dep.patch * patch * weird caching?? * ???????? * sha * superfluous config options * cleanup * vcpkg commands * pkgconf patch for win * disable glpk since I do not plan to add it as a feature for now. * after conutils include * fix version * Update version database * Update ports/coin-or-cbc/portfile.cmake * Update version database * Apply suggestions from code review Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com> * add back AUTOCONFIG * try with autconfig and without configure.ac patch * Update version database * Update version database * cleanup * Update version database * chagne * Update version database --------- Co-authored-by: NancyLi1013 <lirui09@beyondsoft.com> Co-authored-by: Jim Wang (Beyondsoft Corporation) <v-wangjim@microsoft.com> Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>
2023-07-06 03:10:22 +08:00
PATCHES
pkgconf_win.patch
disable_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}"
DETERMINE_BUILD_TRIPLET
USE_WRAPPERS
OPTIONS
--with-coinutils
--with-clp
--with-cgl
--with-osi
--without-ositests
--without-sample
--without-netlib
--without-miplib3
--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_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")