contrib/suitesparse/Pkgfile

27 lines
834 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: lapack metis
# TODO: Add openmp port: https://github.com/DrTimothyAldenDavis/SuiteSparse#for-distro-maintainers-linux-homebrew-spack-r-octave-trilinos
name=suitesparse
version=7.2.2
release=1
source=(https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/v$version/$name-$version.tar.gz)
build() {
cd SuiteSparse-$version
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\"" \
make
make DESTDIR=$PKG install
}