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
|
2021-11-23 07:26:45 +08:00
|
|
|
REF 4.8
|
|
|
|
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()
|
2018-10-16 16:59:33 +08:00
|
|
|
|
2021-11-23 07:26:45 +08:00
|
|
|
# Remove include debug files
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2018-10-16 16:59:33 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2021-11-23 07:26:45 +08:00
|
|
|
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|