2017-02-06 10:26:48 +00:00
|
|
|
class Advancemame < Formula
|
|
|
|
desc "MAME with advanced video support"
|
|
|
|
homepage "http://www.advancemame.it/"
|
2017-06-04 14:26:54 +00:00
|
|
|
url "https://github.com/amadvance/advancemame/releases/download/v3.5/advancemame-3.5.tar.gz"
|
|
|
|
sha256 "779b3b43e3fbdf4bb24e97c418499cd4550446494e19f5d576827242b0821814"
|
2017-02-06 10:26:48 +00:00
|
|
|
|
|
|
|
bottle do
|
2017-06-04 14:40:54 +00:00
|
|
|
sha256 "2a64703b056e341dd6ee4773038f5d4fa289ae120e64b852d103c41cffec3fee" => :sierra
|
|
|
|
sha256 "1f67883e185c7d2afe1bfef2ab7eac425c15c4540d648cabb40b2cde8aba0e7f" => :el_capitan
|
|
|
|
sha256 "1865a05529d60f846bb97b29c936aaf49f975d788d3687a7b7e87fcd0681bf3d" => :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
|