Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SuiteSparse] Update and split into sub-packages (v2) #41929

Merged
merged 144 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
2444464
[SuiteSparse] add suitesparse-config port
valgur Jun 14, 2024
92dc8cc
[SuiteSparse] add suitesparse-amd
valgur Jun 14, 2024
649951e
[SuiteSparse] add suitesparse-btf
valgur Jun 14, 2024
b641337
[SuiteSparse] add suitesparse-camd
valgur Jun 14, 2024
a1e208d
[SuiteSparse] add suitesparse-ccolamd
valgur Jun 14, 2024
878a670
[SuiteSparse] add suitesparse-colamd
valgur Jun 14, 2024
d77155e
[SuiteSparse] add suitesparse-ldl
valgur Jun 14, 2024
efa21a1
[SuiteSparse] add suitesparse-mongoose
valgur Jun 14, 2024
9722718
[SuiteSparse] add suitesparse-rbio
valgur Jun 14, 2024
1460d7b
[SuiteSparse] add suitesparse-spex
valgur Jun 14, 2024
17bc751
[SuiteSparse] add suitesparse-graphblas
valgur Jun 14, 2024
589394e
[SuiteSparse] add suitesparse-lagraph
valgur Jun 14, 2024
6cc3b66
[SuiteSparse] add suitesparse-cholmod
valgur Jun 14, 2024
9d8012a
[SuiteSparse] add suitesparse-klu
valgur Jun 14, 2024
ac4405d
[SuiteSparse] add suitesparse-umfpack
valgur Jun 14, 2024
44b17c1
[SuiteSparse] add suitesparse-paru
valgur Jun 14, 2024
fc0bee4
[SuiteSparse] add suitesparse-spqr
valgur Jun 14, 2024
784ad55
[SuiteSparse] add suitesparse-cxsparse
valgur Jun 14, 2024
1206dbc
[SuiteSparse] fix suitesparse-ldl license installation
valgur Jun 14, 2024
2691f4a
[SuiteSparse] update suitesparse meta-package
valgur Jun 14, 2024
1df3ccf
[SuiteSparse] update Ceres and g2o to use specific SuiteSparse packag…
valgur Jun 14, 2024
730b0ef
[SuiteSparse] fix vcpkg.json formatting
valgur Jun 14, 2024
af99099
[SuiteSparse] update version database
valgur Jun 14, 2024
f5409a3
[SuiteSparse] fix suitesparse-config fixup
valgur Jun 14, 2024
ebe4c93
[SuiteSparse] vdb
valgur Jun 14, 2024
e83bd34
[SuiteSparse] set DISABLE_PARALLEL_CONFIGURE
valgur Jun 14, 2024
bbfbe3b
[SuiteSparse] vdb
valgur Jun 14, 2024
2983086
[SuiteSparse] disable OpenMP by default
valgur Jun 15, 2024
2a70f3a
[SuiteSparse] update vdb
valgur Jun 15, 2024
c991831
[SuiteSparse] fix port-version
valgur Jun 17, 2024
08b7fbe
[SuiteSparse] update openmp in suitesparse/vcpkg.json
valgur Jun 17, 2024
20efbf0
[SuiteSparse] workaround for find_package(LAPACK) issues due to BLA_V…
valgur Jun 17, 2024
336b50e
update git-tree
MonicaLiu0311 Jun 17, 2024
9270747
[Ceres] add compatibility with SuiteSparse v7
valgur Jun 17, 2024
e2d6010
[Ceres] update vdb
valgur Jun 17, 2024
782adbd
[Ceres] add missing suitesparse-cxsparse dependency
valgur Jun 17, 2024
89b2d51
[Ceres] update vdb
valgur Jun 17, 2024
cffc39f
[Ceres] fix CeresConfig.cmake.in
valgur Jun 17, 2024
5869fb1
[Ceres] update vdb
valgur Jun 17, 2024
4399aa3
[SuiteSparse] add missing openmp feature to lagraph
valgur Jun 17, 2024
0ab5ad1
[SuiteSparse] update vdb
valgur Jun 17, 2024
d3f7288
[theia] add support for SuiteSparse v7
valgur Jun 17, 2024
b791553
[theia] update vdb
valgur Jun 17, 2024
c222113
[Theia] update and merge patches, drop default [viewer] from openimageio
valgur Jun 18, 2024
ef32e04
[Theia] update vdb
valgur Jun 18, 2024
5c4e386
[SuiteSparse] handle suitesparse_mongoose tool
valgur Jun 18, 2024
c6d9961
[SuiteSparse] update vdb
valgur Jun 18, 2024
ec23261
[SuiteSparse] fix GraphBLAS JIT cache dir handling
valgur Jun 18, 2024
a4ff7a5
[SuiteSparse] update vdb
valgur Jun 18, 2024
4a1de07
[SuiteSparse] disable complex data types for ARM android
valgur Jun 19, 2024
4491d50
vdb
valgur Jun 20, 2024
8db9b29
[suitesparse] fix BLAS linking on Windows
valgur Jul 16, 2024
caec19c
[suitesparse-cxsparse] complex is not available on MSVC
valgur Jul 16, 2024
29cdfc8
[suitesparse] fix BLAS linking in components using it transitively
valgur Jul 16, 2024
2325cae
vdb
valgur Jul 16, 2024
df5876b
[suitesparse-graphblas] disable on android
valgur Jul 17, 2024
a7271b8
vdb
valgur Jul 17, 2024
310023a
[suitesparse-paru] MSVC OpenMP is not compatible (v2.0 < required v4.5)
valgur Jul 19, 2024
1aaf2fa
[suitesparse-cxsparse] strictly disable 'complex' on Windows
valgur Jul 19, 2024
c8ec71d
[suitesparse] disable CUDA feature on Windows
valgur Jul 19, 2024
370b36d
[suitesparse-graphblas] disable x86 Windows
valgur Jul 19, 2024
451db26
[suitesparse] fix vcpkg.json formatting
valgur Jul 19, 2024
01fd771
vdb
valgur Jul 19, 2024
f76d0b1
[suitesparse-cxsparse] don't enable 'complex' on Windows
valgur Jul 20, 2024
64819b0
[suitesparse] fix 'cuda' feature support
valgur Jul 20, 2024
672661d
vdb
valgur Jul 20, 2024
fdfddc8
[colmap] add a missing METIS dependency
valgur Jul 20, 2024
5c539dd
vdb
valgur Jul 20, 2024
dcf89d5
[suitesparse-graphblas] add x86-windows to ci.baseline.txt
valgur Jul 26, 2024
dca3134
Bump port-versions
valgur Jul 27, 2024
acc8bc3
update vdb
valgur Jul 27, 2024
4bc8192
Merge remote-tracking branch 'refs/remotes/origin/master' into update…
valgur Jul 31, 2024
8e4c6ec
CI
valgur Aug 7, 2024
0069271
Merge remote-tracking branch 'origin/master' into update/suitesparse
valgur Aug 16, 2024
f18bcb8
vdb
valgur Aug 16, 2024
a7e377b
[suitesparse-graphblas] only supported on x64 for windows
valgur Aug 16, 2024
63222ff
vdb
valgur Aug 16, 2024
eb239f2
[SuiteSparse] update to v7.8.1
valgur Aug 17, 2024
ac7fd50
vdb
valgur Aug 17, 2024
b3722e8
[suitesparse-spqr] add a missing 'supernodal' requirement for cholmod
valgur Aug 17, 2024
5bcb8b4
vdb
valgur Aug 17, 2024
75ccb70
[ceres] require matrixops feature from cholmod
valgur Aug 18, 2024
dd86272
vdb
valgur Aug 18, 2024
6caed0d
[suitesparse-graphblas] move failures from "supports" to ci.baseline.txt
valgur Aug 18, 2024
61749a9
vdb
valgur Aug 18, 2024
311ce89
fix ceres vdb
valgur Aug 19, 2024
f3a86f6
fix g2o vdb
valgur Aug 19, 2024
b867d2d
[suitesparse-graphblas] adjust "supports"
valgur Aug 20, 2024
4d65cd3
vdb
valgur Aug 20, 2024
b6c5da3
[g2o] disable use of vendored CSparse
valgur Aug 20, 2024
5c86dd0
vdb
valgur Aug 20, 2024
1eb2f67
Merge branch 'master' of https://github.com/microsoft/vcpkg into upda…
Aug 26, 2024
b16ed70
[SuiteSparse] add update_suitesparse.py script
valgur Aug 27, 2024
4efaf5d
[SuiteSparse] update to v7.8.2
valgur Aug 27, 2024
b37eb81
[SuiteSparse] use lower-case `share/suitesparse` subdir
valgur Aug 27, 2024
b3aa137
vdb
valgur Aug 27, 2024
f58ac5d
[theia] drop REQUIRED from `find_dependency(Ceres REQUIRED)`
valgur Aug 27, 2024
99dcf8a
vdb
valgur Aug 27, 2024
a4f22d3
Merge remote-tracking branch 'origin/master' into update/suitesparse
valgur Nov 2, 2024
85b64c2
update vdb
valgur Nov 2, 2024
70a9855
[SuiteSparse] move update_suitesparse.py to scripts/
valgur Nov 3, 2024
d7fe85f
[SuiteSparse] update to v7.8.3
valgur Nov 3, 2024
83980c5
update vdb
valgur Nov 3, 2024
2645912
[suitesparse] don't enable "gpl" feature by default
valgur Nov 3, 2024
063c1dc
[suitesparse-cxsparse] drop the "complex" feature
valgur Nov 3, 2024
a74a1e1
[suitesparse-graphblas] rename "compact" -> "precompiled"
valgur Nov 3, 2024
5f6a181
vdb
valgur Nov 3, 2024
f793739
[SuiteSparse] fix portfile.cmake indentation
valgur Nov 3, 2024
59abd3d
[SuiteSparse] drop "cuda-redist" feature, keep only "cuda"
valgur Nov 3, 2024
8943836
[suitesparse-graphblas] don't back up $ENV{GRAPHBLAS_CACHE_PATH}
valgur Nov 3, 2024
4ac2cf7
[ceres,theia] drop REQUIRES from find_dependency()
valgur Nov 3, 2024
e0928e0
[suitesparse-cxsparse] detect complex support instead of guessing
valgur Nov 3, 2024
6e524b1
vdb
valgur Nov 3, 2024
acb2671
[SuiteSparse] update_suitesparse.py: always update the tag in vcpkg_f…
valgur Nov 3, 2024
2598df9
[suitesparse-cholmod] need to set SUITESPARSE_USE_CUDA
valgur Nov 3, 2024
d1eb057
vdb
valgur Nov 3, 2024
9244b7e
[suitesparse-cxsparse] add a check for creal/cimg complex functions
valgur Nov 3, 2024
72dbfc2
vdb
valgur Nov 3, 2024
dfe754f
[suitesparse-cxsparse] use a simpler patch
valgur Nov 3, 2024
383446d
vdb
valgur Nov 3, 2024
a8041ea
[suitesparse] remove leftover "cuda-redist" feature
valgur Nov 5, 2024
59de43a
vdb
valgur Nov 5, 2024
a99f079
[suitesparse-graphblas] add android triplets to ci.baseline.txt
valgur Nov 5, 2024
69105e0
vdb
valgur Nov 5, 2024
00a559e
[suitesparse-graphblas] mark arm64-windows as failing in ci.baseline.…
valgur Nov 5, 2024
1720847
[SuiteSparse] don't override CMAKE_CUDA_ARCHITECTURES
valgur Nov 6, 2024
58a09ee
vdb
valgur Nov 6, 2024
cc80774
trigger CI
valgur Dec 1, 2024
b9204f8
Merge remote-tracking branch 'origin/master' into update/suitesparse
valgur Dec 8, 2024
67b3c55
vdb
valgur Dec 8, 2024
e7aec01
[suitesparse-graphblas] add arm64-windows-static-md=fail to ci.baseli…
valgur Dec 9, 2024
72edfaa
Merge remote-tracking branch 'origin/master' into update/suitesparse
valgur Dec 9, 2024
7e73cca
Merge remote-tracking branch 'origin/master' into update/suitesparse
valgur Dec 10, 2024
af3d634
[suitesparse-cholmod] disable windows-static for 'cuda'
valgur Dec 10, 2024
edad7e3
vdb
valgur Dec 10, 2024
e84a346
Merge remote-tracking branch 'origin/master' into update/suitesparse
valgur Dec 13, 2024
16d032d
vdb
valgur Dec 13, 2024
c5a342a
Merge remote-tracking branch 'origin/master' into update/suitesparse
valgur Dec 13, 2024
ea3a4b7
vdb
valgur Dec 13, 2024
782a8dd
Merge remote-tracking branch 'origin/master' into update/suitesparse
valgur Dec 25, 2024
5061370
vdb
valgur Dec 25, 2024
5206437
Merge remote-tracking branch 'origin/master' into update/suitesparse
valgur Dec 31, 2024
a7884f4
vdb
valgur Dec 31, 2024
b89e62f
Merge remote-tracking branch 'origin/master' into update/suitesparse
valgur Jan 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 2 additions & 58 deletions ports/ceres/0001_cmakelists_fixes.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,63 +2,7 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8e49c19e..f8c61d92 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -292,27 +292,28 @@ if (SUITESPARSE)
# built with SuiteSparse support.

