easyblock = 'CMakeMake'

name = 'OSPRay'
version = '1.6.1'

homepage = 'http://www.ospray.org'
description = """
 A Ray Tracing Based Rendering Engine for High-Fidelity Visualization"""
toolchain = {'name': 'intel', 'version': '2017a'}

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

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

dependencies = [
    ('tbb', '2017.6.196', '', True),
    ('Embree', '3.2.0'),
]

separate_build_dir = True

#skipsteps= ['configure', 'build']

sanity_check_paths = {
    'files': ['lib64/libospray.so'],
    'dirs': ['bin', 'lib64'],
}

# add the top dir to PATH
modextrapaths = {
    'PATH': ''
}

moduleclass = 'vis'
