2017-02-06 10:26:48 +00:00
|
|
|
class Advancemame < Formula
|
|
|
|
desc "MAME with advanced video support"
|
|
|
|
homepage "http://www.advancemame.it/"
|
2017-03-11 10:59:11 +00:00
|
|
|
url "https://github.com/amadvance/advancemame/releases/download/v3.4/advancemame-3.4.tar.gz"
|
|
|
|
sha256 "54fe7444534d47f99243dc78c4b2de8e878575f59978d149bf69f3d1c0332edb"
|
2017-02-06 10:26:48 +00:00
|
|
|
|
|
|
|
bottle do
|
2017-03-11 11:24:45 +00:00
|
|
|
sha256 "8b7b3f32468dfe574ed50d3de41f80b7e0082e872e598bced0ce0886800dfcd5" => :sierra
|
|
|
|
sha256 "0f4ca16ef965fdd5f87b2cc3865041e0cea0b18662b98012d076a752e66ebd0d" => :el_capitan
|
|
|
|
sha256 "7a00857e5e1381e5e2f1792e24c838d6588c9b0c70fa96c04cf7379ab169b13b" => :yosemite
|
2017-02-06 10:26:48 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
depends_on "sdl"
|
|
|
|
depends_on "freetype"
|
|
|
|
|
2017-02-27 22:44:33 +00:00
|
|
|
conflicts_with "advancemenu", :because => "both install `advmenu` binaries"
|
|
|
|
|
2017-02-06 10:26:48 +00:00
|
|
|
def install
|
|
|
|
ENV.delete "SDKROOT" if MacOS.version == :yosemite
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make", "install", "LDFLAGS=#{ENV.ldflags}", "mandir=#{man}", "docdir=#{doc}"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/advmame", "--version"
|
|
|
|
end
|
|
|
|
end
|