diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/random123 | |
Diffstat (limited to 'vcpkg/ports/random123')
| -rw-r--r-- | vcpkg/ports/random123/portfile.cmake | 23 | ||||
| -rw-r--r-- | vcpkg/ports/random123/vcpkg.json | 7 |
2 files changed, 30 insertions, 0 deletions
diff --git a/vcpkg/ports/random123/portfile.cmake b/vcpkg/ports/random123/portfile.cmake new file mode 100644 index 0000000..31e0049 --- /dev/null +++ b/vcpkg/ports/random123/portfile.cmake @@ -0,0 +1,23 @@ +# Random123 - Header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO "DEShawResearch/random123"
+ REF "v1.14.0"
+ SHA512 1c7d139193f5404e5d14d229f55e0a14b11de596a4cfbf0a39c1419f5ae146055dccc61e9430f724a2d7c1efb8bd01edb72866d4f4705508fcc6ebda6e90e91e
+ HEAD_REF "main"
+ )
+
+# Copy the headers that define this package to the install location.
+file(GLOB header_files
+ "${SOURCE_PATH}/include/Random123/*.h"
+ "${SOURCE_PATH}/include/Random123/*.hpp")
+file(COPY ${header_files}
+ "${SOURCE_PATH}/include/Random123/features"
+ "${SOURCE_PATH}/include/Random123/conventional"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/include/Random123")
+
+# Handle copyright
+file(INSTALL "${SOURCE_PATH}/LICENSE"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
+ RENAME copyright)
diff --git a/vcpkg/ports/random123/vcpkg.json b/vcpkg/ports/random123/vcpkg.json new file mode 100644 index 0000000..dd5bf9d --- /dev/null +++ b/vcpkg/ports/random123/vcpkg.json @@ -0,0 +1,7 @@ +{ + "name": "random123", + "version": "1.14.0", + "description": "Random123 is a library of 'counter-based' random number generators (CBRNGs), in which the Nth random number can be obtained by applying a stateless mixing function to N instead of the conventional approach of using N iterations of a stateful transformation.", + "homepage": "http://www.deshawresearch.com/resources_random123.html", + "license": "BSD-3-Clause" +} |