2021-03-16 02:06:19 +08:00
|
|
|
vcpkg_from_github(
|
2019-10-07 19:35:13 +02:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2021-03-16 02:06:19 +08:00
|
|
|
REPO LLNL/sundials
|
2021-10-18 14:31:57 -07:00
|
|
|
REF v5.8.0
|
|
|
|
SHA512 30f6a7bddf813634e4266c36331673b52448b719f938f45a4efb6a96cfbeea4fe168fdded89309672b148f8ef8bc05997d838627e828573900ec169a41472372
|
2021-03-16 02:06:19 +08:00
|
|
|
HEAD_REF master
|
2021-06-03 14:57:42 -05:00
|
|
|
PATCHES
|
|
|
|
install-dlls-in-bin.patch
|
2018-06-12 22:15:10 -07: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-18 14:31:57 -07:00
|
|
|
vcpkg_cmake_configure(
|
2017-06-09 22:48:22 -07:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2020-11-19 05:08:22 +08:00
|
|
|
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-09 22:48:22 -07:00
|
|
|
)
|
2017-06-09 13:18:30 -07:00
|
|
|
|
2021-10-18 14:31:57 -07:00
|
|
|
vcpkg_cmake_install(DISABLE_PARALLEL)
|
2017-06-09 13:18:30 -07:00
|
|
|
|
2017-06-09 22:48:22 -07:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2017-06-09 13:18:30 -07:00
|
|
|
|
2019-10-07 19:35:13 +02:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
2018-06-05 21:06:29 +02:00
|
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/LICENSE")
|
|
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/LICENSE")
|
2017-06-09 13:18:30 -07:00
|
|
|
|
2017-06-09 22:48:22 -07:00
|
|
|
vcpkg_copy_pdbs()
|
2021-10-18 14:31:57 -07:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|