name = 'NCL'
version = '6.4.0'
versionsuffix = '-netCDF-4.4.1.1'

homepage = 'http://www.ncl.ucar.edu'
description = """NCL is an interpreted language designed specifically for scientific data analysis and 
 visualization."""

toolchain = {'name': 'intel', 'version': '2018'}
toolchainopts = {'cstd': 'c99', 'openmp': True, 'pic': True}

# download via https://www.earthsystemgrid.org/dataset/ncl.html
sources = ['%(namelower)s_ncarg-%(version)s.tar.gz']

patches = ['NCL-%(version)s_fix-types.patch']

dependencies = [
    ('cURL', '7.55.1'),
    ('JasPer', '1.900.1'),
    ('g2lib', '1.4.0'),
    ('g2clib', '1.6.0'),
    ('HDF', '4.2.12'),
    ('HDF5', '1.8.18'),
    ('netCDF', '4.4.1.1'),
    ('netCDF-Fortran', '4.4.4', versionsuffix),
    ('Szip', '2.1'),
    ('freetype', '2.8'),
    ('zlib', '1.2.11'),
    ('GDAL', '2.2.0'),
    ('UDUNITS', '2.2.24'),
    ('ESMF', '7.0.1'),
    ('bzip2', '1.0.6'),
    ('cairo', '1.14.8'),
    ('libiconv', '1.15'),
    ('GSL', '2.3'),
]

builddependencies = [
    ('makedepend', '1.0.5'),
    ('flex', '2.6.4'),
]

moduleclass = 'data'
