homebrew-core/Formula/ffmpeg.rb
Christoph Sturm 655a5e35a2 Enable x264 features in ffmpeg
Add dependency on x264 package.

Only build 64 bit on SL, this probably fixes the build on leopard.
2009-09-30 01:24:31 +01:00

18 lines
545 B
Ruby

require 'brewkit'
class Ffmpeg <Formula
@head='svn://svn.ffmpeg.org/ffmpeg/trunk'
@homepage='http://ffmpeg.org/'
depends_on 'x264'
def install
configure_flags = [ "--prefix=#{prefix}",
"--disable-debug",
"--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