aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mess.rb
blob: 2496ebc3f621b59695e04649dbf1f9dd91204546 (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
33
require 'formula'

class Mess < Formula
  homepage "http://www.mess.org/"
  url "https://github.com/mamedev/mame/archive/mame0155.tar.gz"
  sha1 "0e56d53dd6dd916b3c29387112a7042befc501bd"
  version "0.155"

  head "https://github.com/mamedev/mame.git"

  bottle do
    cellar :any
    sha1 "e5a44194f5e7498ef816530ec8196c1f96448f96" => :yosemite
    sha1 "6003ef6faaced6b86a8f63ab7a2ec33885c2fa75" => :mavericks
    sha1 "51c9c19ba6dfc316986406018da7a4f86c46dd1d" => :mountain_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