Update x264
* Use a newer revision of x264 * Remove unused configure flags * Silence two warnings by editing flagsmaster
parent
eff085bb38
commit
8737c984d1
|
@ -1,13 +1,27 @@
|
|||
require 'formula'
|
||||
|
||||
class X264 <Formula
|
||||
head 'git://git.videolan.org/x264.git', :tag => '114461'
|
||||
homepage 'http://www.videolan.org/developers/x264.html'
|
||||
head 'git://git.videolan.org/x264.git',
|
||||
:tag => '20fa784d2d9e0d5e524d4e3834699e9ff9b57511'
|
||||
|
||||
depends_on 'yasm'
|
||||
|
||||
homepage 'http://www.videolan.org/developers/x264.html'
|
||||
|
||||
def install
|
||||
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking","--enable-shared"
|
||||
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_VERSION >= 10.6 and Hardware.is_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
|
||||
|
|
Loading…
Reference in New Issue