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 commentsmaster
parent
af3e8602f0
commit
ebafb03e70
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue