forked from ziz/homebrew-games
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchocolate-doom.rb
47 lines (42 loc) · 1.6 KB
/
chocolate-doom.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
44
45
46
47
class ChocolateDoom < Formula
desc "Accurate source port of Doom"
homepage "http://www.chocolate-doom.org/"
url "http://www.chocolate-doom.org/downloads/2.2.1/chocolate-doom-2.2.1.tar.gz"
sha256 "ad11e2871667c6fa0658abf2dcba0cd9b26fbd651ee8df55adfdc18ad8fd674a"
bottle do
cellar :any
revision 1
sha256 "1672f5f2388e3fb0a5c9541b645090d27aaef07c9b6de516e64bd63c86f0b635" => :el_capitan
sha256 "219a149ac91fcefdbecffec5ee8d2164453dbd7b03674b6aa279b700203b21ba" => :yosemite
sha256 "6a6b0e67cd0be2f3476dd16ff6e6cb8e2b702a212f979048999f5a4c0d2c929e" => :mavericks
end
head do
url "https://github.com/chocolate-doom/chocolate-doom.git"
depends_on "automake" => :build
depends_on "autoconf" => :build
end
depends_on "sdl"
depends_on "sdl_net"
depends_on "sdl_mixer"
depends_on "libsamplerate" => :recommended
depends_on "libpng" => :recommended
def install
system "./autogen.sh" if build.head?
system "./configure", "--prefix=#{prefix}",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--disable-sdltest"
system "make", "install", "execgamesdir=#{bin}"
(share/"applications").rmtree
(share/"icons").rmtree
end
def caveats; <<-EOS.undent
Note that this formula only installs a Doom game engine, and no
actual levels. The original Doom levels are still under copyright,
so you can copy them over and play them if you already own them.
Otherwise, there are tons of free levels available online.
Try starting here:
#{homepage}
EOS
end
end