aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/adios2
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/adios2
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/adios2')
-rw-r--r--vcpkg/ports/adios2/portfile.cmake63
-rw-r--r--vcpkg/ports/adios2/usage4
-rw-r--r--vcpkg/ports/adios2/vcpkg.json65
3 files changed, 132 insertions, 0 deletions
diff --git a/vcpkg/ports/adios2/portfile.cmake b/vcpkg/ports/adios2/portfile.cmake
new file mode 100644
index 0000000..d2aef40
--- /dev/null
+++ b/vcpkg/ports/adios2/portfile.cmake
@@ -0,0 +1,63 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ornladios/ADIOS2
+ REF "v${VERSION}"
+ SHA512 05decc3ff14e7458df9ec16ca6230a9770ca992e7d0ce3a18b3c9295a19dad94d8a9367102e50347a9487c6a3f35a8d52fbaa6a6fd98807aaec9636e607541ee
+ HEAD_REF master
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ mpi ADIOS2_USE_MPI
+ cuda ADIOS2_USE_CUDA
+ python ADIOS2_USE_Python # requires numpy / mpi4py; so not exposed in the manifest yet
+ zfp ADIOS2_USE_ZFP
+)
+
+set(disabled_options "")
+list(APPEND disabled_options SZ LIBPRESSIO MGARD DAOS DataMan DataSpaces MHS SST BP5 IME Fortran SysVShMem Profiling)
+list(TRANSFORM disabled_options PREPEND "-DADIOS2_USE_")
+list(TRANSFORM disabled_options APPEND ":BOOL=OFF")
+set(enabled_options "")
+list(APPEND enabled_options BZip2 Blosc2 PNG ZeroMQ HDF5 Endian_Reverse Sodium)
+list(TRANSFORM enabled_options PREPEND "-DADIOS2_USE_")
+list(TRANSFORM enabled_options APPEND ":BOOL=OFF")
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ ${FEATURE_OPTIONS}
+ ${disabled_options}
+ ${enabled_options}
+ -DBUILD_TESTING=OFF
+ -DADIOS2_BUILD_EXAMPLES=OFF
+ -DADIOS2_INSTALL_GENERATE_CONFIG=OFF
+ MAYBE_UNUSED_VARIABLES
+ ADIOS2_USE_DAOS
+ ADIOS2_USE_DataMan
+ ADIOS2_USE_DataSpaces
+ ADIOS2_USE_SysVShMem
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
+
+set(tools "adios2_reorganize" "bpls")
+if(ADIOS2_USE_MPI)
+ list(APPEND tools "adios2_reorganize_mpi" "adios2_iotest")
+endif()
+
+vcpkg_copy_tools(TOOL_NAMES ${tools} AUTO_CLEAN)
+file(RENAME "${CURRENT_PACKAGES_DIR}/bin/adios2_deactivate_bp" "${CURRENT_PACKAGES_DIR}/tools/${PORT}/adios2_deactivate_bp")
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
+endif()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/adios2/toolkit/sst/dp" "${CURRENT_PACKAGES_DIR}/include/adios2/toolkit/sst/util")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
diff --git a/vcpkg/ports/adios2/usage b/vcpkg/ports/adios2/usage
new file mode 100644
index 0000000..eb6142a
--- /dev/null
+++ b/vcpkg/ports/adios2/usage
@@ -0,0 +1,4 @@
+The package adios2 provides CMake targets:
+
+ find_package(adios2 CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE adios2::adios2)
diff --git a/vcpkg/ports/adios2/vcpkg.json b/vcpkg/ports/adios2/vcpkg.json
new file mode 100644
index 0000000..79d4631
--- /dev/null
+++ b/vcpkg/ports/adios2/vcpkg.json
@@ -0,0 +1,65 @@
+{
+ "name": "adios2",
+ "version": "2.9.2",
+ "description": "Next generation of ADIOS developed in the Exascale Computing Program",
+ "homepage": "https://github.com/ornladios/ADIOS2",
+ "license": "Apache-2.0",
+ "dependencies": [
+ "blosc",
+ "bzip2",
+ {
+ "name": "hdf5",
+ "default-features": false
+ },
+ "libffi",
+ "libpng",
+ "libsodium",
+ "pugixml",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ },
+ "zeromq"
+ ],
+ "features": {
+ "cuda": {
+ "description": "Enable CUDA support",
+ "dependencies": [
+ "cuda"
+ ]
+ },
+ "mpi": {
+ "description": "Enable MPI support",
+ "dependencies": [
+ {
+ "name": "hdf5",
+ "default-features": false,
+ "features": [
+ "parallel"
+ ]
+ },
+ "mpi"
+ ]
+ },
+ "python": {
+ "description": "Enable Python bindings",
+ "dependencies": [
+ "python3",
+ {
+ "name": "python3",
+ "host": true
+ }
+ ]
+ },
+ "zfp": {
+ "description": "Enable zfp support",
+ "dependencies": [
+ "zfp"
+ ]
+ }
+ }
+}