Skip to content

Commit

Permalink
Adding the formula for MESS
Browse files Browse the repository at this point in the history
This formula builds MESS, the Multi Emulator Super System.
  • Loading branch information
ashgti committed Jul 23, 2012
1 parent d86222a commit 407de2b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions 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.