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
|
2020-01-20 18:30:38 +00:00
|
|
|
# Depends on: chrpath intel-tbb lapack metis
|
2019-08-11 11:14:14 +02:00
|
|
|
|
|
|
|
name=suitesparse
|
2020-07-01 20:47:47 +00:00
|
|
|
version=5.8.0
|
2020-02-21 01:42:42 +01:00
|
|
|
release=1
|
2019-11-06 20:04:43 +01:00
|
|
|
source=(https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/v$version/$name-$version.tar.gz suitesparse-no-demo.patch)
|
2019-08-11 11:14:14 +02:00
|
|
|
|
|
|
|
build() {
|
2019-11-06 20:04:43 +01:00
|
|
|
cd SuiteSparse-$version
|
|
|
|
patch -p1 -i ../suitesparse-no-demo.patch
|
2020-04-12 15:17:48 +00:00
|
|
|
BLAS=-lblas LAPACK=-llapack TBB=-ltbb SPQR_CONFIG=-DHAVE_TBB MY_METIS_LIB=/usr/lib/libmetis.so make
|
2019-08-11 11:14:14 +02:00
|
|
|
install -dm755 $PKG/usr/{include,lib}
|
|
|
|
|
2020-04-12 15:17:48 +00:00
|
|
|
BLAS=-lblas LAPACK=-llapack TBB=-ltbb SPQR_CONFIG=-DHAVE_TBB MY_METIS_LIB=/usr/lib/libmetis.so \
|
2019-08-11 11:14:14 +02:00
|
|
|
make INSTALL_LIB=$PKG/usr/lib INSTALL_INCLUDE=$PKG/usr/include install
|
|
|
|
|
|
|
|
chrpath -d $PKG/usr/lib/*
|
|
|
|
}
|