Enable x264 features in ffmpeg

Add dependency on x264 package.

Only build 64 bit on SL, this probably fixes the build on leopard.
This commit is contained in:
Christoph Sturm 2009-09-28 01:50:59 +02:00 committed by Max Howell
parent 354d699e0a
commit 655a5e35a2

View file

@ -3,12 +3,16 @@ require 'brewkit'
class Ffmpeg <Formula
@head='svn://svn.ffmpeg.org/ffmpeg/trunk'
@homepage='http://ffmpeg.org/'
depends_on 'x264'
def install
system "./configure", "--prefix=#{prefix}",
configure_flags = [ "--prefix=#{prefix}",
"--disable-debug",
"--enable-nonfree",
"arch=x86_64"
"--enable-nonfree",
"--enable-gpl",
"--enable-libx264"]
configure_flags << "--arch=x64_64" if Hardware.is_64_bit? and MACOS_VERSION >= 10.6
system "./configure", *configure_flags
system "make install"
end
end