2019-07-17 06:43:41 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO cesanta/mongoose
|
2022-01-19 04:17:59 +08:00
|
|
|
REF 9d38e26b817b6b151fd925e9a8420a46c99a8375 #v7.5
|
|
|
|
SHA512 ce488a6b9dc1e7437b17ea32e62c2c90fe05b298df995e624f24f05c539ee96444fa892dab7958a81541c711bb3e399808f793c8ce317b0fd904b037955d81fa
|
2019-07-17 06:43:41 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-01-19 04:17:59 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2019-07-17 06:43:41 +08:00
|
|
|
|
2019-12-21 04:21:25 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2022-01-19 04:17:59 +08:00
|
|
|
FEATURES
|
|
|
|
ssl ENABLE_SSL
|
2019-12-21 04:21:25 +08:00
|
|
|
)
|
|
|
|
|
2022-01-19 04:17:59 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-12-21 04:21:25 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
2019-07-17 06:43:41 +08:00
|
|
|
)
|
|
|
|
|
2022-01-19 04:17:59 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-07-17 06:43:41 +08:00
|
|
|
|
2022-01-19 04:17:59 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT} CONFIG_PATH share/unofficial-${PORT})
|
2019-07-17 06:43:41 +08:00
|
|
|
|
2022-01-19 04:17:59 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-07-17 06:43:41 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-01-19 04:17:59 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|