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
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
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"]
|
2010-08-08 04:04:37 +00:00
|
|
|
args << "--target=x86_64-Darwin" if snow_leopard_64?
|
2009-12-07 15:31:51 +00:00
|
|
|
|
2010-04-07 05:58:35 +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
|