homebrew-core/Formula/libpng.rb

25 lines
711 B
Ruby
Raw Normal View History

require 'formula'
class Libpng < Formula
homepage 'http://www.libpng.org/pub/png/libpng.html'
2012-07-30 20:22:16 +00:00
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
2012-08-24 17:42:48 +00:00
option :universal
2012-08-11 15:02:16 +00:00
bottle do
sha1 '83c6be83e86404f41982e5e1e6877924fe737bdf' => :mountainlion
sha1 '9a86cc5cec4cb19bd04c7c1e93595d96ebcde66f' => :lion
sha1 '3ba3f991b61afcaf0f369da89443738443d4effe' => :snowleopard
end
def install
2012-08-24 17:42:48 +00:00
ENV.universal_binary if build.universal?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end