a80a94320f
* Switch to SDL2 with hotfix Closes Homebrew/homebrew#34751. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
34 lines
923 B
Ruby
34 lines
923 B
Ruby
require 'formula'
|
|
|
|
class Mess < Formula
|
|
homepage "http://www.mess.org/"
|
|
url "https://github.com/mamedev/mame/archive/mame0156.tar.gz"
|
|
sha1 "9cda662385c0b168ca564dab0fb1e839065f6a01"
|
|
version "0.156"
|
|
|
|
head "https://github.com/mamedev/mame.git"
|
|
|
|
depends_on "sdl2"
|
|
|
|
# Fix for Cocoa framework linking and sdl-config path
|
|
# It's been upstreamed, so remove from the next release
|
|
# https://github.com/mamedev/mame/pull/60
|
|
patch do
|
|
url "https://github.com/mbcoguno/mame/commit/5d8dc09b12ea7d5576ef92e3e14a1db3654ff810.diff"
|
|
sha1 "76c0f11f225968a10c0f024c55607e9f09634825"
|
|
end
|
|
|
|
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
|