2010-03-10 07:09:19 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Dosbox < Formula
|
2010-05-16 11:23:14 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/dosbox/dosbox/0.74/dosbox-0.74.tar.gz'
|
2010-03-10 07:09:19 +00:00
|
|
|
homepage 'http://www.dosbox.com/'
|
2010-05-16 11:23:14 +00:00
|
|
|
md5 'b9b240fa87104421962d14eee71351e8'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-03-10 07:09:19 +00:00
|
|
|
depends_on 'sdl'
|
|
|
|
depends_on 'sdl_net'
|
|
|
|
depends_on 'sdl_sound'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-03-10 07:09:19 +00:00
|
|
|
def install
|
|
|
|
ENV.libpng
|
|
|
|
ENV.fast
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-03-10 07:09:19 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}",
|
|
|
|
"--disable-sdltest",
|
2010-05-16 11:23:14 +00:00
|
|
|
"--enable-core-inline"
|
2010-03-10 07:09:19 +00:00
|
|
|
system "make"
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-03-10 07:09:19 +00:00
|
|
|
bin.install 'src/dosbox'
|
|
|
|
man1.install gzip('docs/dosbox.1')
|
|
|
|
end
|
|
|
|
end
|