aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/rsm-binary-io
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/rsm-binary-io
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/rsm-binary-io')
-rw-r--r--vcpkg/ports/rsm-binary-io/portfile.cmake30
-rw-r--r--vcpkg/ports/rsm-binary-io/vcpkg.json19
2 files changed, 49 insertions, 0 deletions
diff --git a/vcpkg/ports/rsm-binary-io/portfile.cmake b/vcpkg/ports/rsm-binary-io/portfile.cmake
new file mode 100644
index 0000000..d1d0f9f
--- /dev/null
+++ b/vcpkg/ports/rsm-binary-io/portfile.cmake
@@ -0,0 +1,30 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Ryan-rsm-McKenzie/binary_io
+ REF 2.0.6
+ SHA512 055290ee81e93aa8a8cda567eea848c76a830d78afb1c40bc3ba0e23b41bf80364fc8621ddaf8d48678acc4b5b7fd1ba2075e2bd23995655131954f580bdd4ae
+ HEAD_REF main
+)
+
+if(VCPKG_TARGET_IS_LINUX)
+ message(WARNING "Build ${PORT} requires at least gcc 10.")
+endif()
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_TESTING=OFF
+)
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(
+ PACKAGE_NAME binary_io
+ CONFIG_PATH "lib/cmake/binary_io"
+)
+
+file(REMOVE_RECURSE
+ "${CURRENT_PACKAGES_DIR}/debug/include"
+ "${CURRENT_PACKAGES_DIR}/debug/share"
+)
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/rsm-binary-io/vcpkg.json b/vcpkg/ports/rsm-binary-io/vcpkg.json
new file mode 100644
index 0000000..acda7b5
--- /dev/null
+++ b/vcpkg/ports/rsm-binary-io/vcpkg.json
@@ -0,0 +1,19 @@
+{
+ "name": "rsm-binary-io",
+ "version-semver": "2.0.6",
+ "description": "A binary i/o library for C++, without the agonizing pain",
+ "homepage": "https://github.com/Ryan-rsm-McKenzie/binary_io",
+ "documentation": "https://ryan-rsm-mckenzie.github.io/binary_io/",
+ "license": "MIT",
+ "supports": "!osx & !uwp",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}