aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/chocolate-doom.rb
blob: 5f343e4606b67c04be93b652ef2a80a402491e44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require 'formula'

class ChocolateDoom < Formula
  url 'http://downloads.sourceforge.net/project/chocolate-doom/chocolate-doom/1.6.0/chocolate-doom-1.6.0.tar.gz'
  homepage 'http://www.chocolate-doom.org/'
  md5 'b210e115dda6ea88bfb6c4fe11ade101'

  depends_on 'sdl'
  depends_on 'sdl_net'
  depends_on 'sdl_mixer'

  def install
    system "./configure", "--prefix=#{prefix}",
                          "--disable-debug",
                          "--disable-dependency-tracking",
                          "--disable-sdltest"
    system "make install"

    # 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

  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