git: 24eb2fbf5e80 - main - math/vtk9: Limit net/py-mpi4py dependency when both PYTHON and MPI options are on
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 20 Oct 2022 05:18:00 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=24eb2fbf5e80b7ba9ea3be8cabfcf7dd54b08935
commit 24eb2fbf5e80b7ba9ea3be8cabfcf7dd54b08935
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-10-20 05:15:59 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-10-20 05:17:58 +0000
math/vtk9: Limit net/py-mpi4py dependency when both PYTHON and MPI options are on
PR: 267191
Reported by: VVD <vvd@unislabs.com>
---
math/vtk9/Makefile | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/math/vtk9/Makefile b/math/vtk9/Makefile
index 116521129e1b..2ec7af56d10f 100644
--- a/math/vtk9/Makefile
+++ b/math/vtk9/Makefile
@@ -1,6 +1,6 @@
PORTNAME= vtk
DISTVERSION= 9.1.0
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= math graphics
MASTER_SITES= https://vtk.org/files/release/${VTK_SHORT_VER}/
PKGNAMESUFFIX= 9
@@ -19,8 +19,6 @@ LIB_DEPENDS= \
libnetcdf.so:science/netcdf \
libpng.so:graphics/png \
libtiff.so:graphics/tiff
-BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mpi4py>0:net/py-mpi4py@${PY_FLAVOR}
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mpi4py>0:net/py-mpi4py@${PY_FLAVOR}
USES= alias cmake compiler:c++11-lang gl jpeg localbase xorg
USE_LDCONFIG= ${PREFIX}/lib/vtk-${VTK_SHORT_VER}
@@ -112,6 +110,11 @@ USES+= gl
USE_GL= gl glu
.endif
+.if ${PORT_OPTIONS:MPYTHON} && ${PORT_OPTIONS:MMPI}
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mpi4py>0:net/py-mpi4py@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mpi4py>0:net/py-mpi4py@${PY_FLAVOR}
+.endif
+
CONFLICTS= vtk6 vtk8
do-install-PYTHON-on: