2017-02-06 10:26:51 +00:00
|
|
|
class Dgen < Formula
|
|
|
|
desc "Sega Genesis / Mega Drive emulator"
|
2017-02-13 23:55:20 +00:00
|
|
|
homepage "https://dgen.sourceforge.io/"
|
2017-02-06 10:26:51 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/dgen/dgen/1.33/dgen-sdl-1.33.tar.gz"
|
|
|
|
sha256 "99e2c06017c22873c77f88186ebcc09867244eb6e042c763bb094b02b8def61e"
|
|
|
|
bottle do
|
|
|
|
cellar :any
|
2017-02-08 08:28:09 +00:00
|
|
|
sha256 "50383807ec76387aa156cf6157ea537465bf20ad35e4e9eddda7d34685ded635" => :sierra
|
|
|
|
sha256 "ebcab68ba8d0aa9c6aacae94d43a67ce016dcdd219c5770c3b7d6d9c3590ef9f" => :el_capitan
|
|
|
|
sha256 "53f1fc72dbaab000eae45e143ca46a054a6ff655f91190d6aa30e71e8e505494" => :yosemite
|
2017-02-06 10:26:51 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
head do
|
2017-03-09 18:43:56 +00:00
|
|
|
url "https://git.code.sf.net/p/dgen/dgen.git"
|
2017-02-06 10:26:51 +00:00
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
end
|
|
|
|
|
|
|
|
option "with-docs", "Build documentation"
|
|
|
|
option "with-debugger", "Enable debugger"
|
|
|
|
|
|
|
|
depends_on "sdl"
|
|
|
|
depends_on "libarchive"
|
|
|
|
depends_on "doxygen" if build.with? "docs"
|
|
|
|
|
|
|
|
def install
|
|
|
|
args = %W[
|
|
|
|
--disable-silent-rules
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--disable-sdltest
|
|
|
|
--prefix=#{prefix}
|
|
|
|
]
|
2017-05-28 16:57:03 +00:00
|
|
|
args << "--enable-debugger" if build.with? "debugger"
|
2017-02-06 10:26:51 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
|
|
|
system "./configure", *args
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
If some keyboard inputs do not work, try modifying configuration:
|
|
|
|
~/.dgen/dgenrc
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_equal "DGen/SDL version #{version}", shell_output("#{bin}/dgen -v").chomp
|
|
|
|
end
|
|
|
|
end
|