# Check for SuiteSparse and dependencies.
- find_package(SuiteSparse 4.5.6 COMPONENTS CHOLMOD SPQR
- OPTIONAL_COMPONENTS Partition)
- if (SuiteSparse_FOUND)
- set(SuiteSparse_DEPENDENCY "find_dependency(SuiteSparse ${SuiteSparse_VERSION})")
+ find_package(SuiteSparse REQUIRED CONFIG)
+ if (SUITESPARSE_FOUND)
+ set(SuiteSparse_DEPENDENCY "find_dependency(SuiteSparse ${SuiteSparse_VERSION} CONFIG)")
# By default, if all of SuiteSparse's dependencies are found, Ceres is
# built with SuiteSparse support.
message("-- Found SuiteSparse ${SuiteSparse_VERSION}, "
"building with SuiteSparse.")
-
- if (SuiteSparse_NO_CMAKE OR NOT SuiteSparse_DIR)
- install(FILES ${Ceres_SOURCE_DIR}/cmake/FindSuiteSparse.cmake
- ${Ceres_SOURCE_DIR}/cmake/FindMETIS.cmake
- DESTINATION ${RELATIVE_CMAKECONFIG_INSTALL_DIR})
- endif (SuiteSparse_NO_CMAKE OR NOT SuiteSparse_DIR)
- else (SuiteSparse_FOUND)
+ add_library(SuiteSparse::CONFIG ALIAS SuiteSparse::suitesparseconfig)
+ add_library(SuiteSparse::AMD ALIAS SuiteSparse::amd)
+ add_library(SuiteSparse::CAMD ALIAS SuiteSparse::camd)
+ add_library(SuiteSparse::CCOLAMD ALIAS SuiteSparse::ccolamd)
+ add_library(SuiteSparse::COLAMD ALIAS SuiteSparse::colamd)
+ add_library(SuiteSparse::CHOLMOD ALIAS SuiteSparse::cholmod)
+ add_library(SuiteSparse::SPQR ALIAS SuiteSparse::spqr)
+ add_library(METIS::METIS ALIAS metis)
+ else (SUITESPARSE_FOUND)
# Disable use of SuiteSparse if it cannot be found and continue.
message("-- Did not find all SuiteSparse dependencies, disabling "
"SuiteSparse support.")
update_cache_variable(SUITESPARSE OFF)
list(APPEND CERES_COMPILE_OPTIONS CERES_NO_SUITESPARSE)
- endif (SuiteSparse_FOUND)
+ endif (SUITESPARSE_FOUND)
else (SUITESPARSE)
message("-- Building without SuiteSparse.")
list(APPEND CERES_COMPILE_OPTIONS CERES_NO_SUITESPARSE)
@@ -395,9 +396,12 @@ endif()
# GFlags.
if (GFLAGS)
# Don't search with REQUIRED as we can continue without gflags.
- find_package(gflags 2.2.0)
+ find_package(gflags CONFIG REQUIRED)
if (gflags_FOUND)
- if (TARGET gflags)
+ if (TARGET gflags::gflags)
+ if(NOT TARGET gflags)
+ add_library(gflags ALIAS gflags::gflags)
+ endif()
message("-- Found Google Flags (gflags) version ${gflags_VERSION}: ${gflags_DIR}")
else()
message("-- Detected version of gflags: ${gflags_VERSION} does not define "
@@ -430,28 +434,7 @@ if (MINIGLOG)
@@ -430,28 +430,7 @@ if (MINIGLOG)
mark_as_advanced(FORCE GLOG_INCLUDE_DIR
GLOG_LIBRARY)
else (MINIGLOG)
Expand Down Expand Up @@ -88,7 +32,7 @@ index 8e49c19e..f8c61d92 100644
endif (MINIGLOG)

if (NOT SCHUR_SPECIALIZATIONS)
@@ -466,7 +449,7 @@ endif (NOT CUSTOM_BLAS)
@@ -466,7 +445,7 @@ endif (NOT CUSTOM_BLAS)

if (BUILD_BENCHMARKS)
# Version 1.3 was first to provide import targets
Expand Down
19 changes: 15 additions & 4 deletions ports/ceres/0003_fix_exported_ceres_config.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,28 @@ diff --git a/cmake/CeresConfig.cmake.in b/cmake/CeresConfig.cmake.in
index ceb7e269..5dee7e3c 100644
--- a/cmake/CeresConfig.cmake.in
+++ b/cmake/CeresConfig.cmake.in
@@ -195,7 +195,7 @@ set(CERES_EIGEN_VERSION @Eigen3_VERSION@)
@@ -178,7 +178,10 @@
include(CMakeFindDependencyMacro)
# Optional dependencies
@METIS_DEPENDENCY@
-@SuiteSparse_DEPENDENCY@
+if (@SUITESPARSE@)
+ find_dependency(CHOLMOD)
+ find_dependency(SPQR)
+endif()
@CUDAToolkit_DEPENDENCY@
@Threads_DEPENDENCY@

@@ -195,7 +198,7 @@
# Search quietly to control the timing of the error message if not found. The
# search should be for an exact match, but for usability reasons do a soft
# match and reject with an explanation below.
-find_package(Eigen3 ${CERES_EIGEN_VERSION} QUIET)
+find_package(Eigen3 CONFIG ${CERES_EIGEN_VERSION} QUIET)
+find_dependency(Eigen3 CONFIG ${CERES_EIGEN_VERSION} QUIET)
if (Eigen3_FOUND)
if (NOT Eigen3_VERSION VERSION_EQUAL CERES_EIGEN_VERSION)
# CMake's VERSION check in FIND_PACKAGE() will accept any version >= the
@@ -217,55 +217,8 @@ else (Eigen3_FOUND)
@@ -217,55 +220,7 @@
endif (Eigen3_FOUND)

# glog (and maybe gflags).
Expand Down Expand Up @@ -64,7 +76,6 @@ index ceb7e269..5dee7e3c 100644
- endif()
- endif()
-endif(CERES_USES_MINIGLOG)
+include(CMakeFindDependencyMacro)
+find_dependency(glog NO_MODULE)

# Import exported Ceres targets, if they have not already been imported.
Expand Down
10 changes: 7 additions & 3 deletions ports/ceres/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "ceres",
"version": "2.2.0",
"port-version": 1,
"description": "non-linear optimization package",
"homepage": "https://github.com/ceres-solver/ceres-solver",
"license": "Apache-2.0",
Expand Down Expand Up @@ -49,9 +50,12 @@
]
},
{
"name": "suitesparse",
"default-features": false
}
"name": "suitesparse-cholmod",
"features": [
"matrixops"
]
},
"suitesparse-spqr"
]
},
"tools": {
Expand Down
1 change: 1 addition & 0 deletions ports/colmap/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "colmap",
"version": "3.11.1",
"port-version": 1,
"description": "COLMAP is a general-purpose Structure-from-Motion (SfM) and Multi-View Stereo (MVS) pipeline with a graphical and command-line interface. It offers a wide range of features for reconstruction of ordered and unordered image collections. The software is licensed under the new BSD license.",
"homepage": "https://colmap.github.io/",
"license": "BSD-3-Clause",
Expand Down
1 change: 1 addition & 0 deletions ports/g2o/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ vcpkg_cmake_configure(
-DBUILD_LGPL_SHARED_LIBS=${BUILD_LGPL_SHARED_LIBS}
-DG2O_BUILD_EXAMPLES=OFF
-DG2O_BUILD_APPS=OFF
-DBUILD_CSPARSE=OFF
)

vcpkg_cmake_install()
Expand Down
5 changes: 3 additions & 2 deletions ports/g2o/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "g2o",
"version-date": "2024-12-14",
"port-version": 2,
"port-version": 3,
"description": "g2o: A General Framework for Graph Optimization",
"homepage": "https://openslam.org/g2o.html",
"dependencies": [
"ceres",
"eigen3",
"lapack",
"suitesparse",
"suitesparse-cholmod",
"suitesparse-cxsparse",
{
"name": "vcpkg-cmake",
"host": true
Expand Down
33 changes: 33 additions & 0 deletions ports/suitesparse-amd/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO DrTimothyAldenDavis/SuiteSparse
REF v7.8.3
SHA512 fc0fd0aaf55a6712a3b8ca23bf7536a31d52033e090370ebbf291f05d0e073c7dcfd991a80b037f54663f524804582b87af86522c2e4435091527f0d3c189244
HEAD_REF dev
)

set(PACKAGE_NAME AMD)

string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC_LIBS)
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
)

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}/Doc/License.txt")
19 changes: 19 additions & 0 deletions ports/suitesparse-amd/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$comment": "Use scripts/update_suitesparse.py to update all SuiteSparse ports",
"name": "suitesparse-amd",
"version-semver": "3.3.3",
"description": "AMD: Routines for permuting sparse matrices prior to factorization in SuiteSparse",
"homepage": "https://people.engr.tamu.edu/davis/suitesparse.html",
"license": "BSD-3-Clause",
"dependencies": [
"suitesparse-config",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
36 changes: 36 additions & 0 deletions ports/suitesparse-btf/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO DrTimothyAldenDavis/SuiteSparse
REF v7.8.3
SHA512 fc0fd0aaf55a6712a3b8ca23bf7536a31d52033e090370ebbf291f05d0e073c7dcfd991a80b037f54663f524804582b87af86522c2e4435091527f0d3c189244
HEAD_REF dev
)

