aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/scummvm.rb
blob: d485a26c6c60c8637867fdc420ec760744590537 (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
require 'formula'

class Scummvm <Formula
  url 'http://downloads.sourceforge.net/project/scummvm/scummvm/1.1.1/scummvm-1.1.1.tar.bz2'
  homepage 'http://www.scummvm.org/'
  md5 'ed9098a78022d07fa1482f14325e3ab8'

  def caveats
    <<-EOS
ScummVM provide their own Mac build and as such that is the one they
officially support on this platform. Ours is more optimised, but you may
prefer to use theirs. If so type `brew home scummvm' to visit their site.
    EOS
  end

  depends_on 'sdl'
  depends_on 'flac' => :recommended
  depends_on 'libvorbis' => :recommended
  depends_on 'libogg' => :recommended
  depends_on 'fluid-synth' => :optional

  def install
    system "./configure", "--prefix=#{prefix}", "--disable-debug"
    system "make install"
    (share+'pixmaps').rmtree
  end
end