Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Aug 2023 08:31:52 GMT
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 52f03d7d32cb - main - Mk/Uses/mpi.mk: add MPI4PY, a helper to get the right dependency on mpi4py
Message-ID:  <202308050831.3758Vql6040331@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=52f03d7d32cb8b9485555809796c8ebfe362ca00

commit 52f03d7d32cb8b9485555809796c8ebfe362ca00
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2023-08-05 08:28:49 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2023-08-05 08:28:49 +0000

    Mk/Uses/mpi.mk: add MPI4PY, a helper to get the right dependency on mpi4py
---
 Mk/Uses/mpi.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Mk/Uses/mpi.mk b/Mk/Uses/mpi.mk
index 29c417ce62f8..770e9d375f19 100644
--- a/Mk/Uses/mpi.mk
+++ b/Mk/Uses/mpi.mk
@@ -31,6 +31,7 @@ USES+=	pkgconfig
 LIB_DEPENDS+=	libmpich.so:net/mpich
 MPI_HOME=	${LOCALBASE}
 MPI_LIBS+=	`pkgconf --libs mpich`
+MPI4PY=		${PYTHON_PKGNAMEPREFIX}mpi4py-mpich>0:net/py-mpi4py-mpich@${PY_FLAVOR}
 .    if ${USES:Mfortran}
 MPI_LIBS+=	-lmpifort
 MPIFC=		${MPI_HOME}/bin/mpif90
@@ -40,6 +41,7 @@ MPI_CFLAGS+=	`pkgconf --cflags mpich`
 .  elif ${mpi_ARGS} == openmpi
 LIB_DEPENDS+=	libmpi_cxx.so:net/openmpi
 MPI_HOME=	${LOCALBASE}/mpi/openmpi
+MPI4PY=		${PYTHON_PKGNAMEPREFIX}mpi4py>0:net/py-mpi4py@${PY_FLAVOR}
 .    if ${USES:Mfortran}
 MPI_LIBS+=	`pkgconf --libs ompi-fort`
 MPIFC=		${MPI_HOME}/bin/mpif90



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