homebrew-core/Formula/x264.rb

29 lines
775 B
Ruby
Raw Normal View History

require 'formula'
2009-09-27 23:48:11 +00:00
2011-03-10 05:11:03 +00:00
class X264 < Formula
url 'http://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20110912-2245-stable.tar.bz2'
homepage 'http://www.videolan.org/developers/x264.html'
md5 '08b1658cf9964b73a53f445e4d21e161'
version 'r2066'
head 'git://git.videolan.org/x264.git'
2011-03-26 19:33:49 +00:00
depends_on 'yasm' => :build
2009-09-27 23:48:11 +00:00
def install
2011-03-13 17:28:30 +00:00
# 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
2009-09-27 23:48:11 +00:00
system "make install"
end
end