forked from ziz/homebrew-games
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dosbox-x.rb
48 lines (39 loc) · 1.35 KB
/
dosbox-x.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
48
class DosboxX < Formula
desc "DOSBox with accurate emulation and wide testing"
homepage "http://dosbox-x.com/"
head "https://github.com/joncampbell123/dosbox-x.git"
stable do
url "https://github.com/joncampbell123/dosbox-x/archive/v0.801.tar.gz"
sha256 "40f94cdcc5c9a374c522de7eb2c2288eaa8c6de85d0bd6a730f48bd5d84a89f9"
end
bottle do
cellar :any
sha256 "dd180aec251c141215aad2d202f1338025d4898e301e8fe0cbc6ba412f12652c" => :yosemite
sha256 "ef7faa65a136f1385220697e1a9dc5ce3c29fb09c54d55200921c83ea8094979" => :mavericks
sha256 "cbe3b3c41f82ecb32a3abbb23b6df05b7916c9fbe7413e7de680bb1c5a8502f7" => :mountain_lion
end
depends_on "sdl"
depends_on "sdl_net"
depends_on "sdl_sound" => ["--with-libogg", "--with-libvorbis"]
depends_on "libpng"
depends_on "fluid-synth"
# Otherwise build failure on Moutain Lion (#311)
needs :cxx11
conflicts_with "dosbox", :because => "both install `dosbox` binaries"
def install
ENV.cxx11
args = %W[
--prefix=#{prefix}
--disable-dependency-tracking
--disable-sdltest
--enable-core-inline
]
args << "--enable-debug" if build.with? "debugger"
system "./configure", *args
chmod 0755, "install-sh"
system "make", "install"
end
test do
assert_match /DOSBox version #{version}/, shell_output("#{bin}/dosbox -version 2>&1", 1)
end
end