2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-30 17:56:04 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class ChocolateDoom < Formula
|
2011-08-30 20:55:46 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/chocolate-doom/chocolate-doom/1.6.0/chocolate-doom-1.6.0.tar.gz'
|
2009-09-30 17:56:04 +00:00
|
|
|
homepage 'http://www.chocolate-doom.org/'
|
2011-08-30 20:55:46 +00:00
|
|
|
md5 'b210e115dda6ea88bfb6c4fe11ade101'
|
2009-09-30 17:56:04 +00:00
|
|
|
|
|
|
|
depends_on 'sdl'
|
|
|
|
depends_on 'sdl_net'
|
2010-01-01 07:50:14 +00:00
|
|
|
depends_on 'sdl_mixer'
|
2009-09-30 17:56:04 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--disable-sdltest"
|
|
|
|
system "make install"
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2009-09-30 17:56:04 +00:00
|
|
|
# This project installs to 'games', but we want it in 'bin' so it symlinks in.
|
|
|
|
# Can't find a ./configure switch, so just rename it.
|
|
|
|
(prefix+"games").rename bin
|
|
|
|
end
|
2010-04-07 05:58:35 +00:00
|
|
|
|
|
|
|
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
|
2009-09-30 17:56:04 +00:00
|
|
|
end
|
|
|
|
end
|