aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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