# IT4Innovations 2020
# LK

easyblock = 'CMakeMake'

name = "VirtualGL"
version = '2.6.4'

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

# empty version to ensure that dependencies are loaded
toolchain = {'name': 'GCC', 'version': '8.3.0-2.32'}

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

dependencies = [
        ('Mesa', '19.2.1'),
        ('libjpeg-turbo', '2.0.4'),
        ('libGLU', '9.0.1', '-Mesa-19.2.1'),
        ('CUDA', '10.2.89', '', True),
]

builddependencies = [
        ('CMake', '3.16.2', '', True),
]

#skipsteps = ['source', 'patch', 'prepare', 'configure', 'build', 'test']

sanity_check_paths = {
    'files': ['bin/vglrun'],
    'dirs': ['']
}

moduleclass = 'tools'
