2009-10-21 03:51:21 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2009-10-23 18:09:03 +00:00
|
|
|
# TODO we shouldn't be installing .apps if there is an option
|
|
|
|
|
2009-10-21 03:51:21 +00:00
|
|
|
class Exult <Formula
|
|
|
|
# Use a specific revision that is known to compile (on Snow Leopard too.)
|
|
|
|
head 'http://exult.svn.sourceforge.net/svnroot/exult/exult/trunk', :revision => '6128'
|
|
|
|
homepage 'http://exult.sourceforge.net/'
|
|
|
|
|
|
|
|
depends_on 'sdl'
|
|
|
|
depends_on 'sdl_mixer'
|
|
|
|
|
|
|
|
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"
|
2009-10-23 18:09:03 +00:00
|
|
|
prefix.install "Exult.app"
|
2009-10-21 03:51:21 +00:00
|
|
|
end
|
|
|
|
|
2009-10-23 18:09:03 +00:00
|
|
|
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:\n\n"\
|
|
|
|
"http://www.amazon.com/gp/product/B0002SKOEC?ie=UTF8&tag=adamvandesper-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B0002SKOEC"
|
2009-10-21 03:51:21 +00:00
|
|
|
end
|
|
|
|
end
|