git: b6b86b72d51d - main - math/mfem: Add METIS option
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 05 Sep 2022 16:44:29 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b6b86b72d51d37288fa3f2538d47235799caceaa
commit b6b86b72d51d37288fa3f2538d47235799caceaa
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-09-05 16:43:58 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-09-05 16:44:26 +0000
math/mfem: Add METIS option
---
math/mfem/Makefile | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/math/mfem/Makefile b/math/mfem/Makefile
index 3a449d8f02e1..4cfc5261b956 100644
--- a/math/mfem/Makefile
+++ b/math/mfem/Makefile
@@ -1,7 +1,7 @@
PORTNAME= mfem
DISTVERSIONPREFIX= v
DISTVERSION= 4.4
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
@@ -17,10 +17,10 @@ USE_LDCONFIG= yes
CMAKE_ON= BUILD_SHARED_LIBS
CMAKE_TESTING_ON= MFEM_ENABLE_TESTING # tests are broken, see https://github.com/mfem/mfem/issues/3163
-OPTIONS_DEFINE= SUPERLU
+OPTIONS_DEFINE= METIS SUPERLU
OPTIONS_SINGLE= MPI
OPTIONS_SINGLE_MPI= NOMPI MPICH OPENMPI
-OPTIONS_DEFAULT= MPICH SUPERLU # should be the same MPI choice as in science/hypre
+OPTIONS_DEFAULT= METIS MPICH SUPERLU # should be the same MPI choice as in science/hypre
OPTIONS_SUB= yes
NOMPI_DESC= Build without parallel processing support
@@ -36,6 +36,10 @@ OPENMPI_CMAKE_ON= -DTPL_ENABLE_MPI=ON
OPENMPI_LIB_DEPENDS= libHYPRE.so:science/hypre \
libmetis.so:math/metis
+METIS_DESC= Build with metis
+METIS_CMAKE_BOOL= MFEM_USE_METIS
+METIS_LIB_DEPENDS= libmetis.so:math/metis
+
SUPERLU_DESC= Enable SuperLU use
SUPERLU_CMAKE_BOOL= MFEM_USE_SUPERLU
SUPERLU_CMAKE_ON= -DSuperLUDist_DIR=${LOCALBASE} -DSuperLUDist_INCLUDE_DIRS=${LOCALBASE}/include/superlu