2012-12-27 20:24:41 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Ume < Formula
|
|
|
|
homepage 'http://mamedev.org/'
|
2014-07-23 21:00:37 +00:00
|
|
|
url 'svn://dspnet.fr/mame/trunk', :revision => '31397'
|
|
|
|
version '0.154'
|
2012-12-27 20:24:41 +00:00
|
|
|
|
|
|
|
head 'svn://dspnet.fr/mame/trunk'
|
|
|
|
|
2014-07-24 05:52:33 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "9355c003f65ff30d16dbdd304a340bcb5fb81b61" => :mavericks
|
|
|
|
sha1 "d88f548400574c40e2df081e50ec37c1381edd07" => :mountain_lion
|
|
|
|
sha1 "4a8c91568ef915b0cad541e7b8db71c3545808ef" => :lion
|
|
|
|
end
|
|
|
|
|
2012-12-27 20:24:41 +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=ume"
|
2012-12-27 20:24:41 +00:00
|
|
|
|
|
|
|
if MacOS.prefer_64_bit?
|
|
|
|
bin.install 'ume64' => 'ume'
|
|
|
|
else
|
|
|
|
bin.install 'ume'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|