diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libvpx.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Formula/libvpx.rb b/Library/Formula/libvpx.rb index 3f4254880..8f81d5430 100644 --- a/Library/Formula/libvpx.rb +++ b/Library/Formula/libvpx.rb @@ -39,7 +39,13 @@ class Libvpx < Formula args << "--enable-postproc-visualizer" if ARGV.include? "--visualizer" # see http://code.google.com/p/webm/issues/detail?id=401 - args << '--target=generic-gnu' + # 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 |
