2020-10-23 15:32:18 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO paullouisageneau/libjuice
|
2024-08-13 07:51:34 +08:00
|
|
|
REF "v${VERSION}"
|
2024-10-08 03:09:26 +08:00
|
|
|
SHA512 694a316b7e9f33be45ace1d35a32e6a4ec74b7038c6268d0d35efcbf7a3c7abc9d2823dae789d849f37f0399d9da779a54bf6e9db5477df326aa185be92657b2
|
2020-10-23 15:32:18 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2024-08-13 07:51:34 +08:00
|
|
|
dependencies.diff
|
|
|
|
library-linkage.diff
|
2020-10-23 15:32:18 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
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()
|
2024-08-13 07:51:34 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/LibJuice)
|
2020-10-23 15:32:18 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2024-08-13 07:51:34 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/juice/juice.h" "#ifndef JUICE_STATIC" "#if 0")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2024-01-30 10:18:13 +08:00
|
|
|
|
2024-06-07 17:23:19 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|