set(PACKAGE_NAME BTF)

string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC_LIBS)
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
)

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}/Doc/License.txt"
"${SOURCE_PATH}/${PACKAGE_NAME}/Doc/lesser.txt"
)
19 changes: 19 additions & 0 deletions ports/suitesparse-btf/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$comment": "Use scripts/update_suitesparse.py to update all SuiteSparse ports",
"name": "suitesparse-btf",
"version-semver": "2.3.2",
"description": "BTF: Software package for permuting a matrix into block upper triangular form in SuiteSparse",
"homepage": "https://people.engr.tamu.edu/davis/suitesparse.html",
"license": "LGPL-2.1-or-later",
"dependencies": [
"suitesparse-config",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
33 changes: 33 additions & 0 deletions ports/suitesparse-camd/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO DrTimothyAldenDavis/SuiteSparse
REF v7.8.3
SHA512 fc0fd0aaf55a6712a3b8ca23bf7536a31d52033e090370ebbf291f05d0e073c7dcfd991a80b037f54663f524804582b87af86522c2e4435091527f0d3c189244
HEAD_REF dev
)

set(PACKAGE_NAME CAMD)

string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC_LIBS)
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
)

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}/Doc/License.txt")
19 changes: 19 additions & 0 deletions ports/suitesparse-camd/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$comment": "Use scripts/update_suitesparse.py to update all SuiteSparse ports",
"name": "suitesparse-camd",
"version-semver": "3.3.3",
"description": "AMD: Routines for permuting sparse matrices prior to factorization in SuiteSparse",
"homepage": "https://people.engr.tamu.edu/davis/suitesparse.html",
"license": "BSD-3-Clause",
"dependencies": [
"suitesparse-config",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
33 changes: 33 additions & 0 deletions ports/suitesparse-ccolamd/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO DrTimothyAldenDavis/SuiteSparse
REF v7.8.3
SHA512 fc0fd0aaf55a6712a3b8ca23bf7536a31d52033e090370ebbf291f05d0e073c7dcfd991a80b037f54663f524804582b87af86522c2e4435091527f0d3c189244
HEAD_REF dev
)

set(PACKAGE_NAME CCOLAMD)

string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC_LIBS)
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
)

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}/Doc/License.txt")
19 changes: 19 additions & 0 deletions ports/suitesparse-ccolamd/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$comment": "Use scripts/update_suitesparse.py to update all SuiteSparse ports",
"name": "suitesparse-ccolamd",
"version-semver": "3.3.4",
"description": "CCOLAMD: Routines for constrained column approximate minimum degree ordering algorithm in SuiteSparse",
"homepage": "https://people.engr.tamu.edu/davis/suitesparse.html",
"license": "BSD-3-Clause",
"dependencies": [
"suitesparse-config",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
Loading
Loading