ESMF-7.0.1-intel-2018.eb 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name = 'ESMF'
  2. version = '7.0.1'
  3. versionsuffix = '-netCDF-4.4.1.1'
  4. homepage = 'http://sourceforge.net/projects/esmf'
  5. description = """The Earth System Modeling Framework (ESMF) is software for building and coupling weather,
  6. climate, and related models."""
  7. toolchain = {'name': 'intel', 'version': '2018'}
  8. toolchainopts = {'usempi': True}
  9. source_urls = [SOURCEFORGE_SOURCE]
  10. sources = ['%%(namelower)s_%s_src.tar.gz' % '_'.join(version.split('.'))]
  11. patches = [
  12. 'ESMF-6.1.1_libopts.patch',
  13. 'ESMF-6.3.0rp1_fix-file-open-test.patch',
  14. ]
  15. dependencies = [
  16. ('netCDF', '4.4.1.1'),
  17. ('netCDF-Fortran', '4.4.4', versionsuffix),
  18. ('netCDF-C++4', '4.3.0'),
  19. ]
  20. buildopts = 'ESMF_NETCDF_INCLUDE=$EBROOTNETCDFMINFORTRAN/include '
  21. buildopts += 'ESMF_F90COMPILEOPTS="-O -fPIC -m64 -mcmodel=small -threads -qopenmp" '
  22. buildopts += 'ESMF_F90LINKOPTS="-m64 -mcmodel=small -threads -Wl,--no-as-needed -qopenmp" '
  23. buildopts += 'ESMF_CXXCOMPILEOPTS="-O -DNDEBUG -fPIC -m64 -mcmodel=small -pthread -qopenmp" '
  24. buildopts += 'ESMF_CXXLINKOPTS="-m64 -mcmodel=small -pthread -Wl,--no-as-needed -qopenmp" '
  25. buildopts += 'ESMF_SL_LIBOPTS="-O -DNDEBUG -fPIC -m64 -mcmodel=small -pthread -qopenmp -shared" '
  26. buildopts += 'ESMF_NETCDF_LIBS="`nc-config --libs` `nf-config --flibs` `ncxx4-config --libs`"'
  27. installopts = 'ESMF_F90COMPILEOPTS="-O -fPIC -m64 -mcmodel=small -threads -qopenmp" '
  28. installopts += 'ESMF_F90LINKOPTS="-m64 -mcmodel=small -threads -Wl,--no-as-needed -qopenmp" '
  29. installopts += 'ESMF_CXXCOMPILEOPTS="-O -DNDEBUG -fPIC -m64 -mcmodel=small -pthread -qopenmp" '
  30. installopts += 'ESMF_CXXLINKOPTS="-m64 -mcmodel=small -pthread -Wl,--no-as-needed -qopenmp" '
  31. installopts += 'ESMF_SL_LIBOPTS="-O -DNDEBUG -fPIC -m64 -mcmodel=small -pthread -qopenmp -shared" '
  32. # too parallel causes the build to become really slow
  33. maxparallel = 8
  34. moduleclass = 'geo'