forked from ziz/homebrew-games
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scummvm.rb
43 lines (38 loc) · 1.39 KB
/
scummvm.rb
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
class Scummvm < Formula
desc "Graphic adventure game interpreter"
homepage "http://scummvm.org/"
url "https://downloads.sourceforge.net/project/scummvm/scummvm/1.7.0/scummvm-1.7.0.tar.bz2"
sha256 "d9ff0e8cf911afa466d5456d28fef692a17d47ddecfd428bf2fef591237c2e66"
head "https://github.com/scummvm/scummvm.git"
bottle do
sha256 "20b37ba4b2833f9d1410229d70478878f685e4fac066edcde4596aa89cdce91d" => :yosemite
sha256 "00b1d3d1f999a431d27b452c8d85763801b68845d25577288723b4e15f94a0de" => :mavericks
sha256 "d7b6bf9e056151d493c0949e94adc662e572d4aaeb215bc2078b6e3a0e485b5c" => :mountain_lion
end
option "with-all-engines", "Enable all engines (including broken or unsupported)"
depends_on "sdl"
depends_on "libvorbis" => :recommended
depends_on "mad" => :recommended
depends_on "flac" => :recommended
depends_on "libmpeg2" => :optional
depends_on "jpeg" => :recommended
depends_on "libpng" => :recommended
depends_on "theora" => :recommended
depends_on "faad2" => :recommended
depends_on "fluid-synth" => :recommended
depends_on "freetype" => :recommended
def install
args = %W[
--prefix=#{prefix}
--enable-release
]
args << "--enable-all-engines" if build.with? "all-engines"
system "./configure", *args
system "make"
system "make", "install"
(share+"pixmaps").rmtree
end
test do
system "#{bin}/scummvm", "-v"
end
end