2021-03-16 02:06:19 +08:00
|
|
|
vcpkg_from_github(
|
2019-10-08 01:35:13 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2021-03-16 02:06:19 +08:00
|
|
|
REPO LLNL/sundials
|
2022-05-05 06:09:15 +08:00
|
|
|
REF e2f29c34f324829302037a1492db480be8828084
|
|
|
|
SHA512 9af9a5d7a44de1f2afbc35d8e2ec3d35a2d15f1b708be7a90bf849a0d0576fda6c73fae6b8954025805ac1ca25468558c02dcc2fd86b5767699518988817d4d8
|
2021-03-16 02:06:19 +08:00
|
|
|
HEAD_REF master
|
2021-06-04 03:57:42 +08:00
|
|
|
PATCHES
|
|
|
|
install-dlls-in-bin.patch
|
2018-06-13 13:15:10 +08:00
|
|
|
)
|
|
|
|
|
2020-11-19 05:08:22 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SUN_BUILD_STATIC)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SUN_BUILD_SHARED)
|
|
|
|
|
2021-10-19 05:31:57 +08:00
|
|
|
vcpkg_cmake_configure(
|
2022-05-05 06:09:15 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2021-03-16 02:06:19 +08:00
|
|
|
-D_BUILD_EXAMPLES=OFF
|
2020-11-19 05:08:22 +08:00
|
|
|
-DBUILD_STATIC_LIBS=${SUN_BUILD_STATIC}
|
|
|
|
-DBUILD_SHARED_LIBS=${SUN_BUILD_SHARED}
|
2017-06-10 13:48:22 +08:00
|
|
|
)
|
2017-06-10 04:18:30 +08:00
|
|
|
|
2022-05-05 06:09:15 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-06-10 04:18:30 +08:00
|
|
|
|
2022-05-05 06:09:15 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-06-10 04:18:30 +08:00
|
|
|
|
2022-05-05 06:09:15 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2018-06-06 03:06:29 +08:00
|
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/LICENSE")
|
|
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/LICENSE")
|
2017-06-10 04:18:30 +08:00
|
|
|
|
2017-06-10 13:48:22 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2022-05-05 06:09:15 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|