easyblock = 'CMakeMake'

name = 'OSPRay'
version = '1.3.0'

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.5.2', '', True),
]

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

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'