2011-07-19 18:27:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GribApi < Formula
|
2012-10-16 17:53:50 +00:00
|
|
|
homepage 'https://software.ecmwf.int/wiki/display/GRIB/Home'
|
2014-07-25 17:56:09 +00:00
|
|
|
url 'https://software.ecmwf.int/wiki/download/attachments/3473437/grib_api-1.12.3.tar.gz'
|
|
|
|
sha1 '2764b262c8f081fefb81112f7f7463a3a34b6e66'
|
2011-07-19 18:27:53 +00:00
|
|
|
|
2014-06-22 04:39:27 +00:00
|
|
|
bottle do
|
2014-07-25 18:11:50 +00:00
|
|
|
sha1 "aaa46754fcaa6f19099a2045000ba8ee4e93f29e" => :mavericks
|
|
|
|
sha1 "92d2fae3c922dcb1aef946b03b6afc858c9403c1" => :mountain_lion
|
|
|
|
sha1 "6b4ffc9b85b1ba3581dcc9cfe4d4aa292542abf9" => :lion
|
2014-06-22 04:39:27 +00:00
|
|
|
end
|
|
|
|
|
2013-06-24 03:29:13 +00:00
|
|
|
depends_on :fortran
|
2012-10-16 17:53:50 +00:00
|
|
|
depends_on 'jasper' => :recommended
|
|
|
|
depends_on 'openjpeg' => :optional
|
2011-07-19 18:27:53 +00:00
|
|
|
|
2012-12-14 02:31:04 +00:00
|
|
|
# Fixes build errors in Lion
|
|
|
|
# https://software.ecmwf.int/wiki/plugins/viewsource/viewpagesrc.action?pageId=12648475
|
2014-03-19 17:07:52 +00:00
|
|
|
patch :DATA
|
2012-03-14 16:11:11 +00:00
|
|
|
|
2011-07-19 18:27:53 +00:00
|
|
|
def install
|
|
|
|
ENV.deparallelize
|
|
|
|
ENV.no_optimization
|
|
|
|
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2012-10-16 17:53:50 +00:00
|
|
|
|
|
|
|
__END__
|
2012-12-14 02:31:04 +00:00
|
|
|
diff --git a/configure b/configure
|
|
|
|
index 0a88b28..9dafe46 100755
|
|
|
|
--- a/configure
|
|
|
|
+++ b/configure
|
|
|
|
@@ -7006,7 +7006,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
|
|
darwin* | rhapsody*)
|
|
|
|
# PIC is the default on this platform
|
|
|
|
# Common symbols not allowed in MH_DYLIB files
|
|
|
|
- lt_prog_compiler_pic='-fno-common'
|
|
|
|
+ #lt_prog_compiler_pic='-fno-common'
|
|
|
|
;;
|
|
|
|
|
|
|
|
hpux*)
|
|
|
|
@@ -12186,7 +12186,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
|
|
darwin* | rhapsody*)
|
|
|
|
# PIC is the default on this platform
|
|
|
|
# Common symbols not allowed in MH_DYLIB files
|
|
|
|
- lt_prog_compiler_pic_F77='-fno-common'
|
|
|
|
+ #lt_prog_compiler_pic_F77='-fno-common'
|
|
|
|
;;
|
|
|
|
|
|
|
|
hpux*)
|
|
|
|
@@ -15214,7 +15214,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
|
|
darwin* | rhapsody*)
|
|
|
|
# PIC is the default on this platform
|
|
|
|
# Common symbols not allowed in MH_DYLIB files
|
|
|
|
- lt_prog_compiler_pic_FC='-fno-common'
|
|
|
|
+ #lt_prog_compiler_pic_FC='-fno-common'
|
|
|
|
;;
|
|
|
|
|
|
|
|
hpux*)
|