2021-01-28 06:28:14 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/nsync
|
2023-11-15 04:56:13 +08:00
|
|
|
REF "${VERSION}"
|
|
|
|
SHA512 8aa49997f100f161f0f32e99c9004ee845d7b16c1391e7eb62eea0897e2f91b7f9e5181055fdca637518751b6b26e16a1cd53e45adceda145285752c4b74f3bf
|
2021-01-28 06:28:14 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
fix-install.patch
|
2022-03-29 04:51:28 +08:00
|
|
|
export-targets.patch
|
2021-01-28 06:28:14 +08:00
|
|
|
)
|
|
|
|
|
2022-03-29 04:51:28 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-01-28 06:28:14 +08:00
|
|
|
OPTIONS
|
|
|
|
-DNSYNC_ENABLE_TESTS=OFF
|
|
|
|
)
|
2022-03-29 04:51:28 +08:00
|
|
|
vcpkg_cmake_install()
|
2021-01-28 06:28:14 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-03-29 04:51:28 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-nsync CONFIG_PATH share/unofficial-nsync)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|