aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libpng.rb
blob: 6d7997b54bc174696c4a77eee62902a9763d4221 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require 'formula'

class Libpng < Formula
  homepage 'http://www.libpng.org/pub/png/libpng.html'
  url 'http://downloads.sf.net/project/libpng/libpng15/1.5.17/libpng-1.5.17.tar.bz2'
  sha1 '899d660104f3ef5c349c57faad10844b388f8442'

  bottle do
    cellar :any
    revision 1
    sha1 '039e4a626f4cbcbfa14349f86f33663ebc9d20d8' => :mavericks
    sha1 '6f9f7ad1ea035e897845dc3f4d3909a92664dbb8' => :mountain_lion
    sha1 '53e282b87f737dc16ddb0700585b5754cec6b913' => :lion
  end

  keg_only :provided_pre_mountain_lion

  option :universal

  def install
    ENV.universal_binary if build.universal?
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end