aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorLance Hepler2012-01-25 17:19:06 -0800
committerAdam Vandenberg2012-01-25 17:57:07 -0800
commitb3da7580444431f0b599e6a08b8265a93d6d1300 (patch)
tree083ca56e57dbcaf93def09408cafec15b2e7ab77 /Library/Formula
parent8bb4696ed1a68a818f017174cf3ed1ca1bbaef66 (diff)
downloadhomebrew-b3da7580444431f0b599e6a08b8265a93d6d1300.tar.bz2
gmt 4.5.7
Add a Generic Mapping Tools Formula Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gmt.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/Formula/gmt.rb b/Library/Formula/gmt.rb
new file mode 100644
index 000000000..ae53bb810
--- /dev/null
+++ b/Library/Formula/gmt.rb
@@ -0,0 +1,31 @@
+require 'formula'
+
+class Gshhs < Formula
+ url 'ftp://ftp.soest.hawaii.edu/gmt/gshhs-2.2.0.tar.bz2'
+ homepage 'http://gmt.soest.hawaii.edu/'
+ md5 'db98bff37adc0d51fdf0ffa3834d45ad'
+end
+
+class Gmt < Formula
+ url 'ftp://ftp.soest.hawaii.edu/gmt/gmt-4.5.7.tar.bz2'
+ homepage 'http://gmt.soest.hawaii.edu/'
+ md5 'fc8a4a546ff8572c225aa7bdb56bbdf8'
+
+ depends_on 'netcdf'
+
+ def install
+ # we need -j1 to prevent make dependency errors
+ ENV.j1
+
+ system "./configure", "--datadir=#{share}/#{name}",
+ "--enable-netcdf=#{HOMEBREW_PREFIX}",
+ "--enable-shared", "--enable-triangle",
+ "--disable-xgrid", "--disable-mex",
+ "--prefix=#{prefix}"
+ system "make"
+ system "make install-gmt"
+ system "make install-data"
+
+ Gshhs.new.brew { (share+name).install Dir['share/*'] }
+ end
+end