require 'formula' class Libdvbpsi < Formula homepage 'http://www.videolan.org/developers/libdvbpsi.html' url 'http://download.videolan.org/pub/libdvbpsi/0.2.2/libdvbpsi-0.2.2.tar.bz2' sha1 '562d46ce256a678309f7c39be8cf31eea4bf6757' bottle do cellar :any revision 1 sha1 "83d80189475c9c8a61d1ffb726d8049c6e5bbf84" => :yosemite sha1 "c4ee7030ab5f8f935b9f7d459520d5f856bad40e" => :mavericks sha1 "ee8c2c2f5f7f548131b454ab29520e562fb61b1d" => :mountain_lion end def install # Clang doesn't recognize O6. Just remove it. Fixes a build error. inreplace 'configure', 'CFLAGS="${CFLAGS} -O6"', 'CFLAGS="${CFLAGS}"' system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking", "--enable-release" system "make install" end end