2020-10-23 15:32:18 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO paullouisageneau/libjuice
|
2023-10-20 01:49:44 +08:00
|
|
|
REF "v${VERSION}"
|
2024-01-27 08:45:40 +08:00
|
|
|
SHA512 0c690940fab9c29c52955ee96c254c086f4170c8e59a26b767b9ffc288db9ecc7195136f958b9773903201e2719279bca63c7f64b6bb89bf8a41b6dd1da4eb63
|
2020-10-23 15:32:18 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
fix-for-vcpkg.patch
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
2021-10-19 05:30:48 +08:00
|
|
|
nettle USE_NETTLE
|
2020-10-23 15:32:18 +08:00
|
|
|
)
|
|
|
|
|
2021-10-19 05:30:48 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-10-23 15:32:18 +08:00
|
|
|
OPTIONS
|
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
-DNO_TESTS=ON
|
|
|
|
)
|
|
|
|
|
2021-10-19 05:30:48 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-10-23 15:32:18 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
2024-01-30 10:18:13 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME libjuice CONFIG_PATH lib/cmake/LibJuice)
|
2020-10-23 15:32:18 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2024-01-30 10:18:13 +08:00
|
|
|
file(READ "${CURRENT_PACKAGES_DIR}/share/libjuice/LibJuiceConfig.cmake" DATACHANNEL_CONFIG)
|
|
|
|
file(WRITE "${CURRENT_PACKAGES_DIR}/share/libjuice/LibJuiceConfig.cmake" "
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
find_dependency(Threads)
|
|
|
|
${DATACHANNEL_CONFIG}")
|
|
|
|
|
2022-10-21 10:17:21 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|