aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libpng.rb
blob: 0ef31b722e9df8d043d34ee2d7ccab52a5870555 (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
require 'formula'

class Libpng < Formula
  homepage 'http://www.libpng.org/pub/png/libpng.html'
  url 'http://downloads.sf.net/project/libpng/libpng15/1.5.12/libpng-1.5.12.tar.gz'
  sha1 'c329f3a9b720d7ae14e8205fa6e332236573704b'

  keg_only :provided_pre_mountain_lion

  option :universal

  bottle do
    sha1 '83c6be83e86404f41982e5e1e6877924fe737bdf' => :mountainlion
    sha1 '9a86cc5cec4cb19bd04c7c1e93595d96ebcde66f' => :lion
    sha1 '3ba3f991b61afcaf0f369da89443738443d4effe' => :snowleopard
  end

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