Permalink
Browse files

Adding the formula for MESS

This formula builds MESS, the Multi Emulator Super System.
  • Loading branch information...
1 parent d86222a commit 407de2ba7dcbc8e2c8cb6d99db1dce0b9164e081 @ashgti committed Jul 23, 2012
Showing with 28 additions and 0 deletions.
  1. +28 −0 Library/Formula/mess.rb
View
28 Library/Formula/mess.rb
@@ -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 '0' else '1' 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 comments on commit 407de2b

Please sign in to comment.