2009-10-21 03:51:21 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Exult < Formula
|
2011-10-02 20:42:38 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/exult/exult-all-versions/1.4.9rc1/exult-1.4.9rc1.tar.gz'
|
2011-10-02 03:29:43 +00:00
|
|
|
md5 'c17a48cc0377aa67264aaaf441cb1bb2'
|
2009-10-21 03:51:21 +00:00
|
|
|
homepage 'http://exult.sourceforge.net/'
|
2011-10-02 03:29:43 +00:00
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
head 'http://exult.svn.sourceforge.net/svnroot/exult/exult/trunk'
|
2010-06-07 03:22:38 +00:00
|
|
|
|
2009-10-21 03:51:21 +00:00
|
|
|
depends_on 'sdl'
|
|
|
|
depends_on 'sdl_mixer'
|
2010-06-07 03:22:38 +00:00
|
|
|
depends_on 'libvorbis'
|
|
|
|
|
2012-02-28 15:39:22 +00:00
|
|
|
if MacOS.xcode_version >= "4.3"
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
end
|
|
|
|
|
2009-10-21 03:51:21 +00:00
|
|
|
def install
|
|
|
|
inreplace "autogen.sh", "libtoolize", "glibtoolize"
|
2010-06-07 03:22:38 +00:00
|
|
|
|
2009-10-21 03:51:21 +00:00
|
|
|
system "./autogen.sh"
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2009-10-21 03:51:21 +00:00
|
|
|
"--disable-sdltest"
|
2010-06-07 03:22:38 +00:00
|
|
|
|
2009-10-21 03:51:21 +00:00
|
|
|
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
|
2010-06-07 03:22:38 +00:00
|
|
|
|
2011-10-02 03:29:43 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Cocoa app installed to:
|
|
|
|
#{prefix}
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2011-10-02 03:29:43 +00:00
|
|
|
Note that this includes only the game engine; you will need to supply your own
|
|
|
|
own legal copy of the Ultima 7 game files. Try here (Amazon.com):
|
|
|
|
http://bit.ly/8JzovU
|
2010-04-07 05:58:35 +00:00
|
|
|
EOS
|
2009-10-21 03:51:21 +00:00
|
|
|
end
|
|
|
|
end
|