2022-04-26 08:10:37 +08:00
|
|
|
set(RHASH_XVERSION 1.4.2)
|
2017-08-24 23:27:32 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO rhash/RHash
|
2023-10-03 08:27:03 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 00a7e5e058b53ce20ae79509815452ed9cb699d1322b678220b72c61dea3ea2f8fa131acfade8bb6d9f6af913f0c3c472330841181b22314b8755166310c946f
|
2020-11-06 10:24:53 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
2017-08-24 23:27:32 +08:00
|
|
|
|
2022-04-26 08:10:37 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}/librhash")
|
2017-08-24 23:27:32 +08:00
|
|
|
|
2022-04-26 08:10:37 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/librhash"
|
2017-08-24 23:27:32 +08:00
|
|
|
OPTIONS_DEBUG
|
2020-11-06 10:24:53 +08:00
|
|
|
-DRHASH_SKIP_HEADERS=ON
|
|
|
|
)
|
2017-08-24 23:27:32 +08:00
|
|
|
|
2022-04-26 08:10:37 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-08-24 23:27:32 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2022-06-11 01:54:05 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-rhash)
|
2017-08-24 23:27:32 +08:00
|
|
|
|
2022-04-26 08:10:37 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|