41 lines
1.3 KiB
Ruby
41 lines
1.3 KiB
Ruby
|
class ChocolateDoom < Formula
|
||
|
desc "Accurate source port of Doom"
|
||
|
homepage "http://www.chocolate-doom.org/"
|
||
|
url "https://www.chocolate-doom.org/downloads/2.3.0/chocolate-doom-2.3.0.tar.gz"
|
||
|
sha256 "3e6d1a82ac5c8b025a9695ce1e47d0dc6ed142ebb1129b1e4a70e2740f79150c"
|
||
|
|
||
|
head do
|
||
|
url "https://github.com/chocolate-doom/chocolate-doom.git"
|
||
|
|
||
|
depends_on "automake" => :build
|
||
|
depends_on "autoconf" => :build
|
||
|
end
|
||
|
|
||
|
depends_on "sdl"
|
||
|
depends_on "sdl_net"
|
||
|
depends_on "sdl_mixer"
|
||
|
depends_on "libsamplerate" => :recommended
|
||
|
depends_on "libpng" => :recommended
|
||
|
|
||
|
def install
|
||
|
system "./autogen.sh" if build.head?
|
||
|
system "./configure", "--prefix=#{prefix}",
|
||
|
"--disable-dependency-tracking",
|
||
|
"--disable-silent-rules",
|
||
|
"--disable-sdltest"
|
||
|
system "make", "install", "execgamesdir=#{bin}"
|
||
|
(share/"applications").rmtree
|
||
|
(share/"icons").rmtree
|
||
|
end
|
||
|
|
||
|
def caveats; <<-EOS.undent
|
||
|
Note that this formula only installs a Doom game engine, and no
|
||
|
actual levels. The original Doom levels are still under copyright,
|
||
|
so you can copy them over and play them if you already own them.
|
||
|
Otherwise, there are tons of free levels available online.
|
||
|
Try starting here:
|
||
|
#{homepage}
|
||
|
EOS
|
||
|
end
|
||
|
end
|