2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-08-12 00:29:24 +00:00
|
|
|
|
|
|
|
class Mplayer <Formula
|
2009-12-07 15:31:51 +00:00
|
|
|
homepage 'http://www.mplayerhq.hu/'
|
2010-06-28 21:55:31 +00:00
|
|
|
# http://github.com/mxcl/homebrew/issues/issue/87
|
|
|
|
head 'svn://svn.mplayerhq.hu/mplayer/trunk', :using => StrictSubversionDownloadStrategy
|
2009-12-07 15:31:51 +00:00
|
|
|
|
2009-10-06 04:09:57 +00:00
|
|
|
depends_on 'pkg-config' => :recommended
|
2010-02-19 23:39:52 +00:00
|
|
|
depends_on 'yasm' => :optional
|
2009-08-12 00:29:24 +00:00
|
|
|
|
|
|
|
def install
|
2010-02-19 23:39:52 +00:00
|
|
|
# Do not use pipes, per bug report
|
|
|
|
# http://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
|
2009-12-07 15:31:51 +00:00
|
|
|
ENV['CC'] = ''
|
|
|
|
ENV['LD'] = ''
|
2010-02-19 23:39:52 +00:00
|
|
|
ENV['CFLAGS'] = ''
|
|
|
|
ENV['CXXFLAGS'] = ''
|
2009-12-07 15:31:51 +00:00
|
|
|
|
2010-02-19 23:39:52 +00:00
|
|
|
args = ["--prefix=#{prefix}", "--enable-largefiles", "--enable-apple-remote"]
|
2009-12-07 15:31:51 +00:00
|
|
|
args << "--target=x86_64-Darwin" if Hardware.is_64_bit? and MACOS_VERSION >= 10.6
|
|
|
|
|
2010-02-19 23:39:52 +00:00
|
|
|
system './configure', *args
|
2009-09-18 08:13:46 +00:00
|
|
|
system "make"
|
2009-08-12 00:29:24 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2009-12-04 17:44:18 +00:00
|
|
|
end
|