vtk: Use the vendored libharu (#11293)

VTK requires a patched libharu that is not maintained upstream
See https://github.com/libharu/libharu/pull/157
This commit is contained in:
Chuck Atkins 2019-04-30 04:07:29 -04:00 committed by Axel Huebl
parent 1a920ee64f
commit d2a5a10f08

View File

@ -34,10 +34,6 @@ class Vtk(CMakePackage):
variant('ffmpeg', default=False, description='Build with FFMPEG support')
variant('mpi', default=True, description='Enable MPI support')
# Haru causes trouble on Fedora and Ubuntu in v8.1.1
# See https://bugzilla.redhat.com/show_bug.cgi?id=1460059#c13
variant('haru', default=True, description='Enable libharu')
patch('gcc.patch', when='@6.1.0')
# At the moment, we cannot build with both osmesa and qt, but as of
@ -68,8 +64,6 @@ class Vtk(CMakePackage):
depends_on('mpi', when='+mpi')
depends_on('libharu', when='+haru')
depends_on('boost', when='+xdmf')
depends_on('boost+mpi', when='+xdmf +mpi')
@ -109,15 +103,13 @@ def cmake_args(self):
'-DBUILD_SHARED_LIBS=ON',
'-DVTK_RENDERING_BACKEND:STRING={0}'.format(opengl_ver),
'-DVTK_USE_SYSTEM_LIBHARU=%s' % (
'ON' if '+haru' in spec else 'OFF'),
# In general, we disable use of VTK "ThirdParty" libs, preferring
# spack-built versions whenever possible
'-DVTK_USE_SYSTEM_LIBRARIES:BOOL=ON',
# However, in a few cases we can't do without them yet
'-DVTK_USE_SYSTEM_GL2PS:BOOL=OFF',
'-DVTK_USE_SYSTEM_LIBHARU=OFF',
'-DVTK_USE_SYSTEM_LIBPROJ4:BOOL=OFF',
'-DVTK_USE_SYSTEM_OGGTHEORA:BOOL=OFF',