2010-04-21 04:29:01 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Nazghul < Formula
|
2010-04-21 04:29:01 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/nazghul/nazghul/nazghul-0.7.0/nazghul-0.7.0.tar.gz'
|
|
|
|
homepage 'http://myweb.cableone.net/gmcnutt/nazghul.html'
|
|
|
|
md5 '3a3b08ee180163030bc9934d6fb40de8'
|
|
|
|
|
|
|
|
depends_on 'sdl'
|
|
|
|
depends_on 'sdl_image'
|
|
|
|
depends_on 'sdl_mixer'
|
|
|
|
|
|
|
|
def install
|
2011-03-14 20:21:55 +00:00
|
|
|
ENV.x11 # For libpng
|
2010-04-21 04:29:01 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-sdltest"
|
|
|
|
# Not sure why the ifdef is commented out in this file
|
|
|
|
inreplace "src/skill.c", "#include <malloc.h>", ""
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
def caveats; <<-EOS.undent
|
2011-03-14 20:21:55 +00:00
|
|
|
The built-in game for this engine is called Haxima. To run:
|
2011-04-04 23:56:47 +00:00
|
|
|
haxima.sh
|
2010-04-07 05:58:35 +00:00
|
|
|
EOS
|
2010-04-21 04:29:01 +00:00
|
|
|
end
|
|
|
|
end
|