homebrew-core/Formula/x264.rb
Adam Vandenberg b65f5d8753 x264 r2092
2011-11-26 11:30:16 -08:00

28 lines
775 B
Ruby

require 'formula'
class X264 < Formula
url 'http://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20111115-2245-stable.tar.bz2'
homepage 'http://www.videolan.org/developers/x264.html'
md5 '062491c2dce5349c3c32b82103428033'
version 'r2092'
head 'git://git.videolan.org/x264.git'
depends_on 'yasm' => :build
def install
# Having this set can fail the endian test!
ENV['GREP_OPTIONS'] = ''
system "./configure", "--prefix=#{prefix}",
"--enable-shared"
if MacOS.prefer_64_bit?
inreplace 'config.mak' do |s|
soflags = s.get_make_var 'SOFLAGS'
s.change_make_var! 'SOFLAGS', soflags.gsub(' -Wl,-read_only_relocs,suppress', '')
end
end
system "make install"
end
end