homebrew-core/Formula/fceux.rb

28 lines
711 B
Ruby
Raw Normal View History

require 'formula'
class Fceux < Formula
homepage 'http://fceux.com'
url 'http://downloads.sourceforge.net/project/fceultra/Source%20Code/2.2.1%20src/fceux-2.2.1.1.src.tar.gz'
sha1 'a9e7babf7a883bfa17ee7cc4a1989382dfbced65'
2012-08-28 05:03:58 +00:00
option 'no-gtk', "Build without Gtk+ support"
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'
depends_on :x11
def install
2012-08-28 05:03:58 +00:00
if build.include? "no-gtk"
inreplace "SConstruct",
"BoolVariable('GTK', 'Enable GTK2 GUI (SDL only)', 1),",
"BoolVariable('GTK', 'Enable GTK2 GUI (SDL only)', 0),"
end
system "scons"
bin.install 'src/fceux'
end
end