Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (39 sloc) 1.572 kb
class RomTools < 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 "375cb5259041202c2396e02ce4755fdbd23c105652ed137e8cc6a083c1957c5d" => :yosemite
sha256 "9e155683935968140c00dd20e53e9d25fd2c697695f625302c73ef5b145ad267" => :mavericks
sha256 "d3d88cc2f621dffcc081ef549e5bb06f7eb0f98ce8de38dadc63efd188ee7100" => :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=ldplayer", "TOOLS=1"
bin.install %W[
chdman jedutil ldresample ldverify nltool pngcmp regrep romcmp src2html
srcclean testkeys unidasm
]
bin.install "split" => "rom-split"
if MacOS.prefer_64_bit?
bin.install "ldplayer64" => "ldplayer"
else
bin.install "ldplayer"
end
%W[chdman jedutil ldplayer ldresample ldverify romcmp testkeys].each do |manfile|
man1.install "src/osd/sdl/man/#{manfile}.1"
end
end
end
Jump to Line
Something went wrong with that request. Please try again.