homebrew-core/Formula/mplayer.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

30 lines
918 B
Ruby

require 'formula'
class Mplayer <Formula
homepage 'http://www.mplayerhq.hu/'
# http://github.com/mxcl/homebrew/issues/issue/87
head 'svn://svn.mplayerhq.hu/mplayer/trunk', :using => StrictSubversionDownloadStrategy
depends_on 'pkg-config' => :recommended
depends_on 'yasm' => :optional
def install
# 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
ENV['CC'] = ''
ENV['LD'] = ''
ENV['CFLAGS'] = ''
ENV['CXXFLAGS'] = ''
args = ["--prefix=#{prefix}", "--enable-largefiles", "--enable-apple-remote"]
args << "--target=x86_64-Darwin" if Hardware.is_64_bit? and MACOS_VERSION >= 10.6
system './configure', *args
system "make"
system "make install"
end
end