blob: 57e9abc8b2618bb7eddbed86117d9b13e6d73815 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  | 
require 'formula'
class Mess < Formula
  homepage 'http://www.mess.org/'
  url 'svn://dspnet.fr/mame/trunk', :revision => '31397'
  version '0.154'
  head 'svn://dspnet.fr/mame/trunk'
  bottle do
    cellar :any
    sha1 "dc6ff1625f345f6f810636bdd98a5a22fd8524eb" => :mavericks
    sha1 "0546864fa385c152fb93d8ed541b4fd38b96d88b" => :mountain_lion
    sha1 "e08903763afabce924b4253b165e21ffd24d3942" => :lion
  end
  depends_on 'sdl'
  def install
    ENV['MACOSX_USE_LIBSDL'] = '1'
    ENV['PTR64'] = (MacOS.prefer_64_bit? ? '1' : '0')
    system "make", "CC=#{ENV.cc}", "LD=#{ENV.cxx}",
                   "TARGET=mess", "SUBTARGET=mess"
    if MacOS.prefer_64_bit?
      bin.install 'mess64' => 'mess'
    else
      bin.install 'mess'
    end
  end
end
  |