aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJannis Leidel2010-07-15 10:46:52 +0200
committerAdam Vandenberg2010-07-15 06:59:59 -0700
commitf97538f30635e988f7170b848d3134149f0cf49a (patch)
tree0382829476f625da33c3be1eb8e16fa3938ec9e8 /Library
parenteb439ead0d682076d1f9f419a7e08a1a7aa72c2e (diff)
downloadhomebrew-f97538f30635e988f7170b848d3134149f0cf49a.tar.bz2
Fixed compilation of mad formula.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mad.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Formula/mad.rb b/Library/Formula/mad.rb
index 153ad2f86..840595d20 100644
--- a/Library/Formula/mad.rb
+++ b/Library/Formula/mad.rb
@@ -31,14 +31,14 @@ Cflags: -I${includedir}
fpm = 'intel'
end
+ system "./configure", "--disable-debugging", "--enable-fpm=#{fpm}", "--prefix=#{prefix}"
+
# See: http://github.com/mxcl/homebrew/issues/issue/1263
- if Hardware.intel_family == 'arrandale'
- inreplace "Makefile" do |s|
- s.remove_make_var! %w{CFLAGS LDFLAGS}
- end
+ inreplace "Makefile" do |s|
+ s.change_make_var! "CFLAGS", ENV['CFLAGS']
+ s.change_make_var! "LDFLAGS", ENV['LDFLAGS']
end
- system "./configure", "--disable-debugging", "--enable-fpm=#{fpm}", "--prefix=#{prefix}"
system "make install"
(lib+'pkgconfig/mad.pc').write mad_pc