2012-01-26 01:19:06 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Gshhs < Formula
|
|
|
|
homepage 'http://gmt.soest.hawaii.edu/'
|
2012-03-11 19:20:00 +00:00
|
|
|
url 'ftp://ftp.soest.hawaii.edu/gmt/gshhs-2.2.0.tar.bz2'
|
2012-01-26 01:19:06 +00:00
|
|
|
md5 'db98bff37adc0d51fdf0ffa3834d45ad'
|
|
|
|
end
|
|
|
|
|
|
|
|
class Gmt < Formula
|
|
|
|
homepage 'http://gmt.soest.hawaii.edu/'
|
2012-03-11 19:20:00 +00:00
|
|
|
url 'ftp://ftp.soest.hawaii.edu/gmt/gmt-4.5.7.tar.bz2'
|
2012-01-26 01:19:06 +00:00
|
|
|
md5 'fc8a4a546ff8572c225aa7bdb56bbdf8'
|
|
|
|
|
|
|
|
depends_on 'netcdf'
|
|
|
|
|
|
|
|
def install
|
2012-03-11 19:20:00 +00:00
|
|
|
ENV.j1 # Parallel builds don't work due to missing makefile dependencies
|
2012-01-26 01:19:06 +00:00
|
|
|
|
2012-03-11 19:20:00 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--datadir=#{share}/#{name}",
|
2012-01-26 01:19:06 +00:00
|
|
|
"--enable-netcdf=#{HOMEBREW_PREFIX}",
|
2012-03-11 19:20:00 +00:00
|
|
|
"--enable-shared",
|
|
|
|
"--enable-triangle",
|
|
|
|
"--disable-xgrid",
|
|
|
|
"--disable-mex"
|
2012-01-26 01:19:06 +00:00
|
|
|
system "make"
|
|
|
|
system "make install-gmt"
|
|
|
|
system "make install-data"
|
2012-01-31 00:18:48 +00:00
|
|
|
system "make install-suppl"
|
|
|
|
system "make install-man"
|
2012-01-26 01:19:06 +00:00
|
|
|
|
|
|
|
Gshhs.new.brew { (share+name).install Dir['share/*'] }
|
|
|
|
end
|
|
|
|
end
|