mirror of
https://code.it4i.cz/sccs/easyconfigs-it4i.git
synced 2025-04-08 07:52:11 +01:00
72 lines
2.2 KiB
Plaintext
72 lines
2.2 KiB
Plaintext
# IT4Innovations
|
|
# LK JK 2022
|
|
|
|
easyblock = 'CMakeMake'
|
|
|
|
name = 'ParaView'
|
|
version = '5.9.1'
|
|
versionsuffix = '-OSMESA'
|
|
|
|
homepage = "https://www.paraview.org"
|
|
description = "ParaView is a scientific parallel visualizer."
|
|
|
|
toolchain = {'name': 'intel', 'version': '2020b'}
|
|
toolchainopts = {'pic': True, 'usempi': True}
|
|
|
|
local_download_suffix = 'download.php?submit=Download&version=v%(version_major_minor)s&type=source&os=all&downloadFile='
|
|
source_urls = ['https://www.paraview.org/paraview-downloads/%s' % local_download_suffix]
|
|
sources = ["%(name)s-v%(version)s.tar.gz"]
|
|
checksums = ['efbcba00ba38c23d0ada1bde7144a8745caa308d9e1f94a4a71d8af63732266f']
|
|
|
|
dependencies = [
|
|
('Python', '3.8.6'),
|
|
('SciPy-bundle', '2020.11'),
|
|
('XZ', '5.2.5'),
|
|
('HDF5', '1.10.7'),
|
|
('netCDF', '4.7.4'),
|
|
('libGLU', '9.0.1'),
|
|
# ('X11', '20201008'),
|
|
('Mesa', '20.2.1'),
|
|
# ('Qt5', '5.14.2'),
|
|
('zlib', '1.2.11'),
|
|
('FFmpeg', '4.3.1'),
|
|
('Szip', '2.1.1'),
|
|
]
|
|
|
|
builddependencies = [('CMake', '3.18.4')]
|
|
|
|
separate_build_dir = True
|
|
|
|
# Paraview
|
|
configopts = '-DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON -DPARAVIEW_BUILD_SHARED_LIBS=ON '
|
|
configopts += '-DPARAVIEW_USE_MPI=ON '
|
|
configopts += '-DPARAVIEW_ENABLE_FFMPEG=ON '
|
|
configopts += '-DPARAVIEW_USE_PYTHON=ON '
|
|
configopts += '-DPython3_ROOT_DIR=$EBROOTPYTHON '
|
|
|
|
# OSMesa
|
|
configopts += '-DPARAVIEW_BUILD_QT_GUI=OFF '
|
|
configopts += '-DVTK_USE_X=OFF '
|
|
configopts += '-DOPENGL_INCLUDE_DIR=IGNORE '
|
|
configopts += '-DOPENGL_xmesa_INCLUDE_DIR=IGNORE '
|
|
configopts += '-DOPENGL_gl_LIBRARY=IGNORE '
|
|
configopts += '-DOSMESA_INCLUDE_DIR=$EBROOTMESA/include '
|
|
configopts += '-DOSMESA_LIBRARY=$EBROOTMESA/lib/libOSMesa.so '
|
|
configopts += '-DVTK_OPENGL_HAS_OSMESA=ON '
|
|
configopts += '-DVTK_USE_OFFSCREEN=OFF '
|
|
|
|
# OpenGL utility library
|
|
configopts += '-DOPENGL_glu_LIBRARY=$EBROOTLIBGLU/lib/libGLU.%s ' % SHLIB_EXT
|
|
|
|
# no paraview binary
|
|
sanity_check_paths = {
|
|
'files': ['bin/pvpython'],
|
|
'dirs': ['include/paraview-%(version_major_minor)s', 'lib/python%(pyshortver)s/site-packages'],
|
|
}
|
|
|
|
sanity_check_commands = ['python -c "import paraview"']
|
|
|
|
modextrapaths = {'PYTHONPATH': ['lib64/python%(pyshortver)s/site-packages', 'lib/python%(pyshortver)s/site-packages']}
|
|
|
|
moduleclass = 'vis'
|