homebrew-core/Formula/libtiff.rb

34 lines
1 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Libtiff < Formula
homepage 'http://www.remotesensing.org/libtiff/'
2013-09-23 14:33:32 +00:00
url 'ftp://ftp.remotesensing.org/pub/libtiff/tiff-4.0.3.tar.gz'
mirror 'http://download.osgeo.org/libtiff/tiff-4.0.3.tar.gz'
sha256 'ea1aebe282319537fb2d4d7805f478dd4e0e05c33d0928baba76a7c963684872'
2014-02-22 12:05:54 +00:00
bottle do
cellar :any
sha1 "8e2a7f7509689733c0762e01410e247b7ccb98af" => :mavericks
sha1 "611e3478187bbcdb5f35970914ee4fe269aeb585" => :mountain_lion
sha1 "889158ea146de39f42a489b18af4321004cd54d8" => :lion
end
2012-08-10 05:16:18 +00:00
option :universal
option :cxx11
depends_on 'jpeg'
def install
2012-08-10 05:16:18 +00:00
ENV.universal_binary if build.universal?
ENV.cxx11 if build.cxx11?
2014-02-27 03:12:40 +00:00
jpeg = Formula["jpeg"].opt_prefix
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--without-x",
"--disable-lzma",
"--with-jpeg-include-dir=#{jpeg}/include",
"--with-jpeg-lib-dir=#{jpeg}/lib"
system "make install"
end
end