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/suitesparse-paru | |
Diffstat (limited to 'vcpkg/ports/suitesparse-paru')
| -rw-r--r-- | vcpkg/ports/suitesparse-paru/portfile.cmake | 46 | ||||
| -rw-r--r-- | vcpkg/ports/suitesparse-paru/vcpkg.json | 35 |
2 files changed, 81 insertions, 0 deletions
diff --git a/vcpkg/ports/suitesparse-paru/portfile.cmake b/vcpkg/ports/suitesparse-paru/portfile.cmake new file mode 100644 index 0000000..58c9ffb --- /dev/null +++ b/vcpkg/ports/suitesparse-paru/portfile.cmake @@ -0,0 +1,46 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO DrTimothyAldenDavis/SuiteSparse + REF v7.8.3 + SHA512 fc0fd0aaf55a6712a3b8ca23bf7536a31d52033e090370ebbf291f05d0e073c7dcfd991a80b037f54663f524804582b87af86522c2e4435091527f0d3c189244 + HEAD_REF dev +) + +set(PACKAGE_NAME ParU) + +configure_file( + "${CURRENT_INSTALLED_DIR}/share/suitesparse/SuiteSparseBLAS.cmake" + "${SOURCE_PATH}/SuiteSparse_config/cmake_modules/SuiteSparseBLAS.cmake" + COPYONLY +) + +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC_LIBS) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + openmp SUITESPARSE_USE_OPENMP +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}/${PACKAGE_NAME}" + DISABLE_PARALLEL_CONFIGURE + OPTIONS + -DBUILD_STATIC_LIBS=${BUILD_STATIC_LIBS} + -DSUITESPARSE_USE_CUDA=OFF + -DSUITESPARSE_USE_STRICT=ON + -DSUITESPARSE_USE_FORTRAN=OFF + -DSUITESPARSE_DEMOS=OFF + ${FEATURE_OPTIONS} +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup( + PACKAGE_NAME ${PACKAGE_NAME} + CONFIG_PATH lib/cmake/${PACKAGE_NAME} +) +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/${PACKAGE_NAME}/LICENSE.txt") diff --git a/vcpkg/ports/suitesparse-paru/vcpkg.json b/vcpkg/ports/suitesparse-paru/vcpkg.json new file mode 100644 index 0000000..225be42 --- /dev/null +++ b/vcpkg/ports/suitesparse-paru/vcpkg.json @@ -0,0 +1,35 @@ +{ + "$comment": "Use scripts/update_suitesparse.py to update all SuiteSparse ports", + "name": "suitesparse-paru", + "version-semver": "1.0.0", + "description": "ParU: Routines for solving sparse linear system via parallel multifrontal LU factorization algorithms in SuiteSparse", + "homepage": "https://people.engr.tamu.edu/davis/suitesparse.html", + "license": "GPL-3.0-or-later", + "dependencies": [ + "suitesparse-cholmod", + "suitesparse-config", + "suitesparse-umfpack", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "openmp": { + "description": "Enable OpenMP support", + "supports": "!windows", + "dependencies": [ + { + "name": "suitesparse-config", + "features": [ + "openmp" + ] + } + ] + } + } +} |