aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/grib-api.rb
blob: 267db1960d9aa1efdc46ca8cf54fc9cf4ba0ebf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'formula'

class GribApi < Formula
  url 'http://www.ecmwf.int/products/data/software/download/software_files/grib_api-1.9.16.tar.gz'
  homepage 'http://www.ecmwf.int/products/data/software/grib_api.html'
  md5 '490cda08585e263d9f13daed4e7b688c'

  depends_on 'jasper'

  fails_with :clang do
    build 318
    cause 'Undefined symbols when linking.'
  end

  def install
    ENV.deparallelize
    ENV.no_optimization
    ENV.fortran

    system "./configure", "--prefix=#{prefix}"
    system "make"
    system "make install"
  end
end