2010-03-21 11:23:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libgeotiff < Formula
|
2010-03-21 11:23:42 +00:00
|
|
|
homepage 'http://geotiff.osgeo.org/'
|
2012-06-19 20:11:49 +00:00
|
|
|
url 'http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-1.4.0.tar.gz'
|
|
|
|
sha1 '4c6f405869826bb7d9f35f1d69167e3b44a57ef0'
|
2010-03-21 11:23:42 +00:00
|
|
|
|
|
|
|
depends_on 'libtiff'
|
2011-10-27 19:41:34 +00:00
|
|
|
depends_on 'lzlib'
|
|
|
|
depends_on 'jpeg'
|
|
|
|
depends_on 'proj'
|
2010-03-21 11:23:42 +00:00
|
|
|
|
|
|
|
def install
|
2011-10-27 19:41:34 +00:00
|
|
|
args = ["--disable-dependency-tracking", "--prefix=#{prefix}",
|
|
|
|
"--with-libtiff=#{HOMEBREW_PREFIX}",
|
|
|
|
"--with-zlib=#{HOMEBREW_PREFIX}",
|
|
|
|
"--with-jpeg=#{HOMEBREW_PREFIX}"]
|
|
|
|
system "./configure", *args
|
2010-03-21 11:23:42 +00:00
|
|
|
system "make" # Separate steps or install fails
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|