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-01-02 15:27:21 +01:00
|
|
|
# Depends on: chrpath lapack metis
|
2019-08-11 11:14:14 +02:00
|
|
|
|
|
|
|
name=suitesparse
|
2022-04-11 15:48:41 +02:00
|
|
|
version=5.12.0
|
2022-03-18 18:48:42 +01:00
|
|
|
release=1
|
2020-07-15 08:12:15 +00: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
|
2020-07-15 08:12:15 +00:00
|
|
|
patch -p0 -i ../suitesparse-no-demo.patch
|
|
|
|
local PKGMK_SUITESPARSE+="
|
|
|
|
_BLAS=-lblas
|
|
|
|
LAPACK=-llapack
|
|
|
|
MY_METIS_LIB=/usr/lib/libmetis.so"
|
|
|
|
|
|
|
|
make $PKGMK_SUITESPARSE
|
|
|
|
|
2019-08-11 11:14:14 +02:00
|
|
|
install -dm755 $PKG/usr/{include,lib}
|
|
|
|
|
2020-07-15 08:12:15 +00:00
|
|
|
INSTALL_LIB=$PKG/usr/lib \
|
|
|
|
INSTALL_INCLUDE=$PKG/usr/include \
|
|
|
|
make $PKGMK_SUITESPARSE install
|
2019-08-11 11:14:14 +02:00
|
|
|
|
|
|
|
chrpath -d $PKG/usr/lib/*
|
|
|
|
}
|