diff options
| author | Adam Vandenberg | 2010-07-09 09:02:56 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-07-09 09:02:56 -0700 |
| commit | 9078e19adc1745865b0b8bbaa90b84b035fefd5c (patch) | |
| tree | e1ec601019d16c1b7237d9d55430783ea9bc08e0 /Library/Formula | |
| parent | e66f6435e071a7b4ca4f177ec74b31922fa5769e (diff) | |
| download | homebrew-9078e19adc1745865b0b8bbaa90b84b035fefd5c.tar.bz2 | |
Update mad for newer Macs.
Mad won't brew on arrandale CPUs, so include a submitted patch.
While we're at it, enable 64bit where appropriate.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mad.rb | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/Library/Formula/mad.rb b/Library/Formula/mad.rb index bdc731295..153ad2f86 100644 --- a/Library/Formula/mad.rb +++ b/Library/Formula/mad.rb @@ -5,7 +5,7 @@ class Mad <Formula url 'http://downloads.sourceforge.net/project/mad/libmad/0.15.1b/libmad-0.15.1b.tar.gz' md5 '1be543bc30c56fb6bea1d7bf6a64e66c' - aka :libmad + aka 'libmad' def mad_pc return <<-EOS @@ -25,9 +25,22 @@ Cflags: -I${includedir} end def install - system "./configure --disable-debugging --enable-fpm=intel --prefix='#{prefix}'" + if MACOS_VERSION >= 10.6 and Hardware.is_64_bit? + fpm = '64bit' + else + fpm = 'intel' + end + + # 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 + end + + system "./configure", "--disable-debugging", "--enable-fpm=#{fpm}", "--prefix=#{prefix}" system "make install" (lib+'pkgconfig/mad.pc').write mad_pc end -end
\ No newline at end of file +end |
