2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-27 23:48:11 +00:00
|
|
|
|
|
|
|
class X264 <Formula
|
2010-04-04 00:53:53 +00:00
|
|
|
homepage 'http://www.videolan.org/developers/x264.html'
|
2010-04-07 05:58:35 +00:00
|
|
|
url 'git://git.videolan.org/x264.git',
|
2010-04-04 00:53:53 +00:00
|
|
|
:tag => '20fa784d2d9e0d5e524d4e3834699e9ff9b57511'
|
|
|
|
|
2009-09-27 23:48:11 +00:00
|
|
|
depends_on 'yasm'
|
|
|
|
|
|
|
|
def install
|
2010-07-11 20:43:58 +00:00
|
|
|
system "./version.sh"
|
2010-04-04 00:53:53 +00:00
|
|
|
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', '')
|
|
|
|
|
2010-08-08 04:04:37 +00:00
|
|
|
if snow_leopard_64?
|
2010-04-04 00:53:53 +00:00
|
|
|
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
|