aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbkonkle2010-08-19 16:13:48 -0500
committerAdam Vandenberg2010-08-19 14:53:34 -0700
commita0a1d73d845fcf83e8b01c65afe4820ab78fc76e (patch)
tree459942fd380be90ef983fa60221ba135977f4b69
parent77a8b43daa109a0f77346ea16196b2259452afe2 (diff)
downloadhomebrew-a0a1d73d845fcf83e8b01c65afe4820ab78fc76e.tar.bz2
Resolved madplay error 'CPU you selected does not support x86-64' on 10.6 i5 machines
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/madplay.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/madplay.rb b/Library/Formula/madplay.rb
index 27d74c57b..245625c8e 100644
--- a/Library/Formula/madplay.rb
+++ b/Library/Formula/madplay.rb
@@ -16,7 +16,10 @@ class Madplay <Formula
end
def install
- system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ configure_flags = ["--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"]
+ # Avoid "error: CPU you selected does not support x86-64 instruction set"
+ configure_flags << "--build=x86_64" if Hardware.is_64_bit? and MACOS_VERSION >= 10.6
+ system "./configure", *configure_flags
system "make install"
end
end