name = 'ESMF'
version = '6.1.1'

homepage = 'http://sourceforge.net/projects/esmf'
description = """The Earth System Modeling Framework (ESMF) is software for building and coupling weather,
 climate, and related models."""

toolchain = {'name': 'iqacml', 'version': '3.7.3'}
toolchainopts = {'usempi': True}

source_urls = [SOURCEFORGE_SOURCE]
sources = ['%s_%s_src.tar.gz' % (name.lower(), '_'.join(version.split('.')))]

dependencies = [
    ('netCDF', '4.2.1.1'),
    ('netCDF-Fortran', '4.2'),
    ('netCDF-C++', '4.2'),
]

# LDFLAGS has to be unset to avoid linking issues
preinstallopts = "unset LDFLAGS && "

# too parallel causes the build to become really slow
maxparallel = 8

moduleclass = 'geo'
