# IT4Innovations 2023
# JK

easyblock = 'CMakeMake'

name = 'VirtualGL'
version = '3.0'

homepage = 'https://virtualgl.org/'
description = """VirtualGL is an open source toolkit that gives any Linux or 
Unix remote display software the ability to run OpenGL applications with full 
hardware acceleration."""

toolchain = {'name': 'GCC', 'version': '11.3.0'}

source_urls = ['https://github.com/VirtualGL/virtualgl/archive/']
sources = ['%(version)s.tar.gz']
checksums = ['d6e00a8d0596cafa67955d6211e0dab6c8aa8239bd718f7eca6eb0b032711f9b']

builddependencies = [
    ('CMake', '3.20.1', '', True),
    ('binutils', '2.38'),
]

dependencies = [
    ('libjpeg-turbo', '2.1.3'),
    ('Mesa', '22.0.3'),
    ('libGLU', '9.0.2'),
    ('pocl', '1.8'),
]

local_binaries = [
    'cpustat', 'glreadtest', 'glxinfo', 'glxspheres64', 'nettest', 'tcbench',
    'vglclient', 'vglconfig', 'vglconnect', 'vglgenkey', 'vgllogin', 'vglrun',
    'vglserver_config'
]

sanity_check_paths = {
    'files': ['bin/%s' % x for x in local_binaries],
    'dirs': ['lib64', 'share', 'include'],
}

moduleclass = 'vis'
