name = 'g2lib' version = '3.1.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': '2019a'} source_urls = [homepage] sources = ['%(name)s-%(version)s.tar'] patches = [ 'g2lib-3.1.0_makefile.patch', 'g2lib-1.4.0-with-JasPer-2.x.patch', ] checksums = [ '8a2de259de82094c5867f8d7945359f211592a4a503f9ed65dc60469337414e7', # g2lib-3.1.0.tar '702f76c77638fb36b662caf96890a69f19c507778c92aa1e163898b150cc8282', # g2lib-3.1.0_makefile.patch 'cd4c668dab76ef3b61fa902c2eed24747517d4cbc3ec0aaffab37e6b80946170', # g2lib-1.4.0-with-JasPer-2.x.patch ] dependencies = [ ('JasPer', '2.0.14'), ('libpng', '1.6.36'), ] buildopts = 'CFLAGS="$CFLAGS -DLINUXG95 -D__64BIT__" FFLAGS="$FFLAGS -fno-range-check -cpp -I." FC=$FC CC=$CC' # parallel build tends to fail parallel = 1 moduleclass = 'data'