diff --git a/Formula/mplayer.rb b/Formula/mplayer.rb index 17298febe8..875b11b8b1 100644 --- a/Formula/mplayer.rb +++ b/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