name = 'g2lib' version = '1.4.0' homepage = 'http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/' description = """Library contains GRIB2 encoder/decoder and search/indexing routines.""" toolchain = {'name': 'foss', 'version': '2018b'} source_urls = [homepage] sources = ['%(name)s-%(version)s.tar'] patches = [ 'fix_makefile.patch', 'g2lib-1.4.0-with-JasPer-2.x.patch', ] checksums = [ '50ed657f7395377aa8de1097e62d5be68f48e90dc859766cffddb39a909cc7b3', # g2lib-1.4.0.tar 'bee2e6b53a5cd6a81c13735900c4ac9e3ce05bd06cda68b56b1bd51b4da7efd8', # fix_makefile.patch 'cd4c668dab76ef3b61fa902c2eed24747517d4cbc3ec0aaffab37e6b80946170', # g2lib-1.4.0-with-JasPer-2.x.patch ] dependencies = [ ('JasPer', '2.0.14'), ('libpng', '1.6.34'), ] buildopts = 'CFLAGS="$CFLAGS -DLINUXG95 -D__64BIT__" FFLAGS="$FFLAGS -cpp -I."' # parallel build tends to fail parallel = 1 moduleclass = 'data'