aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/libvpx.rb10
1 files changed, 10 insertions, 0 deletions
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"