2019-01-26 05:07:17 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO effolkronium/random
|
2022-04-26 08:24:20 +08:00
|
|
|
REF v1.4.1
|
|
|
|
SHA512 215fd34ea3a99c955a1fcd70d6c317e3829b3c562c737d22be1371213b3e14346b2f61fc76afbbcc55e26b4fdf630fa428b8bc34104170cbfc4afebcf24d160b
|
2019-01-26 05:07:17 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-10-05 08:13:49 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-01-26 05:07:17 +08:00
|
|
|
OPTIONS
|
2021-10-20 09:30:16 +08:00
|
|
|
-DRandom_BuildTests=OFF
|
2019-01-26 05:07:17 +08:00
|
|
|
)
|
|
|
|
|
2021-10-05 08:13:49 +08:00
|
|
|
vcpkg_cmake_install()
|
2021-10-20 09:30:16 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME effolkronium_random CONFIG_PATH cmake)
|
2019-01-26 05:07:17 +08:00
|
|
|
|
2021-10-05 08:13:49 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
2021-10-20 09:30:16 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.MIT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|