aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libpng.rb
blob: 443dee067a122ece23b39e3911e56f677230c6e1 (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 "https://downloads.sf.net/project/libpng/libpng16/1.6.12/libpng-1.6.12.tar.gz"
  sha1 "6bcd6efa7f20ccee51e70453426d7f4aea7cf4bb"

  bottle do
    cellar :any
    sha1 "6b82dd8fc966b83b15ab27224f864a384b7b766d" => :mavericks
    sha1 "7136c93b5cdc9acc6fd777bb17668e272a7ba55d" => :mountain_lion
    sha1 "2672437209e1207f51135d8e8efa1db5a4852499" => :lion
  end

  keg_only :provided_pre_mountain_lion

  option :universal

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