MPlayer: add stable download

The patch required to build from SVN head may not apply cleanly depending on
changes to the codebase.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>

Also clean up the formula a bit and edit the comments
master
Charlie Sharpsteen 2011-06-18 17:08:27 -07:00 committed by Adam Vandenberg
parent af3e8602f0
commit ebafb03e70
1 changed files with 11 additions and 12 deletions

View File

@ -2,31 +2,30 @@ require 'formula'
class Mplayer < Formula class Mplayer < Formula
homepage 'http://www.mplayerhq.hu/' homepage 'http://www.mplayerhq.hu/'
# https://github.com/mxcl/homebrew/issues/issue/87 url 'ftp://ftp.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc4.tar.bz2'
md5 '1699c94de39da9c4c5d34e8f58e418f0'
head 'svn://svn.mplayerhq.hu/mplayer/trunk', :using => StrictSubversionDownloadStrategy head 'svn://svn.mplayerhq.hu/mplayer/trunk', :using => StrictSubversionDownloadStrategy
depends_on 'pkg-config' => :build depends_on 'pkg-config' => :build
depends_on 'yasm' => :build depends_on 'yasm' => :build
def patches def patches
# configure prompts the user to pull ffmpeg from git. # When building from SVN HEAD, configure prompts the user to pull FFmpeg
# Don't do that. # from git. Don't do that.
DATA DATA if ARGV.build_head?
end end
def install def install
# Do not use pipes, per bug report # (A) Do not use pipes, per bug report and MacPorts
# https://github.com/mxcl/homebrew/issues#issue/622 # * https://github.com/mxcl/homebrew/issues/622
# and MacPorts # * http://trac.macports.org/browser/trunk/dports/multimedia/mplayer-devel/Portfile
# http://trac.macports.org/browser/trunk/dports/multimedia/mplayer-devel/Portfile # (B) Any kind of optimisation breaks the build
# any kind of optimisation breaks the build
ENV.gcc_4_2 ENV.gcc_4_2
ENV['CFLAGS'] = '' ENV['CFLAGS'] = ''
ENV['CXXFLAGS'] = '' ENV['CXXFLAGS'] = ''
args = "--prefix=#{prefix}" system './configure', "--prefix=#{prefix}"
system './configure', *args
system "make" system "make"
system "make install" system "make install"
end end