2011-10-18 00:08:46 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Fceux < Formula
|
|
|
|
homepage 'http://fceux.com'
|
2013-10-21 01:18:08 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/fceultra/Source%20Code/2.2.2%20src/fceux-2.2.2.src.tar.gz'
|
|
|
|
sha1 'ec50d8eae04794ba10f441a26cdb410c1cf6832b'
|
2011-10-18 00:08:46 +00:00
|
|
|
|
2012-08-28 05:03:58 +00:00
|
|
|
option 'no-gtk', "Build without Gtk+ support"
|
|
|
|
|
2013-10-21 01:18:08 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2011-10-18 00:08:46 +00:00
|
|
|
depends_on 'scons' => :build
|
|
|
|
depends_on 'sdl'
|
|
|
|
depends_on 'libzip'
|
2012-08-28 05:03:58 +00:00
|
|
|
depends_on 'gtk+' unless build.include? "no-gtk"
|
2013-02-03 19:06:28 +00:00
|
|
|
depends_on 'lua'
|
2012-09-03 11:31:35 +00:00
|
|
|
depends_on :x11
|
2011-10-18 00:08:46 +00:00
|
|
|
|
|
|
|
def install
|
2013-10-21 01:18:09 +00:00
|
|
|
args = []
|
|
|
|
args << "GTK=0" if build.include? "no-gtk"
|
|
|
|
system "scons", *args
|
2011-10-18 00:08:46 +00:00
|
|
|
bin.install 'src/fceux'
|
|
|
|
end
|
|
|
|
end
|