aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ffmpeg.rb
blob: c63a3923b1b3d574a1ed6a40246af38748879e29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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