aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libvpx.rb
diff options
context:
space:
mode:
authorJack Nagel2014-05-16 21:46:12 -0500
committerJack Nagel2014-05-16 21:46:12 -0500
commit08b4738bcdbd4f75801e270fabe6601763515a9b (patch)
tree839627b0af506249c6c1b380da80a33498d9bc0e /Library/Formula/libvpx.rb
parentfa77d9521c35b816976230aa1e0f93ad805120a7 (diff)
downloadhomebrew-08b4738bcdbd4f75801e270fabe6601763515a9b.tar.bz2
libvpx: simplify configure fix
Diffstat (limited to 'Library/Formula/libvpx.rb')
-rw-r--r--Library/Formula/libvpx.rb12
1 files changed, 4 insertions, 8 deletions
diff --git a/Library/Formula/libvpx.rb b/Library/Formula/libvpx.rb
index b8910ca6b..ce71d2161 100644
--- a/Library/Formula/libvpx.rb
+++ b/Library/Formula/libvpx.rb
@@ -22,14 +22,10 @@ class Libvpx < Formula
ENV.append "CXXFLAGS", "-DGTEST_USE_OWN_TR1_TUPLE=1" # Mavericks uses libc++ which doesn't supply <TR1/tuple>
- # 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"
+ # configure misdetects 32-bit 10.6
+ # http://code.google.com/p/webm/issues/detail?id=401
+ if MacOS.version == "10.6" && Hardware.is_32_bit?
+ args << "--target=x86-darwin10-gcc"
end
mkdir 'macbuild' do