2019-08-11 11:14:14 +02:00
|
|
|
# Description: A collection of sparse matrix libraries
|
|
|
|
# URL: http://faculty.cse.tamu.edu/davis/suitesparse.html
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2022-11-12 12:27:34 +01:00
|
|
|
# Depends on: lapack metis
|
2019-08-11 11:14:14 +02:00
|
|
|
|
|
|
|
name=suitesparse
|
2024-03-28 17:14:27 +01:00
|
|
|
version=7.7.0
|
2022-11-14 19:34:58 +01:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/v$version/$name-$version.tar.gz)
|
2019-08-11 11:14:14 +02:00
|
|
|
|
|
|
|
build() {
|
2024-01-14 15:26:18 +01:00
|
|
|
cmake -S SuiteSparse-$version -B build -G Ninja \
|
2023-10-13 19:07:09 +02:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2024-01-14 15:26:18 +01:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -ffat-lto-objects" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -ffat-lto-objects" \
|
|
|
|
-D BLA_VENDOR=Generic \
|
|
|
|
-Wno-dev
|
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2019-08-11 11:14:14 +02:00
|
|
|
}
|