contrib/suitesparse/Pkgfile

25 lines
695 B
Plaintext
Raw Normal View History

# 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
name=suitesparse
2023-11-04 10:11:02 +01:00
version=7.3.1
2022-11-14 19:34:58 +01:00
release=1
source=(https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/v$version/$name-$version.tar.gz)
build() {
2019-11-06 20:04:43 +01:00
cd SuiteSparse-$version
2020-07-15 10:12:15 +02: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 12:27:34 +01:00
make
2022-11-12 12:27:34 +01:00
make DESTDIR=$PKG install
}