This repository has been archived by the owner. It is now read-only.

Adding in a new formula for MESS and MAME. #9730

Closed
wants to merge 3 commits into
from
Jump to file or symbol
Failed to load files and symbols.
+92 −0
Split
View
@@ -0,0 +1,31 @@
+require 'formula'
+
+class Mame < Formula
+ url 'svn://messdev.no-ip.org/mess', :revision => 15603
+ head 'svn://messdev.no-ip.org/mess'
+ homepage 'http://mamedev.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
+
+ # Builds MAME
+ system 'make', 'TARGET=mame', 'SUBTARGET=mame'
+ bin.install 'mame64'
+ if MacOS.prefer_64_bit?
+ bin.install 'mame64' => 'mame'
+ else
+ bin.install 'mame'
+ end
+ end
+
+ def test
+ system "mame -h"
+ end
+end
+
View
@@ -0,0 +1,28 @@
+require 'formula'
+
+class Mess < 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' # Builds MESS
+ if MacOS.prefer_64_bit?
+ bin.install 'mess64' => 'mess'
+ else
+ bin.install 'mess'
+ end
+ end
+
+ def test
+ system "mess -h"
+ end
+end
@@ -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
+