Skip to content

Commit

Permalink
mame: fix runtime bug on Big Sur
Browse files Browse the repository at this point in the history
Closes #66718.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
  • Loading branch information
mbcoguno authored and BrewTestBot committed Dec 11, 2020
1 parent 9c9c362 commit 892ca5a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Formula/mame.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,19 @@ class Mame < Formula
uses_from_macos "expat"
uses_from_macos "zlib"

# Disable BGFX threading. Remove in next version.
patch do
url "https://github.com/mamedev/mame/commit/48d1f0de37fc6c429051dd1bcd1a49dbef581b1a.patch?full_index=1"
sha256 "9f9aba588ab1e82d927d1c101780415672c54cb463e80d435be3cb1d0ec34217"
end

def install
# Cut sdl2-config's invalid option.
inreplace "scripts/src/osd/sdl.lua", "--static", ""

# Use bundled asio and lua instead of latest version.
# See: <https://github.com/mamedev/mame/issues/5721>
# https://github.com/mamedev/mame/issues/5721
# https://github.com/mamedev/mame/issues/5349
system "make", "PYTHON_EXECUTABLE=#{Formula["python@3.9"].opt_bin}/python3",
"USE_LIBSDL=1",
"USE_SYSTEM_LIB_EXPAT=1",
Expand Down

0 comments on commit 892ca5a

Please sign in to comment.