2017-02-06 10:26:52 +00:00
|
|
|
class Fizmo < Formula
|
|
|
|
desc "Z-Machine interpreter"
|
|
|
|
homepage "https://fizmo.spellbreaker.org"
|
2017-09-06 13:30:01 +00:00
|
|
|
url "https://fizmo.spellbreaker.org/source/fizmo-0.8.4.tar.gz"
|
|
|
|
sha256 "de7396ea3dabe30cd6a596da0d0d1b6432f4ea82cf31b7d8c9020cb11a42a9e9"
|
2017-02-06 10:26:52 +00:00
|
|
|
|
|
|
|
bottle do
|
2017-09-06 13:34:35 +00:00
|
|
|
sha256 "1d7086e1db185650e7fa5a7bd77719e21e7acf71d99d05e3e91d1ab0e8485d6a" => :sierra
|
|
|
|
sha256 "496cb25c39256ad1cf54453cea1f66fcbbd3f1f4f1f8a569adb8d1e2e1849a53" => :el_capitan
|
|
|
|
sha256 "0280ceb9ab03a7ffbe150b5fa398f0c649fde1c4af2183938cb6d6420005c3de" => :yosemite
|
2017-02-06 10:26:52 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on :x11
|
|
|
|
depends_on "jpeg"
|
|
|
|
depends_on "libpng"
|
|
|
|
depends_on "libsndfile"
|
|
|
|
depends_on "sdl2"
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/fizmo-console", "--help"
|
|
|
|
# Unable to test headless ncursew client
|
|
|
|
# https://github.com/Homebrew/homebrew-games/pull/366
|
|
|
|
# system "#{bin}/fizmo-ncursesw", "--help"
|
|
|
|
system "#{bin}/fizmo-sdl2", "--help"
|
|
|
|
end
|
|
|
|
end
|