diff --git a/common/shlibs b/common/shlibs index 5d5c7ef58dd..d030725940c 100644 --- a/common/shlibs +++ b/common/shlibs @@ -68,6 +68,7 @@ libppl.so.14 ppl-1.2_1 libppl_c.so.4 ppl-0.11_1 libstdc++.so.6 libstdc++-4.4.0_1 libssp.so.0 libssp-4.4.0_1 +libcxsparse.so.3 SuiteSparse-5.10.1_1 libncurses.so.6 ncurses-libs-6.0_1 ignore libncursesw.so.6 ncurses-libs-5.8_1 ignore libtinfo.so.6 ncurses-libtinfo-libs-6.2_2 diff --git a/srcpkgs/SuiteSparse-devel b/srcpkgs/SuiteSparse-devel new file mode 120000 index 00000000000..cfb45e420a6 --- /dev/null +++ b/srcpkgs/SuiteSparse-devel @@ -0,0 +1 @@ +SuiteSparse \ No newline at end of file diff --git a/srcpkgs/SuiteSparse/template b/srcpkgs/SuiteSparse/template new file mode 100644 index 00000000000..23f75ff6dd7 --- /dev/null +++ b/srcpkgs/SuiteSparse/template @@ -0,0 +1,42 @@ +# Template file for 'SuiteSparse' +pkgname=SuiteSparse +version=5.10.1 +revision=1 +make_build_args="BLAS=-lblas LAPACK=-llapack TBB=-ltbb SPQR_CONFIG=-DHAVE_TBB" +hostmakedepends="cmake chrpath" +makedepends="tbb-devel libgomp-devel lapack-devel mpfr-devel" +short_desc="Suite of sparse matrix software" +maintainer="Gonzalo TornarĂ­a " +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 + } +}