33#
44# SPDX-License-Identifier: (Apache-2.0 OR MIT)
55
6-
76import os
87from spack import *
98
@@ -12,19 +11,22 @@ class VtkMaillage(CMakePackage):
1211 """Recette "pole maillage" de VTK, en vue d'eviter d'entrer en collision avec toute autre recette de VTK.
1312 The Visualization Toolkit (VTK) is an open-source, freely
1413 available software system for 3D computer graphics, image
15- processing and visualization. """
14+ processing and visualization.
15+ WARNING : this recipe is primarily for use with VTK v 7.1.1 with OpenGL
16+ backend and without MPI.
17+ """
1618
1719 homepage = "http://www.vtk.org"
1820 url = 'https://vtk.org/files/release/7.1/VTK-7.1.1.tar.gz'
1921
2022 # VTK7 defaults to OpenGL2 rendering backend
21- variant ('opengl2' , default = True , description = 'Enable OpenGL2 backend' )
23+ variant ('opengl2' , default = False , description = 'Enable OpenGL2 backend' ) # ICI default=False
2224 variant ('osmesa' , default = False , description = 'Enable OSMesa support' )
2325 # variant('python', default=False, description='Enable Python support')
2426 variant ('qt' , default = False , description = 'Build with support for Qt' )
2527 # variant('xdmf', default=False, description='Build XDMF file support')
2628 # variant('ffmpeg', default=False, description='Build with FFMPEG support')
27- variant ('mpi' , default = True , description = 'Enable MPI support' )
29+ variant ('mpi' , default = False , description = 'Enable MPI support' ) # ICI default=False
2830
2931 # At the moment, we cannot build with both osmesa and qt, but as of
3032 # VTK 8.1, that should change
@@ -153,12 +155,12 @@ def cmake_args(self):
153155 "-DBUILD_SHARED_LIBS:BOOL=ON" ,
154156 "-DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON" ,
155157 "-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON" ,
156- "-DModule_vtkIOExportOpenGL:BOOL=ON" ,
158+ # "-DModule_vtkIOExportOpenGL:BOOL=ON", # ICI inutile pour nous
157159 "-DModule_vtkImagingOpenGL:BOOL=ON" ,
158160 "-DModule_vtkIOExportOpenGL2:BOOL=OFF" ,
159161 "-DModule_vtkImagingOpenGL2:BOOL=OFF" ,
160162 "-DVTK_USE_SYSTEM_GL2PS:BOOL=OFF" ,
161- "-DVTK_RENDERING_BACKEND=OpenGL" ,
163+ # "-DVTK_RENDERING_BACKEND=OpenGL", # ICI déjà fait en L91
162164 "-DVTK_Group_Imaging:BOOL=ON" ,
163165 "-DVTK_Group_Rendering:BOOL=ON" ,
164166 "-DVTK_ALL_NEW_OBJECT_FACTORY=OFF" ,
@@ -206,7 +208,7 @@ def cmake_args(self):
206208 if '+mpi' in spec :
207209 cmake_args .extend (["-DModule_vtkIOParallelXdmf3:BOOL=ON" ])
208210
209- cmake_args .append ('-DVTK_RENDERING_BACKEND:STRING=' + opengl_ver )
211+ # cmake_args.append('-DVTK_RENDERING_BACKEND:STRING=' + opengl_ver) # ICI déjà fait en L91
210212
211213 if spec .satisfies ('@:8.1.0' ):
212214 cmake_args .append ('-DVTK_USE_SYSTEM_GLEW:BOOL=ON' )
0 commit comments