homebrew-core/Formula/dosbox.rb
Adam Vandenberg fb5977f181 Add "require hardware" to formula.rb
Now individual formulae don't need to require this if they want to use
Hardware methods outside of `def install`.
2012-02-25 15:22:32 -08:00

26 lines
682 B
Ruby

require 'formula'
class Dosbox < Formula
url 'http://downloads.sourceforge.net/project/dosbox/dosbox/0.74/dosbox-0.74.tar.gz'
homepage 'http://www.dosbox.com/'
md5 'b9b240fa87104421962d14eee71351e8'
depends_on 'sdl'
depends_on 'sdl_net'
depends_on 'sdl_sound'
def install
ENV.libpng
ENV.fast
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}",
"--disable-sdltest",
"--enable-core-inline"
system "make"
bin.install 'src/dosbox'
man1.install gzip('docs/dosbox.1')
end
end