Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Sep 2022 08:16:02 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 05be3d3a279e - main - math/mfem: Fix SUPERLU option and make it default
Message-ID:  <202209050816.2858G2h4004969@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=05be3d3a279ef387900a0ab4fad92fe8da1d0a7d

commit 05be3d3a279ef387900a0ab4fad92fe8da1d0a7d
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-09-05 08:11:33 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-09-05 08:15:51 +0000

    math/mfem: Fix SUPERLU option and make it default
---
 math/mfem/Makefile | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/math/mfem/Makefile b/math/mfem/Makefile
index 4f1d71b3f041..3a449d8f02e1 100644
--- a/math/mfem/Makefile
+++ b/math/mfem/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	mfem
 DISTVERSIONPREFIX=	v
 DISTVERSION=	4.4
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	math
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -20,7 +20,7 @@ CMAKE_TESTING_ON=	MFEM_ENABLE_TESTING # tests are broken, see https://github.com
 OPTIONS_DEFINE=		SUPERLU
 OPTIONS_SINGLE=		MPI
 OPTIONS_SINGLE_MPI=	NOMPI MPICH OPENMPI
-OPTIONS_DEFAULT=	MPICH # should be the same choice as in science/hypre
+OPTIONS_DEFAULT=	MPICH SUPERLU # should be the same MPI choice as in science/hypre
 OPTIONS_SUB=		yes
 
 NOMPI_DESC=		Build without parallel processing support
@@ -39,6 +39,10 @@ OPENMPI_LIB_DEPENDS=	libHYPRE.so:science/hypre \
 SUPERLU_DESC=		Enable SuperLU use
 SUPERLU_CMAKE_BOOL=	MFEM_USE_SUPERLU
 SUPERLU_CMAKE_ON=	-DSuperLUDist_DIR=${LOCALBASE} -DSuperLUDist_INCLUDE_DIRS=${LOCALBASE}/include/superlu
-SUPERLU_BROKEN=		build fails, see https://github.com/mfem/mfem/issues/3171
+SUPERLU_LIB_DEPENDS=	libsuperlu_dist.so:math/superlu-dist
+SUPERLU_LDFLAGS=	-L${LOCALBASE}/lib -lsuperlu_dist # workaround for https://github.com/mfem/mfem/issues/3171#issuecomment-1236591028
+
+post-install-SUPERLU-on: # workaround for https://github.com/mfem/mfem/issues/3191
+	@${REINPLACE_CMD} -e 's|;${LOCALBASE}/include/superlu||' ${STAGEDIR}${PREFIX}/lib/cmake/mfem/MFEMConfig.cmake
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209050816.2858G2h4004969>