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 11:27:34 +00:00
|
|
|
# Depends on: lapack metis
|
2019-08-11 11:14:14 +02:00
|
|
|
|
|
|
|
name=suitesparse
|
2023-11-04 10:11:02 +01:00
|
|
|
version=7.3.1
|
2022-11-14 18:34:58 +00: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() {
|
2019-11-06 20:04:43 +01:00
|
|
|
cd SuiteSparse-$version
|
2020-07-15 08:12:15 +00:00
|
|
|
|
2023-10-13 19:07:09 +02:00
|
|
|
CMAKE_OPTIONS="-G Ninja \
|
|
|
|
-D BLA_VENDOR=Generic \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE=\"$CFLAGS -ffat-lto-objects\" \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE=\"$CXXFLAGS -ffat-lto-objects\"" \
|
2022-11-12 11:27:34 +00:00
|
|
|
make
|
2019-08-11 11:14:14 +02:00
|
|
|
|
2022-11-12 11:27:34 +00:00
|
|
|
make DESTDIR=$PKG install
|
2019-08-11 11:14:14 +02:00
|
|
|
}
|