ebafb03e70
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
47 lines
1.3 KiB
Ruby
47 lines
1.3 KiB
Ruby
require 'formula'
|
|
|
|
class Mplayer < Formula
|
|
homepage 'http://www.mplayerhq.hu/'
|
|
url 'ftp://ftp.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc4.tar.bz2'
|
|
md5 '1699c94de39da9c4c5d34e8f58e418f0'
|
|
|
|
head 'svn://svn.mplayerhq.hu/mplayer/trunk', :using => StrictSubversionDownloadStrategy
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'yasm' => :build
|
|
|
|
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?
|
|
end
|
|
|
|
def install
|
|
# (A) Do not use pipes, per bug report and MacPorts
|
|
# * https://github.com/mxcl/homebrew/issues/622
|
|
# * http://trac.macports.org/browser/trunk/dports/multimedia/mplayer-devel/Portfile
|
|
# (B) Any kind of optimisation breaks the build
|
|
ENV.gcc_4_2
|
|
ENV['CFLAGS'] = ''
|
|
ENV['CXXFLAGS'] = ''
|
|
|
|
system './configure', "--prefix=#{prefix}"
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
end
|
|
|
|
__END__
|
|
diff --git a/configure b/configure
|
|
index ef60340..0b24e73 100755
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -48,8 +48,6 @@
|
|
fi
|
|
|
|
if ! test -e ffmpeg ; then
|
|
- echo "No FFmpeg checkout, press enter to download one with git or CTRL+C to abort"
|
|
- read tmp
|
|
if ! git clone --depth 1 git://git.videolan.org/ffmpeg.git ffmpeg ; then
|
|
rm -rf ffmpeg
|
|
echo "Failed to get a FFmpeg checkout"
|