Tue Dec 19 10:34:09 2023 UTC ()
math/superlu: update to 6.0.1, build shared lib, fix BLAS usage

This now links against the correct BLAS and installs a shared lib, as is
more customary for us. Upstream Changes:

October 17, 2020   Version 5.2.2
    Applied a number of patches, merged a number of PRs.
Septtember 29, 2021   Version 5.3.0
    Added CI with github Actions.
    Applied a number of patches.
    Cleaned up warnings.
April 5, 2023   Version 6.0.0
    Add 64-bit indexing support and METIS ordering option.
August 5, 2023   Version 6.0.1
    Minor fixes, mostly documentation and clean up warnings


(thor)
diff -r1.33 -r1.34 pkgsrc/math/superlu/Makefile
diff -r1.4 -r1.5 pkgsrc/math/superlu/PLIST
diff -r1.11 -r1.12 pkgsrc/math/superlu/distinfo

cvs diff -r1.33 -r1.34 pkgsrc/math/superlu/Makefile (expand / switch to unified diff)

--- pkgsrc/math/superlu/Makefile 2022/06/28 11:34:45 1.33
+++ pkgsrc/math/superlu/Makefile 2023/12/19 10:34:09 1.34
@@ -1,19 +1,26 @@ @@ -1,19 +1,26 @@
1# $NetBSD: Makefile,v 1.33 2022/06/28 11:34:45 wiz Exp $ 1# $NetBSD: Makefile,v 1.34 2023/12/19 10:34:09 thor Exp $
2 2
3DISTNAME= superlu-5.2.1 3DISTNAME= superlu-6.0.1
4PKGREVISION= 4 
5CATEGORIES= math 4CATEGORIES= math
6MASTER_SITES= ${MASTER_SITE_GITHUB:=xiaoyeli/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=xiaoyeli/}
7GITHUB_TAG= v${PKGVERSION_NOREV} 6GITHUB_TAG= v${PKGVERSION_NOREV}
8 7
9MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://portal.nersc.gov/project/sparse/superlu/ 9HOMEPAGE= https://portal.nersc.gov/project/sparse/superlu/
11COMMENT= Library for solving large, sparse, nonsymmetric systems of linear equations 10COMMENT= Library for solving large, sparse, nonsymmetric systems of linear equations
12 11
13USE_CMAKE= yes 12USE_CMAKE= yes
14USE_LANGUAGES= c fortran 13USE_LANGUAGES= c fortran
15TEST_TARGET= test 14TEST_TARGET= test
16 15
 16CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON
 17# Does not use C interface, also somehow has broken FindBLAS usage.
 18CMAKE_ARGS+= -DTPL_ENABLE_INTERNAL_BLASLIB=OFF
 19CMAKE_ARGS+= -DTPL_BLAS_LIBRARIES=${BLAS_LIBS:Q}
 20# Keeping those here. In future, that should work and replace the
 21# above. Need upstream bug report.
 22#CMAKE_ARGS+= -DBLA_PREFER_PKGCONFIG=ON
 23#CMAKE_ARGS+= -DBLA_PKGCONFIG_BLAS=${BLAS_PC}
17 24
18.include "../../mk/blas.buildlink3.mk" 25.include "../../mk/blas.buildlink3.mk"
19.include "../../mk/bsd.pkg.mk" 26.include "../../mk/bsd.pkg.mk"

cvs diff -r1.4 -r1.5 pkgsrc/math/superlu/PLIST (expand / switch to unified diff)

--- pkgsrc/math/superlu/PLIST 2020/02/26 16:29:43 1.4
+++ pkgsrc/math/superlu/PLIST 2023/12/19 10:34:09 1.5
@@ -1,12 +1,20 @@ @@ -1,12 +1,20 @@
1@comment $NetBSD: PLIST,v 1.4 2020/02/26 16:29:43 wiz Exp $ 1@comment $NetBSD: PLIST,v 1.5 2023/12/19 10:34:09 thor Exp $
2include/slu_Cnames.h 2include/slu_Cnames.h
3include/slu_cdefs.h 3include/slu_cdefs.h
4include/slu_dcomplex.h 4include/slu_dcomplex.h
5include/slu_ddefs.h 5include/slu_ddefs.h
6include/slu_scomplex.h 6include/slu_scomplex.h
7include/slu_sdefs.h 7include/slu_sdefs.h
8include/slu_util.h 8include/slu_util.h
9include/slu_zdefs.h 9include/slu_zdefs.h
 10include/superlu_config.h
10include/superlu_enum_consts.h 11include/superlu_enum_consts.h
11include/supermatrix.h 12include/supermatrix.h
12lib/libsuperlu.a 13lib/cmake/superlu/superluConfig.cmake
 14lib/cmake/superlu/superluConfigVersion.cmake
 15lib/cmake/superlu/superluTargets-noconfig.cmake
 16lib/cmake/superlu/superluTargets.cmake
 17lib/libsuperlu.so
 18lib/libsuperlu.so.6
 19lib/libsuperlu.so.${PKGVERSION}
 20lib/pkgconfig/superlu.pc

cvs diff -r1.11 -r1.12 pkgsrc/math/superlu/distinfo (expand / switch to unified diff)

--- pkgsrc/math/superlu/distinfo 2021/10/26 10:56:08 1.11
+++ pkgsrc/math/superlu/distinfo 2023/12/19 10:34:09 1.12
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.11 2021/10/26 10:56:08 nia Exp $ 1$NetBSD: distinfo,v 1.12 2023/12/19 10:34:09 thor Exp $
2 2
3BLAKE2s (superlu-5.2.1.tar.gz) = 5117aa82f3ae63e6c9aaa9906044b5783be52927fba045ebe039a2299dc5bb2b 3BLAKE2s (superlu-6.0.1.tar.gz) = 1a4be5a5755a388fabc078e1ab6d48f8da4205f3877a51e064c8579077ca75bc
4SHA512 (superlu-5.2.1.tar.gz) = c5f9ca6055b6861dcc89e31c446c9f57a4e16333f9f24f109e8f375eded878005fa520ab39d2c1dd0ce12f289f9e251aef47da58c975bf5b1f09ca7539194e90 4SHA512 (superlu-6.0.1.tar.gz) = 6dd2baeff9ca7ed4761845b9a30c6dca4e19ca498e10ea7360013b3aece576ca996a8bf31c4479321feda6f5266235d68ea9a2e256f0ffe91f804d4cdecd3847
5Size (superlu-5.2.1.tar.gz) = 2468374 bytes 5Size (superlu-6.0.1.tar.gz) = 2521228 bytes