2012-01-26 01:19:06 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2013-02-03 06:50:07 +00:00
|
|
|
class Gshhg < Formula
|
2012-01-26 01:19:06 +00:00
|
|
|
homepage 'http://gmt.soest.hawaii.edu/'
|
2013-02-03 06:50:07 +00:00
|
|
|
url 'ftp://ftp.soest.hawaii.edu/gmt/gshhg-gmt-nc4-2.2.2.tar.gz'
|
|
|
|
sha1 'f01c322ad1767abf99818c250b1a58b3e2c12e1c'
|
2012-01-26 01:19:06 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class Gmt < Formula
|
|
|
|
homepage 'http://gmt.soest.hawaii.edu/'
|
2013-02-03 06:50:07 +00:00
|
|
|
url 'ftp://ftp.soest.hawaii.edu/gmt/gmt-4.5.9.tar.bz2'
|
|
|
|
sha1 '711922fd99dcd47ace522f1e46fcafa5beab8c94'
|
2012-01-26 01:19:06 +00:00
|
|
|
|
2012-03-27 21:49:54 +00:00
|
|
|
depends_on 'gdal'
|
2012-01-26 01:19:06 +00:00
|
|
|
depends_on 'netcdf'
|
|
|
|
|
|
|
|
def install
|
2012-03-27 21:49:54 +00:00
|
|
|
ENV.deparallelize # 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-03-27 21:49:54 +00:00
|
|
|
"--enable-gdal=#{HOMEBREW_PREFIX}",
|
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
|
|
|
|
2013-02-03 06:50:07 +00:00
|
|
|
Gshhg.new.brew { (share+name).install Dir['*'] }
|
2012-01-26 01:19:06 +00:00
|
|
|
end
|
|
|
|
end
|