easyblock = 'ConfigureMake'

name = 'OpenDX'
version = '4.4.4'

homepage = 'http://www.opendx.org'
description = """Open source visualization software package based on IBM's Visualization Data Explorer."""

toolchain = {'name': 'foss', 'version': '2015g'}

source_urls = ['%s' % homepage]
sources = [SOURCELOWER_TAR_GZ]

preconfigopts = 'export CPPFLAGS="$CPPFLAGS -I/usr/src/kernels/2.6.32-504.16.2.el6.x86_64/include" && '

dependencies = [('netCDF', '4.3.2'),
                ('motif', '2.3.4', '-libX11-1.6.2'),
                ]

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

moduleclass = 'vis'
