mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-30 12:39:48 -05:00
libvpx: determine correct build target
Adjust the formula for libvpx to determine the correct target. This was tested on 32bit and 64bit Snow Leopard 10.6.8 using all three compilers from XCode-4.0.2, and it was tested on Lion using both compilers from XCode-4.2.1 and 4.3. Closes #10249.
This commit is contained in:
1 parent
7ec5e5b5b1
commit
ebf1682c3e
1 file changed
+7
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user