forked from ports/contrib
22 lines
804 B
Plaintext
22 lines
804 B
Plaintext
# Description: A collection of sparse matrix libraries
|
|
# URL: http://faculty.cse.tamu.edu/davis/suitesparse.html
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: chrpath intel-tbb lapack metis
|
|
|
|
name=suitesparse
|
|
version=5.7.2
|
|
release=1
|
|
source=(https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/v$version/$name-$version.tar.gz suitesparse-no-demo.patch)
|
|
|
|
build() {
|
|
cd SuiteSparse-$version
|
|
patch -p1 -i ../suitesparse-no-demo.patch
|
|
BLAS=-lblas LAPACK=-llapack TBB=-ltbb SPQR_CONFIG=-DHAVE_TBB MY_METIS_LIB=/usr/lib/libmetis.so make
|
|
install -dm755 $PKG/usr/{include,lib}
|
|
|
|
BLAS=-lblas LAPACK=-llapack TBB=-ltbb SPQR_CONFIG=-DHAVE_TBB MY_METIS_LIB=/usr/lib/libmetis.so \
|
|
make INSTALL_LIB=$PKG/usr/lib INSTALL_INCLUDE=$PKG/usr/include install
|
|
|
|
chrpath -d $PKG/usr/lib/*
|
|
}
|