forked from ziz/homebrew-games
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mednafen.rb
37 lines (31 loc) · 1.1 KB
/
mednafen.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
class Mednafen < Formula
desc "Multi-system emulator"
homepage "http://mednafen.fobby.net/"
url "http://mednafen.fobby.net/releases/files/mednafen-0.9.38.6.tar.bz2"
sha256 "9460da3c6cd8cb8a02293d51c958cbc6ab5555aa6d115b952d4db2e0f1067e47"
bottle do
sha256 "b6a19caa842e3e136ee90bc3f817a92212a0bcb26b6c41fa58e0ad3b2f053be9" => :yosemite
sha256 "d58c5ea9c861c2b5bf7bd0f1cade621911748717dbcb66507f93b675dcd213fa" => :mavericks
sha256 "c05c05f4479c5d148469064dd13c1e67ebb8a0675fa53a9d9158ed274551a368" => :mountain_lion
end
depends_on "pkg-config" => :build
depends_on "sdl"
depends_on "libsndfile"
depends_on "gettext"
needs :cxx11
fails_with :clang do
build 602
cause <<-EOS.undent
LLVM miscompiles some loop code with optimization
https://llvm.org/bugs/show_bug.cgi?id=15470
EOS
end
def install
ENV.cxx11
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
system "make", "install"
end
test do
assert_equal "#{version}", shell_output("#{bin}/mednafen -dump_modules_def M >/dev/null || head -n 1 M").chomp
end
end