homebrew-core/Formula/libpng.rb
Jaime Marquínez Ferrándiz 74c83fa9f6 Batch convert http download urls from SourceForge to https
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-02 09:16:53 -08:00

25 lines
728 B
Ruby

require 'formula'
class Libpng < Formula
homepage 'http://www.libpng.org/pub/png/libpng.html'
url 'https://downloads.sf.net/project/libpng/libpng15/1.5.18/libpng-1.5.18.tar.bz2'
sha1 '52fee0139ff96c98a6a0ef6375845ca366a33c94'
bottle do
cellar :any
sha1 "405736a4cd656764b5bea9ec0b11efb2daddaac0" => :mavericks
sha1 "ff19f63cc4e5225f199adb981e0e1d54dede4d2b" => :mountain_lion
sha1 "48f94cb7f6a1417f506cc552fd990e7bd2684dec" => :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