blob: 638be628e039392f3540ff5385aacfbb3d83b50e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
require 'formula'
class Mplayer < Formula
homepage 'http://www.mplayerhq.hu/'
# https://github.com/mxcl/homebrew/issues/issue/87
head 'svn://svn.mplayerhq.hu/mplayer/trunk', :using => StrictSubversionDownloadStrategy
depends_on 'pkg-config' => :build
depends_on 'yasm' => :build
def patches
# configure prompts the user to pull ffmpeg from git.
# Don't do that.
DATA
end
def install
# Do not use pipes, per bug report
# https://github.com/mxcl/homebrew/issues#issue/622
# and MacPorts
# http://trac.macports.org/browser/trunk/dports/multimedia/mplayer-devel/Portfile
# any kind of optimisation breaks the build
ENV.gcc_4_2
ENV['CFLAGS'] = ''
ENV['CXXFLAGS'] = ''
args = "--prefix=#{prefix}"
system './configure', *args
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"
|