7bd947eb0b
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
27 lines
733 B
Ruby
27 lines
733 B
Ruby
require 'formula'
|
|
|
|
class X264 <Formula
|
|
homepage 'http://www.videolan.org/developers/x264.html'
|
|
url 'git://git.videolan.org/x264.git',
|
|
:tag => '20fa784d2d9e0d5e524d4e3834699e9ff9b57511'
|
|
|
|
depends_on 'yasm'
|
|
|
|
def install
|
|
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_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
|