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
|
|
|
|
2014-04-10 10:40:32 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "81c251028852c1e1cdd0f9ba8f6e023222db4099" => :mavericks
|
|
|
|
sha1 "58398ab68357c0d5ed104eaecf1f52f684df685c" => :mountain_lion
|
|
|
|
sha1 "5c3f8cd77572592d30d542b7d25c354aca8ef932" => :lion
|
|
|
|
end
|
|
|
|
|
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
|