50 lines
1.5 KiB
Ruby
50 lines
1.5 KiB
Ruby
class FsUae < Formula
|
|
desc "Amiga emulator"
|
|
homepage "https://fs-uae.net/"
|
|
url "https://fs-uae.net/stable/2.8.3/fs-uae-2.8.3.tar.gz"
|
|
sha256 "e2d5414d07c8bd5b740716471183bc5516bec0ae2989449c3026374dc4b86292"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "1bbdae6cb275764ebddbbb535095ec51677ce6566877961a60ed2e1b1d2f6471" => :sierra
|
|
sha256 "7437962981be6a10ba6952a07746f0c9e8e165e1e6e647b2cf5fd9042ee89669" => :el_capitan
|
|
sha256 "c0a2ef6dc723d726e70df915d5a0a8db200743290715acf80ea8fe0d3a344c65" => :yosemite
|
|
end
|
|
|
|
head do
|
|
url "https://github.com/FrodeSolheim/fs-uae.git"
|
|
depends_on "automake" => :build
|
|
depends_on "autoconf" => :build
|
|
depends_on "libtool" => :build
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "sdl2"
|
|
depends_on "libpng"
|
|
depends_on "libmpeg2"
|
|
depends_on "glib"
|
|
depends_on "gettext"
|
|
depends_on "freetype"
|
|
depends_on "glew"
|
|
depends_on "openal-soft" if MacOS.version <= :mavericks
|
|
|
|
def install
|
|
system "./bootstrap" if build.head?
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--prefix=#{prefix}"
|
|
mkdir "gen"
|
|
system "make"
|
|
system "make", "install"
|
|
|
|
# Remove unncessary files
|
|
(share/"applications").rmtree
|
|
(share/"icons").rmtree
|
|
(share/"mime").rmtree
|
|
end
|
|
|
|
test do
|
|
assert_equal version.to_s, shell_output("#{bin}/fs-uae --version").chomp
|
|
end
|
|
end
|