name = 'NCL'
version = '6.6.2'

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

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

source_urls = ['https://github.com/NCAR/ncl/archive/']
sources = ['%(version)s.tar.gz']
patches = ['NCL-6.4.0_fix-types.patch']
checksums = [
    'cad4ee47fbb744269146e64298f9efa206bc03e7b86671e9729d8986bb4bc30e',  # 6.6.2.tar.gz
    'f6dfaf95e5de9045745e122cb44f9c035f81fab92f5892991ddfe93945891c8f',  # NCL-6.4.0_fix-types.patch
]

builddependencies = [
    ('makedepend', '1.0.6'),
    ('Bison', '3.7.6'),
    ('flex', '2.6.4'),
]
dependencies = [
    ('cURL', '7.78.0'),
    ('JasPer', '2.0.33'),
    ('g2lib', '3.1.0'),
    ('g2clib', '1.6.0'),
    ('HDF', '4.2.15'),
    ('HDF5', '1.10.7'),
    ('netCDF', '4.8.0'),
    ('netCDF-Fortran', '4.5.3'),
    ('Szip', '2.1.1'),
    ('freetype', '2.11.0'),
    ('zlib', '1.2.11'),
    ('GDAL', '3.3.0'),
    ('UDUNITS', '2.2.28'),
    ('ESMF', '8.1.1'),
    ('bzip2', '1.0.8'),
    ('cairo', '1.16.0'),
    ('libiconv', '1.16'),
    ('GSL', '2.7'),
    ('libpng', '1.6.37'),
    ('libjpeg-turbo', '2.0.6'),
]

moduleclass = 'data'
