homebrew-core/Formula/fceux.rb

25 lines
614 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.2%20src/fceux-2.2.2.src.tar.gz'
sha1 'ec50d8eae04794ba10f441a26cdb410c1cf6832b'
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
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
args = []
args << "GTK=0" if build.include? "no-gtk"
system "scons", *args
bin.install 'src/fceux'
end
end