aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorGordon Child2011-07-25 16:19:58 -0500
committerAdam Vandenberg2011-07-29 08:27:26 -0700
commitf8d4d3a3448a6909f7cbd5593f5516ad0cab2234 (patch)
treea25deb54944139682924b8716858598b867490f2 /Library/Formula
parentb731fbb206968f602f26af68014514ba076b2cda (diff)
downloadhomebrew-f8d4d3a3448a6909f7cbd5593f5516ad0cab2234.tar.bz2
mplayer: apply ustream patch for Lion
This issue was identified by Sharpie on github. I pulled the fix from the svn trunk of mplayer. It was fixed in revision 32840. https://gist.github.com/mxcl/homebrew/issues/6408 Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mplayer.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Formula/mplayer.rb b/Library/Formula/mplayer.rb
index 17298febe..875b11b8b 100644
--- a/Library/Formula/mplayer.rb
+++ b/Library/Formula/mplayer.rb
@@ -13,7 +13,12 @@ class Mplayer < Formula
def patches
# When building from SVN HEAD, configure prompts the user to pull FFmpeg
# from git. Don't do that.
- DATA if ARGV.build_head?
+ if ARGV.build_head?
+ DATA
+ elsif `uname -r` =~ /^11\./
+ # Lion requires the following diff (which is already fixed in svn trunk)
+ "https://raw.github.com/gist/1105164/704c64c97ab7ffcc3e5f69b1c5d4fb0850f572c1/vd_mpng.c.diff"
+ end
end
def install