grib_api-1.28.0-iimpi-2019b.eb 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. easyblock = 'CMakeMake'
  2. name = 'grib_api'
  3. version = '1.28.0'
  4. homepage = 'https://software.ecmwf.int/wiki/display/GRIB/Home'
  5. description = """The ECMWF GRIB API is an application program interface accessible from C, FORTRAN and Python
  6. programs developed for encoding and decoding WMO FM-92 GRIB edition 1 and edition 2 messages. A useful set of
  7. command line tools is also provided to give quick access to GRIB messages."""
  8. toolchain = {'name': 'iimpi', 'version': '2019b'}
  9. toolchainopts = {'pic': True, 'usempi': True}
  10. source_urls = ['https://confluence.ecmwf.int/download/attachments/3473437/']
  11. sources = ['grib_api-%(version)s-Source.tar.gz']
  12. builddependencies = [('CMake', '3.15.3')]
  13. dependencies = [
  14. ('netCDF', '4.7.1'),
  15. ('Python', '2.7.16'),
  16. ('libjpeg-turbo', '2.0.3'),
  17. ('libpng', '1.6.37'),
  18. #('JasPer', '2.0.14'),
  19. ('JasPer', '1.900.1'), # 2.x doesn't work
  20. ]
  21. separate_build_dir = True
  22. configopts = '-DENABLE_JPG=ON'
  23. configopts += '-DBUILD_SHARED_LIBS=ON -DCMAKE_CXX_FLAGS="-std=c++11 -pthread" -DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS -lpthread"'
  24. sanity_check_paths = {
  25. 'files': ['lib/libgrib_api_f90.so'],
  26. 'dirs': ['share/grib_api/definitions/grib1'],
  27. }
  28. moduleclass = 'data'