g2clib-1.6.0-patch-foss-2017b.eb 876 B

1234567891011121314151617181920212223242526272829303132333435
  1. name = 'g2clib'
  2. version = '1.6.0-patch'
  3. homepage = 'http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/'
  4. description = """Library contains GRIB2 encoder/decoder ('C' version)."""
  5. toolchain = {'name': 'foss', 'version': '2017b'}
  6. source_urls = [homepage]
  7. sources = ['%(name)s-%(version)s.tar']
  8. dependencies = [
  9. ('JasPer', '1.900.1'),
  10. ('libpng', '1.6.32'),
  11. ]
  12. buildopts = 'CFLAGS="$CFLAGS -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__"'
  13. skipsteps = ['install']
  14. postinstallcmds = [
  15. "cd %(builddir)s/%(name)s-%(version)s && " +
  16. 'rm -rf %(installdir)s && ' +
  17. 'mkdir -p %(installdir)s/include && ' +
  18. 'mkdir -p %(installdir)s/lib && ' +
  19. 'cp *.h %(installdir)s/include && ' +
  20. 'cp libgrib2c.a %(installdir)s/lib && ' +
  21. "cd %(installdir)s/lib && " +
  22. 'ln -s libgrib2c.a libg2c_v1.6.0.a'
  23. ]
  24. # parallel build tends to fail
  25. parallel = 1
  26. moduleclass = 'data'