25 lines
891 B
Ruby
25 lines
891 B
Ruby
class Advancemame < Formula
|
|
desc "MAME with advanced video support"
|
|
homepage "http://www.advancemame.it/"
|
|
url "https://github.com/amadvance/advancemame/releases/download/v3.2/advancemame-3.2.tar.gz"
|
|
sha256 "7fd10d765cc1ce38bb463bf4c7d5947619bc08838a8671a9f3da0bc6d76eb822"
|
|
|
|
bottle do
|
|
sha256 "06a81121a865472d2c8272d3b2aab3c3a9696a8147f0482065fe0cce71935a9f" => :sierra
|
|
sha256 "d960b6791b36de466156a487696b497365d1c48142e9787d70490349fc848923" => :el_capitan
|
|
sha256 "047441f3ea40e24029b36452bb7eff8867a86ac5ffe4899b04d6fc006d7c27c2" => :yosemite
|
|
end
|
|
|
|
depends_on "sdl"
|
|
depends_on "freetype"
|
|
|
|
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
|