2017-02-06 10:26:59 +00:00
|
|
|
class Quasi88 < Formula
|
|
|
|
desc "PC-8801 emulator"
|
2017-02-23 15:44:02 +00:00
|
|
|
homepage "https://www.eonet.ne.jp/~showtime/quasi88/"
|
|
|
|
url "https://www.eonet.ne.jp/~showtime/quasi88/release/quasi88-0.6.4.tgz"
|
2017-02-06 10:26:59 +00:00
|
|
|
sha256 "2c4329f9f77e02a1e1f23c941be07fbe6e4a32353b5d012531f53b06996881ff"
|
|
|
|
|
|
|
|
bottle do
|
|
|
|
cellar :any
|
2017-02-08 08:28:16 +00:00
|
|
|
sha256 "d9ff4c5657c4179371d60317e0455cbadd59d45d81d0cc71d62d14d681619e95" => :sierra
|
|
|
|
sha256 "4bef6f92d4fcdf3547e0e7b9d699f392de0ff4764bbed0d8b23ea37e22e33f78" => :el_capitan
|
|
|
|
sha256 "f9b4ef36396de67507df8148ad22ecca3940505c40468656df03ac685930b2d9" => :yosemite
|
2017-02-06 10:26:59 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
depends_on "sdl"
|
|
|
|
|
|
|
|
def install
|
|
|
|
args = %W[
|
|
|
|
X11_VERSION=
|
|
|
|
SDL_VERSION=1
|
|
|
|
ARCH=macosx
|
|
|
|
SOUND_SDL=1
|
|
|
|
LD=#{ENV.cxx}
|
|
|
|
CXX=#{ENV.cxx}
|
|
|
|
CXXLIBS=
|
|
|
|
]
|
|
|
|
system "make", *args
|
|
|
|
bin.install "quasi88.sdl" => "quasi88"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
You will need to place ROM and disk files.
|
|
|
|
Default arguments for the directories are:
|
|
|
|
-romdir ~/quasi88/rom/
|
|
|
|
-diskdir ~/quasi88/disk/
|
|
|
|
-tapedir ~/quasi88/tape/
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/quasi88", "-help"
|
|
|
|
end
|
|
|
|
end
|