2020-10-31 03:47:16 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-11-23 07:26:45 +08:00
|
|
|
FEATURES
|
|
|
|
openssl BUILD_SSL
|
2020-10-31 03:47:16 +08:00
|
|
|
)
|
2019-10-08 01:35:13 +08:00
|
|
|
|
2018-10-16 16:59:33 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Corvusoft/restbed
|
2023-03-03 03:57:05 +08:00
|
|
|
REF "${VERSION}"
|
2021-11-23 07:26:45 +08:00
|
|
|
SHA512 989027c926b97a9dd02951c881dc41819014783da4848cc9ee50776545ba206830d35c2e775abd8c0f705f7b0611d5cd335dd1eb305cdcbf2c86100abaf1623c
|
2018-10-16 16:59:33 +08:00
|
|
|
HEAD_REF master
|
2019-10-08 01:35:13 +08:00
|
|
|
PATCHES
|
2021-11-23 07:26:45 +08:00
|
|
|
fix-cmake.patch
|
2018-10-16 16:59:33 +08:00
|
|
|
)
|
|
|
|
|
2021-11-23 07:26:45 +08:00
|
|
|
file(REMOVE "${SOURCE_PATH}/cmake/Findopenssl.cmake")
|
2020-10-31 03:47:16 +08:00
|
|
|
|
2021-11-23 07:26:45 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-10-16 16:59:33 +08:00
|
|
|
OPTIONS
|
2020-10-31 03:47:16 +08:00
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
-DBUILD_TESTS=OFF
|
2018-10-16 16:59:33 +08:00
|
|
|
)
|
|
|
|
|
2021-11-23 07:26:45 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
2023-03-03 03:57:05 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-restbed)
|
2018-10-16 16:59:33 +08:00
|
|
|
|
2021-11-23 07:26:45 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2023-03-03 03:57:05 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2018-10-16 16:59:33 +08:00
|
|
|
|
2023-03-07 04:08:16 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2023-03-03 03:57:05 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|