diff options
| author | Jack Nagel | 2014-03-16 21:35:21 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-16 21:35:21 -0500 |
| commit | aeaae737b34e141baed68690e2583163ecc2277b (patch) | |
| tree | bebe7e842fe43cfe45f7a91a35508ac4b995189e /Library | |
| parent | 123d40c8cc004127c2720a96af59c522c8bcbe31 (diff) | |
| download | homebrew-aeaae737b34e141baed68690e2583163ecc2277b.tar.bz2 | |
mplayer: use checksummed patches
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mplayer.rb | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/Library/Formula/mplayer.rb b/Library/Formula/mplayer.rb index a1e0a8abf..979da685f 100644 --- a/Library/Formula/mplayer.rb +++ b/Library/Formula/mplayer.rb @@ -2,10 +2,25 @@ require 'formula' class Mplayer < Formula homepage 'http://www.mplayerhq.hu/' - url 'http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.1.1.tar.xz' - sha1 'ba2f3bd1442d04b17b0143680850273d928689c1' - head 'svn://svn.mplayerhq.hu/mplayer/trunk', :using => StrictSubversionDownloadStrategy + stable do + url "http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.1.1.tar.xz" + sha1 "ba2f3bd1442d04b17b0143680850273d928689c1" + + # Fix compilation on 10.9, adapted from upstream revision r36500 + patch do + url "https://gist.github.com/jacknagel/7441175/raw/37657c264a6a3bb4d30dee14538c367f7ffccba9/vo_corevideo.h.patch" + sha1 "92717335aed9ec5d01fcf62f9787c6d50cf5d911" + end + end + + head do + url "svn://svn.mplayerhq.hu/mplayer/trunk", :using => StrictSubversionDownloadStrategy + + # When building SVN, configure prompts the user to pull FFmpeg from git. + # Don't do that. + patch :DATA + end option 'with-x', 'Build with X11 support' option 'without-osd', 'Build without OSD' @@ -26,19 +41,6 @@ class Mplayer < Formula cause 'Inline asm errors during compile on 32bit Snow Leopard.' end unless MacOS.prefer_64_bit? - def patches - p = [] - if build.head? - # When building SVN, configure prompts the user to pull FFmpeg from git. - # Don't do that. - p << DATA - else - # Fix compilation on 10.9, adapted from upstream revision r36500 - p << "https://gist.github.com/jacknagel/7441175/raw/37657c264a6a3bb4d30dee14538c367f7ffccba9/vo_corevideo.h.patch" - end - p - end - def install # It turns out that ENV.O1 fixes link errors with llvm. ENV.O1 if ENV.compiler == :llvm |
