git: 62af3b140f21 - main - math/suitesparse: avoid mixing various BLAS/LAPACK libraries

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Fri, 21 Jun 2024 20:18:54 UTC
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=62af3b140f21f4f1eaf7adb3b469d1d276927602

commit 62af3b140f21f4f1eaf7adb3b469d1d276927602
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2024-06-19 11:26:46 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2024-06-21 20:18:10 +0000

    math/suitesparse: avoid mixing various BLAS/LAPACK libraries
    
    When math/blas and math/atlas are installed on the same machine, it
    seems that they can be mixed, causing a CHOLMOD failure.
    
    PR:             279820
    Reported by:    gja822@narod.ru
---
 math/suitesparse/bsd.suitesparse.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/math/suitesparse/bsd.suitesparse.mk b/math/suitesparse/bsd.suitesparse.mk
index cf3e5002f85d..5719f8b702b4 100644
--- a/math/suitesparse/bsd.suitesparse.mk
+++ b/math/suitesparse/bsd.suitesparse.mk
@@ -25,6 +25,8 @@ CONFIGURE_WRKSRC=${WRKSRC}/SuiteSparse_config
 .endif
 BUILD_WRKSRC=	${CONFIGURE_WRKSRC}
 CMAKE_SOURCE_PATH=	${CONFIGURE_WRKSRC}
+CMAKE_ARGS+=	-DBLAS_LIBRARIES:STRING="${BLASLIB}"	\
+		-DLAPACK_LIBRARIES:STRING="${LAPACKLIB}"
 
 .if ${MPORTNAME} != config &&	\
 	${MPORTNAME} != CSparse &&	\