forked from sjackman/linuxbrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
advancemenu.rb
30 lines (25 loc) · 1.05 KB
/
advancemenu.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class Advancemenu < Formula
desc "Frontend for AdvanceMAME/MESS"
homepage "https://www.advancemame.it/menu-readme.html"
url "https://github.com/amadvance/advancemame/releases/download/advancemenu-2.9/advancemenu-2.9.tar.gz"
sha256 "c7599da6ff715eb3ad9f7a55973a9aaac2f26740a4e12daf744cf08963d652c1"
bottle do
cellar :any
rebuild 1
sha256 "cddc2110c8f7a94fff740ebb35d9d48fb5b47ccecbf92eedfc5ee28b28bfdd62" => :catalina
sha256 "f1f5a182df60bf84339ff741e73dc464b209d87ed50f1b74bc671736eef6e300" => :mojave
sha256 "a7e1ea0b085ec97b97bcb8f45ecd4221ad626a530a4d8b6dc1f56a3e85b9cf6a" => :high_sierra
sha256 "45c7beb15f723381f0e9fff7be1c27c57b03d3895d06a80b1be418ca2aea29a9" => :x86_64_linux
end
depends_on "sdl"
uses_from_macos "expat"
uses_from_macos "zlib"
conflicts_with "advancemame", :because => "both install `advmenu` binaries"
def install
system "./configure", "--prefix=#{prefix}"
system "make", "install", "LDFLAGS=#{ENV.ldflags}", "mandir=#{man}"
end
test do
system bin/"advmenu", "--version"
end
end