homebrew-core/Formula/advancemame.rb

40 lines
1.3 KiB
Ruby

class Advancemame < Formula
desc "MAME with advanced video support"
homepage "https://www.advancemame.it/"
url "https://github.com/amadvance/advancemame/releases/download/v3.9/advancemame-3.9.tar.gz"
sha256 "3e4628e1577e70a1dbe104f17b1b746745b8eda80837f53fbf7b091c88be8c2b"
license "GPL-2.0"
livecheck do
url :stable
strategy :github_latest
end
bottle do
sha256 arm64_big_sur: "fe56e046756c3f764cbe72137877c3bde3fd157175fc2347ae85874f9c2abe2b"
sha256 big_sur: "b04cdb0a02ef28b8626eb92c9da9ae784e7f7ba7f6ab8675cd40e5d976e46228"
sha256 catalina: "7530ca2e37ac45b53164ae54ab6669f1796ea0af88541a85a93a74c155fb0029"
sha256 mojave: "95f2cdff91ff98c3c9f65a0751d7948cefb3829d96e1977b5b8869163eba0790"
sha256 high_sierra: "9c5e0a9f81f43ec02eb951b82b4930639dafcdbacbeadf7bcc5e74f2e2ec7c45"
sha256 sierra: "6ba2c02db07a9ef7ddf561dbc2cde3904abe0b1b0ab9c9469020fdeced72e011"
end
depends_on "pkg-config" => :build
depends_on "freetype"
depends_on "sdl"
uses_from_macos "expat"
uses_from_macos "ncurses"
conflicts_with "advancemenu", because: "both install `advmenu` binaries"
def install
system "./configure", "--prefix=#{prefix}"
system "make", "install", "LDFLAGS=#{ENV.ldflags}", "mandir=#{man}", "docdir=#{doc}"
end
test do
system "#{bin}/advmame", "--version"
end
end