require 'formula' class Jpeg < Formula homepage 'http://www.ijg.org' url 'http://www.ijg.org/files/jpegsrc.v8d.tar.gz' sha1 'f080b2fffc7581f7d19b968092ba9ebc234556ff' bottle do sha1 '80b23581fb5b2b92d787969f75cedbe8054c93a4' => :mountainlion sha1 'a16984c6522807644ea960cb724f91aeca2d3dd0' => :lion sha1 'edff61d516f97d76341a14211d0206bda18d0cf7' => :snowleopard end option :universal def install ENV.universal_binary if build.universal? # Builds static and shared libraries. system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make install" end end