homebrew-core/Formula/x264.rb
Austin Dworaczyk Wiltshire be13774a36 Updated x264 to version 1924.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-13 14:03:21 -07:00

32 lines
906 B
Ruby

require 'formula'
class X264 < Formula
url 'http://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20110326-2245-stable.tar.bz2'
homepage 'http://www.videolan.org/developers/x264.html'
md5 '114327ff055670084bdf301a1a7da86a'
version 'r1924M'
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 "./version.sh"
system "./configure", "--prefix=#{prefix}",
"--enable-shared"
inreplace 'config.mak' do |s|
ldflags = s.get_make_var 'LDFLAGS'
s.change_make_var! 'LDFLAGS', ldflags.gsub!(' -s', '')
if MacOS.prefer_64_bit?
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