aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/exult.rb
blob: ea312e33941a9776f272c72d1fb7bf868736ff90 (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 Exult <Formula
  head 'http://exult.svn.sourceforge.net/svnroot/exult/exult/trunk',
          :revision => '6317'
  homepage 'http://exult.sourceforge.net/'

  depends_on 'sdl'
  depends_on 'sdl_mixer'
  depends_on 'libvorbis'

  def install
    # Yes, really. Goddamnit.
    inreplace "autogen.sh", "libtoolize", "glibtoolize"

    system "./autogen.sh"
    system "./configure", "--prefix=#{prefix}",
                          "--disable-debug",
                          "--disable-dependency-tracking",
                          "--disable-sdltest"

    system "make"
    system "make bundle"
    prefix.install "Exult.app"
  end

  def caveats;
    "Cocoa app installed to #{prefix}\n\n"\
    "Note that this includes only the game engine; you will need to supply your own\n"\
    "own legal copy of the Ultima 7 game files. Try here (Amazon.com):\n\n"\
    "http://bit.ly/8JzovU"
  end
end