diff options
| author | Max Howell | 2009-12-07 15:31:51 +0000 |
|---|---|---|
| committer | Max Howell | 2009-12-07 15:32:40 +0000 |
| commit | e0c2bee55eab22a87d0170e553d7ef4d74192765 (patch) | |
| tree | 1d759d23daf2e2273850c9fc2d3b69b65e83475f /Library/Formula | |
| parent | e4c834b24ccda22952c8c1c801a14c8f457c04e3 (diff) | |
| download | homebrew-e0c2bee55eab22a87d0170e553d7ef4d74192765.tar.bz2 | |
Fix mplayer formula; Fixes #172
This is horrible in that I had to disable all optimisations and mplayer is the kind of tool that really gets a boost out of them!
I hope they release another tarball soon.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mplayer.rb | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/Library/Formula/mplayer.rb b/Library/Formula/mplayer.rb index 5e6b99e23..1087840c1 100644 --- a/Library/Formula/mplayer.rb +++ b/Library/Formula/mplayer.rb @@ -1,17 +1,26 @@ require 'formula' class Mplayer <Formula - @homepage='http://www.mplayerhq.hu/' - @head='svn://svn.mplayerhq.hu/mplayer/trunk' - + homepage 'http://www.mplayerhq.hu/' + head 'svn://svn.mplayerhq.hu/mplayer/trunk' + depends_on 'pkg-config' => :recommended # http://github.com/mxcl/homebrew/issues/#issue/87 depends_on :subversion if MACOS_VERSION < 10.6 def install - ENV.gcc_4_2 # llvm chokes on labels within mlp inline asm - system "./configure", "--prefix=#{prefix}" + # LLVM-2206 can't handle some of the assembly + # Using gcc_4_2 doesn't work, failing mysteriously (check this again) + ENV['CC'] = '' + ENV['LD'] = '' + # any kind of optimisation breaks the build + ENV['CFLAGS'] = HOMEBREW_SAFE_CFLAGS + + args = ['./configure', "--prefix=#{prefix}"] + args << "--target=x86_64-Darwin" if Hardware.is_64_bit? and MACOS_VERSION >= 10.6 + + system *args system "make" system "make install" end |
