From 173f3f4cbae3355b2ae8307041e772a078eff98b Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 20 May 2012 16:17:58 -0500 Subject: libvpx: restore platform detection Configure is still misdetecting 32-bit 10.6 as 64-bit. Signed-off-by: Jack Nagel --- Library/Formula/libvpx.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/libvpx.rb b/Library/Formula/libvpx.rb index 6ce62855f..cd949aa91 100644 --- a/Library/Formula/libvpx.rb +++ b/Library/Formula/libvpx.rb @@ -26,6 +26,16 @@ class Libvpx < Formula args << "--enable-mem-tracker" if ARGV.include? "--mem-tracker" args << "--enable-postproc-visualizer" if ARGV.include? "--visualizer" + # see http://code.google.com/p/webm/issues/detail?id=401 + # Configure misdetects 32-bit 10.6. + # Determine if the computer runs Darwin 9, 10, or 11 using uname -r. + osver = %x[uname -r | cut -d. -f1].chomp + if MacOS.prefer_64_bit? then + args << "--target=x86_64-darwin#{osver}-gcc" + else + args << "--target=x86-darwin#{osver}-gcc" + end + mkdir 'macbuild' do system "../configure", *args system "make install" -- cgit v1.2.3