2020-10-23 15:32:18 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO paullouisageneau/libjuice
|
2022-01-19 05:50:36 +08:00
|
|
|
REF 3795466e704191dd35f8a46b82ca06cbbc395cd9 #v0.9.6
|
|
|
|
SHA512 3c931b47d852ead3027ed077f9ba930e9b5b77de1cf984023dd4bac3b52980f68419517e4edf11e8fd2741bfb2e154d3c748073ed302182e395df0b0acc1910c
|
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")
|
|
|
|
|
2021-10-19 05:30:48 +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()
|
|
|
|
|
2021-10-19 05:30:48 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|