Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding a formula for the MESS/MAME rom tool

The rom-tools are extra's that come with both MESS and MAME.
They can be used to manage, extend, create and modify ROMS and
other MAME/MESS support files.

Fixing an issue with 64/32 bit
  • Loading branch information...
commit 33d4f359364bac009746ba391cf85b3cf03553da 1 parent 407de2b
@ashgti authored
View
2  Library/Formula/mame.rb
@@ -12,7 +12,7 @@ class Mame < Formula
def install
ENV['MACOSX_USE_LIBSDL'] = '1'
ENV['INCPATH'] = '-I./src/lib/util -I/usr/X11/include'
- ENV['PTR64'] = if MacOS.prefer_64_bit? then '0' else '1' end
+ ENV['PTR64'] = if MacOS.prefer_64_bit? then '1' else '0' end
# Builds MAME
system 'make', 'TARGET=mame', 'SUBTARGET=mame'
View
2  Library/Formula/mess.rb
@@ -12,7 +12,7 @@ class Mess < Formula
def install
ENV['MACOSX_USE_LIBSDL'] = '1'
ENV['INCPATH'] = '-I./src/lib/util -I/usr/X11/include'
- ENV['PTR64'] = if MacOS.prefer_64_bit? then '0' else '1' end
+ ENV['PTR64'] = if MacOS.prefer_64_bit? then '1' else '0' end
system 'make' # Builds MESS
if MacOS.prefer_64_bit?
View
33 Library/Formula/rom-tools.rb
@@ -0,0 +1,33 @@
+require 'formula'
+
+class RomTools < Formula
+ url 'svn://messdev.no-ip.org/mess', :revision => 15603
+ head 'svn://messdev.no-ip.org/mess'
+ homepage 'http://www.mess.org/'
+ version '146u3'
+
+ depends_on :x11
+ depends_on 'sdl'
+
+ def install
+ ENV['MACOSX_USE_LIBSDL'] = '1'
+ ENV['INCPATH'] = '-I./src/lib/util -I/usr/X11/include'
+ ENV['PTR64'] = if MacOS.prefer_64_bit? then '1' else '0' end
+
+ system 'make romcmp'
+ system 'make jedutil'
+ system 'make chdman'
+ system 'make tools'
+
+ bin.install ['castool', 'chdman', 'floptool', 'imgtool', 'jedutil',
+ 'ldresample', 'ldverify', 'regreg', 'romcmp', 'src2html',
+ 'srcclean', 'testkeys', 'unidasm']
+
+ bin.install 'split' => 'rom-split'
+ end
+
+ def test
+ system "chdman -h"
+ end
+end
+
Please sign in to comment.
Something went wrong with that request. Please try again.