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'
url 'http://downloads.sf.net/project/libpng/libpng15/1.5.13/libpng-1.5.13.tar.gz'
sha1 '43a86bc5ba927618fd6c440bc4fd770d87d06b80'
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 '382eb757c38a4c326410a42deab8b4a8c22a6c13' => :mountainlion
sha1 'deb8a3143e61d0d1123781974d23a89e10ede779' => :lion
sha1 '4a72aa9046feecec944de5063834f2613289db5c' => :snowleopard
2012-08-11 15:02:16 +00:00
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