void-packages/srcpkgs/SuiteSparse/template
cinerea0 f5711a0566 SuiteSparse: don't build against tbb.
tbb build dependency removed because of reliance
on deprecated behavior.

DrTimothyAldenDavis/SuiteSparse#10.
2022-01-28 03:27:24 -03:00

43 lines
1.2 KiB
Bash

# Template file for 'SuiteSparse'
pkgname=SuiteSparse
version=5.10.1
revision=2
# XXX: re-enable TBB=-ltbb -DSPQR_CONFIG=-DHAVE_TBB when updating, if possible
make_build_args="BLAS=-lblas LAPACK=-llapack"
hostmakedepends="cmake chrpath"
makedepends="libgomp-devel lapack-devel mpfr-devel"
short_desc="Suite of sparse matrix software"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="custom:multiple"
homepage="https://people.engr.tamu.edu/davis/suitesparse.html"
distfiles="https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/refs/tags/v${version}.tar.gz"
checksum=acb4d1045f48a237e70294b950153e48dce5b5f9ca8190e86c2b8c54ce00a7ee
do_build() {
make config library $make_build_args JOBS=$XBPS_MAKEJOBS
}
do_check() {
make go $make_build_args LD_LIBRARY_PATH=$wrksrc/lib JOBS=$XBPS_MAKEJOBS
}
do_install() {
make install $make_build_args INSTALL=$DESTDIR/usr
vlicense LICENSE.txt
# remove invalid rpath
chrpath -d $DESTDIR/usr/lib/lib*.so
}
SuiteSparse-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
# do not vmove libmetis.so
vmove "usr/lib/lib[a-ln-z]*.so"
vmove "usr/lib/libmo*.so"
vmove usr/share/doc
}
}