1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

science/hypre: don’t use internal BLAS but switch to OpenBLAS

USES is set to blaslapack, but the internal BLAS and LAPACK libraries
are used: switch to the external OpenBLAS.

Since I’m there, also build with SUPERLU.

PR:		279739
Approved by:	yuri (maintainer)
This commit is contained in:
Thierry Thomas 2024-06-14 19:40:18 +02:00
parent 4c6970a7b8
commit 68be1b1411
2 changed files with 9 additions and 6 deletions

View File

@ -1,6 +1,7 @@
PORTNAME= hypre
DISTVERSIONPREFIX= v
DISTVERSION= 2.31.0
PORTREVISION= 1
CATEGORIES= science
MAINTAINER= yuri@FreeBSD.org
@ -12,7 +13,9 @@ LICENSE_COMB= dual
LICENSE_FILE_APACHE20= ${WRKSRC}/../LICENSE-APACHE
LICENSE_FILE_MIT= ${WRKSRC}/../LICENSE-MIT
USES= blaslapack cmake:testing fortran localbase
LIB_DEPENDS= libsuperlu.so:math/superlu
USES= blaslapack:openblas cmake:testing fortran localbase
USE_LDCONFIG= yes
USE_GITHUB= yes
@ -20,7 +23,11 @@ GH_ACCOUNT= hypre-space
WRKSRC_SUBDIR= src
CMAKE_ON= HYPRE_ENABLE_SHARED HYPRE_WITH_OPENMP
CMAKE_ON= HYPRE_ENABLE_SHARED HYPRE_WITH_OPENMP HYPRE_WITH_SUPERLU
CMAKE_OFF= HYPRE_ENABLE_HYPRE_BLAS HYPRE_ENABLE_HYPRE_LAPACK
CMAKE_ARGS= -DTPL_BLAS_LIBRARIES="${_BLASLIB}" \
-DTPL_SUPERLU_LIBRARIES="${LOCALBASE}/lib/libsuperlu.so" \
-DTPL_SUPERLU_INCLUDE_DIRS="${LOCALBASE}/include/superlu"
CMAKE_TESTING_ON= HYPRE_BUILD_TESTS # tests are only built and not run, see https://github.com/hypre-space/hypre/issues/502
OPTIONS_DEFINE= DOCS

View File

@ -23,8 +23,6 @@ include/HYPREf.h
include/IJ_matrix.h
include/IJ_vector.h
include/_hypre_IJ_mv.h
include/_hypre_blas.h
include/_hypre_lapack.h
include/_hypre_parcsr_ls.h
include/_hypre_parcsr_mv.h
include/_hypre_seq_block_mv.h
@ -39,10 +37,8 @@ include/aux_parcsr_matrix.h
include/csr_block_matrix.h
include/csr_matmultivec.h
include/distributed_matrix.h
include/f2c.h
include/fortran.h
include/fortran_matrix.h
include/hypre_blas.h
include/interpreter.h
include/krylov.h
include/lobpcg.h