2012-07-23 06:13:39 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Mess < Formula
|
2014-10-19 00:56:52 +00:00
|
|
|
homepage "http://www.mess.org/"
|
|
|
|
url "https://github.com/mamedev/mame/archive/mame0155.tar.gz"
|
|
|
|
sha1 "0e56d53dd6dd916b3c29387112a7042befc501bd"
|
|
|
|
version "0.155"
|
2012-07-23 06:13:39 +00:00
|
|
|
|
2014-10-19 00:56:52 +00:00
|
|
|
head "https://github.com/mamedev/mame.git"
|
2012-07-23 06:13:39 +00:00
|
|
|
|
2014-07-24 07:24:45 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-10-19 03:03:40 +00:00
|
|
|
sha1 "e5a44194f5e7498ef816530ec8196c1f96448f96" => :yosemite
|
|
|
|
sha1 "6003ef6faaced6b86a8f63ab7a2ec33885c2fa75" => :mavericks
|
|
|
|
sha1 "51c9c19ba6dfc316986406018da7a4f86c46dd1d" => :mountain_lion
|
2014-07-24 07:24:45 +00:00
|
|
|
end
|
|
|
|
|
2012-07-23 06:13:39 +00:00
|
|
|
depends_on 'sdl'
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV['MACOSX_USE_LIBSDL'] = '1'
|
|
|
|
ENV['PTR64'] = (MacOS.prefer_64_bit? ? '1' : '0')
|
|
|
|
|
2013-03-20 15:19:32 +00:00
|
|
|
system "make", "CC=#{ENV.cc}", "LD=#{ENV.cxx}",
|
|
|
|
"TARGET=mess", "SUBTARGET=mess"
|
2012-07-23 06:13:39 +00:00
|
|
|
|
|
|
|
if MacOS.prefer_64_bit?
|
|
|
|
bin.install 'mess64' => 'mess'
|
|
|
|
else
|
|
|
|
bin.install 'mess'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|