homebrew-core/Formula/libdvbpsi.rb
nibbles 2bits 2ae858ab20 libdvbpsi 0.2.2
Upgrade to version 0.2.2.
Add an `inreplace` to remove `-06` that `configure` tries to add
to the `CFLAGS`. Tested on ML with XCode-4.4.1.

Closes Homebrew/homebrew#14054.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-08 21:06:52 -07:00

14 lines
556 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'
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