homebrew-core/Formula/libdvbpsi.rb
2014-07-03 22:33:26 +01:00

21 lines
788 B
Ruby

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
sha1 "43170452610ab08f16eeb1fbcee4b35d20ec7378" => :mavericks
sha1 "7e762ad29ce50d2f0a058f578269e64715f0d54a" => :mountain_lion
sha1 "acb50f276aa3fba895801775a0b28fda144800ee" => :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