2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-22 23:32:32 +00:00
|
|
|
|
|
|
|
class Angband <Formula
|
2010-04-07 05:58:35 +00:00
|
|
|
url 'http://rephial.org/downloads/3.0/angband-3.0.9b-src.tar.gz'
|
|
|
|
md5 '51a24fe3119e7eff8a8395d601b2747e'
|
|
|
|
homepage 'http://rephial.org/'
|
2009-09-22 23:32:32 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--enable-curses",
|
|
|
|
"--disable-x11",
|
2010-04-07 05:58:35 +00:00
|
|
|
"--disable-sdl",
|
|
|
|
"--disable-sdl-mixer",
|
2009-09-30 16:47:18 +00:00
|
|
|
"--with-libpath=#{libexec}"
|
2009-09-22 23:32:32 +00:00
|
|
|
system "make"
|
2009-09-29 22:59:49 +00:00
|
|
|
# Install manually; 'make install' doesn't work.
|
2009-09-22 23:32:32 +00:00
|
|
|
bin.install "src/angband"
|
2009-09-30 16:47:18 +00:00
|
|
|
libexec.install Dir['lib/*']
|
2009-09-22 23:32:32 +00:00
|
|
|
end
|
|
|
|
end
|