2010-08-14 08:51:03 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Openttd < Formula
|
2010-12-09 00:54:15 +00:00
|
|
|
url 'http://us.binaries.openttd.org/binaries/releases/1.0.5/openttd-1.0.5-source.tar.bz2'
|
2010-08-14 08:51:03 +00:00
|
|
|
homepage 'http://www.openttd.org/'
|
2010-12-09 00:54:15 +00:00
|
|
|
md5 'fc79f788e2be140948b972c32b0f1eec'
|
2010-08-14 08:51:03 +00:00
|
|
|
|
|
|
|
depends_on 'lzo'
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--without-application-bundle", "--prefix-dir=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
bin.install "bin/openttd"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Note: This does not install any art assets. You will be prompted
|
|
|
|
on first run to download an asset set.
|
|
|
|
Having an original TTD CD will help.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|