2020-08-19 07:34:10 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO an-tao/trantor
|
2023-10-03 11:48:58 +08:00
|
|
|
REF "v${VERSION}"
|
2024-07-24 13:22:51 +08:00
|
|
|
SHA512 3666a49de1f13f52bac6d11d7c690c1d51b73d6f7e50b2a7591cd590639f88e33282d8b6b422f518ab73b42ba2d69d6db0852338563b366c548daaba09d0b49c
|
2020-08-19 07:34:10 +08:00
|
|
|
HEAD_REF master
|
2021-01-25 16:16:36 +08:00
|
|
|
PATCHES
|
2023-07-26 14:28:18 +08:00
|
|
|
000-fix-deps.patch
|
2024-04-03 10:20:35 +08:00
|
|
|
001-disable-werror.patch
|
2020-08-19 07:34:10 +08:00
|
|
|
)
|
|
|
|
|
2021-08-31 10:27:37 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-08-19 07:34:10 +08:00
|
|
|
)
|
|
|
|
|
2021-08-31 10:27:37 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-08-19 07:34:10 +08:00
|
|
|
|
|
|
|
# Fix CMake files
|
2021-08-31 10:27:37 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Trantor)
|
2020-08-19 07:34:10 +08:00
|
|
|
|
2021-06-25 04:13:33 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2020-08-19 07:34:10 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2024-04-03 10:20:35 +08:00
|
|
|
|
2021-08-31 10:27:37 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/License" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2020-08-19 07:34:10 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|