aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libfabric
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/libfabric
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libfabric')
-rw-r--r--vcpkg/ports/libfabric/portfile.cmake36
-rw-r--r--vcpkg/ports/libfabric/vcpkg.json19
2 files changed, 55 insertions, 0 deletions
diff --git a/vcpkg/ports/libfabric/portfile.cmake b/vcpkg/ports/libfabric/portfile.cmake
new file mode 100644
index 0000000..aeaa342
--- /dev/null
+++ b/vcpkg/ports/libfabric/portfile.cmake
@@ -0,0 +1,36 @@
+if(VCPKG_TARGET_IS_WINDOWS)
+ vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ofiwg/libfabric
+ REF v${VERSION}
+ SHA512 8242d1eec22a066b65cb99f5b96da44ce19c1dcb3db15238495b28147e8bcee70f6c0eaf5f72e1dc9e004809114a5f96ee696b9e5fc8bd9c07177b9916e35d05
+ HEAD_REF master
+)
+
+if(VCPKG_TARGET_IS_WINDOWS)
+ vcpkg_msbuild_install(
+ SOURCE_PATH "${SOURCE_PATH}"
+ PROJECT_SUBPATH libfabric.vcxproj
+ RELEASE_CONFIGURATION Release-v142
+ DEBUG_CONFIGURATION Debug-v142
+ OPTIONS
+ "/p:SolutionDir=${SOURCE_PATH}"
+ )
+ file(COPY "${SOURCE_PATH}/include/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/libfabric")
+
+else()
+ vcpkg_configure_make(
+ SOURCE_PATH "${SOURCE_PATH}"
+ AUTOCONFIG
+ OPTIONS
+ --with-uring=no
+ )
+ vcpkg_install_make()
+ vcpkg_fixup_pkgconfig()
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+endif()
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
diff --git a/vcpkg/ports/libfabric/vcpkg.json b/vcpkg/ports/libfabric/vcpkg.json
new file mode 100644
index 0000000..006eff8
--- /dev/null
+++ b/vcpkg/ports/libfabric/vcpkg.json
@@ -0,0 +1,19 @@
+{
+ "name": "libfabric",
+ "version-semver": "1.22.0",
+ "description": "Libfabric, aka Open Fabrics Interfaces (OFI), defines a communication API for high-performance parallel and distributed applications.",
+ "homepage": "https://ofiwg.github.io/libfabric/",
+ "license": "BSD-2-Clause OR GPL-2.0-only",
+ "supports": "freebsd | linux | osx | (windows & x64 & !mingw & !uwp & !(static & staticcrt))",
+ "dependencies": [
+ {
+ "name": "networkdirect-sdk",
+ "platform": "windows"
+ },
+ {
+ "name": "vcpkg-msbuild",
+ "host": true,
+ "platform": "windows"
+ }
+ ]
+}