homebrew-core/Formula/gst-ffmpeg.rb
nibbles 2bits 7376b2bbf6 gst-ffmpeg: fix clang compile error
GST-ffmpeg comes bundled with an internal ffmpeg that suffers from
the known issue of a hardcoded gcc unless the right configure arg
is thrown.  When building with clang, the hardcoded gcc in the
libav subdirectory causes an error where gcc doesn't recognize
`-march=native`.  GST-ffmpeg offers a configure flag to fix that.
Add a flag to use our ENV.cc.

Fixes Homebrew/homebrew#12312

Closes Homebrew/homebrew#12390.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-24 20:00:01 -05:00

17 lines
518 B
Ruby

require 'formula'
class GstFfmpeg < Formula
url 'http://gstreamer.freedesktop.org/src/gst-ffmpeg/gst-ffmpeg-0.10.13.tar.bz2'
homepage 'http://gstreamer.freedesktop.org/'
md5 '7f5beacaf1312db2db30a026b36888c4'
depends_on 'gst-plugins-base'
# ffmpeg is bundled with gst-ffmpeg
def install
system './configure', "--prefix=#{prefix}",
"--with-ffmpeg-extra-configure=--cc=#{ENV.cc}",
'--disable-dependency-tracking'
system "make install"
end
end