Skip to content

Commit

Permalink
math/vtk9: Limit net/py-mpi4py dependency when both PYTHON and MPI op…
Browse files Browse the repository at this point in the history
…tions are on

PR:		267191
Reported by:	VVD <vvd@unislabs.com>
  • Loading branch information
yurivict committed Oct 20, 2022
1 parent f3bad4c commit 24eb2fb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions 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
Expand All @@ -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}
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 24eb2fb

Please sign in to comment.