git: 0da201f5ed31 - main - math/armadillo: Add OPENBLAS_LAPACK option

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 08 Apr 2024 06:49:45 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0da201f5ed3189189ac207c69b791b13184bb2bd

commit 0da201f5ed3189189ac207c69b791b13184bb2bd
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-04-08 06:45:19 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-04-08 06:45:19 +0000

    math/armadillo: Add OPENBLAS_LAPACK option
---
 math/armadillo/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/math/armadillo/Makefile b/math/armadillo/Makefile
index 5d856648ada4..dd29490c2132 100644
--- a/math/armadillo/Makefile
+++ b/math/armadillo/Makefile
@@ -12,16 +12,21 @@ LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 LIB_DEPENDS=	libarpack.so:math/arpack-ng \
-		liblapack.so:math/lapack \
 		libsuperlu.so:math/superlu
 
 USES=		blaslapack:openblas cmake:testing compiler:c++11-lang pathfix pkgconfig tar:xz
 
-CMAKE_OFF=	ALLOW_BLAS_LAPACK_MACOS ALLOW_FLEXIBLAS_LINUX ALLOW_OPENBLAS_MACOS BUILD_SMOKE_TEST OPENBLAS_PROVIDES_LAPACK
+CMAKE_OFF=	ALLOW_BLAS_LAPACK_MACOS ALLOW_FLEXIBLAS_LINUX ALLOW_OPENBLAS_MACOS BUILD_SMOKE_TEST
 CMAKE_ON=	BUILD_SHARED_LIBS
 CMAKE_TESTING_ON=	BUILD_SMOKE_TEST
 USE_LDCONFIG=	yes
 
 PLIST_SUB=	PORTVERSION=${PORTVERSION}
 
+OPTIONS_DEFINE=	OPENBLAS_LAPACK
+OPENBLAS_LAPACK_DESC=	Use LAPACK function from OpenBLAS
+
+OPENBLAS_LAPACK_CMAKE_BOOL=	OPENBLAS_PROVIDES_LAPACK
+OPENBLAS_LAPACK_LIB_DEPENDS_OFF=liblapack.so:math/lapack
+
 .include <bsd.port.mk>