Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
45 lines (36 sloc) 1.352 kb
class Mame < Formula
homepage "http://mamedev.org/"
url "https://github.com/mamedev/mame/archive/mame0161.tar.gz"
sha256 "f7db934676e90d0d7f2b678ccf32e580417c754dd33117ec683560956c2130b9"
version "0.161"
head "https://github.com/mamedev/mame.git"
bottle do
root_url "https://homebrew.bintray.com/bottles-games"
cellar :any
sha256 "2fd889ac6550c7a626ef4980acdc4ae06813e7c5be925839cb8e7ad5b8ecd13d" => :yosemite
sha256 "3e1e8361d872e70cf46e8e58f35bb96642bdab45e9697bb69c14facafebbcfa9" => :mavericks
sha256 "e3c19957e58f500fdc6aa7983a59495534f79a1f6772ea0144a837f30f803f14" => :mountain_lion
end
depends_on "sdl2"
# Use OpenGL extensions for non-framework SDL 2 environment.
# Upstream: <https://github.com/mamedev/mame/pull/170>
patch do
url "https://github.com/mbcoguno/mame/commit/05f71a27f9.diff"
sha256 "d7c82d97cc9367226b44bcd174b98ce56f96b034f12a0af7cae1da76065a947c"
end
def install
ENV["MACOSX_USE_LIBSDL"] = "1"
ENV["PTR64"] = (MacOS.prefer_64_bit? ? "1" : "0")
system "make", "CC=#{ENV.cc}", "LD=#{ENV.cxx}",
"TARGET=mame", "SUBTARGET=mame"
if MacOS.prefer_64_bit?
bin.install "mame64" => "mame"
else
bin.install "mame"
end
man6.install "src/osd/sdl/man/mame.6"
end
test do
system "#{bin}/mame", "-help"
end
end
Jump to Line
Something went wrong with that request. Please try again.