aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libtiff.rb
blob: f0a6a7fb385864e8a3f4914ce271a8cafacaa896 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'formula'

class Libtiff < Formula
  homepage 'http://www.remotesensing.org/libtiff/'
  url 'http://download.osgeo.org/libtiff/tiff-4.0.1.tar.gz'
  sha256 '9a7a039e516c37478038740f1642818250bfb1414cf404cc8b569e5f9d4bf2f0'

  def options
    [["--universal", "Builds a universal binary"]]
  end

  def install
    ENV.x11 # Needed to pick up GL/gL.h, otherwise compile error.
    ENV.universal_binary if ARGV.build_universal?
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end