f43537799f
Both replaces currently fail. However it built fine without them and linked to the correct libraries, at least under superenv. If it breaks under stdenv someone will have to patch it, but nobody has complained so far.
27 lines
711 B
Ruby
27 lines
711 B
Ruby
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'
|
|
|
|
option 'no-gtk', "Build without Gtk+ support"
|
|
|
|
depends_on 'scons' => :build
|
|
depends_on 'sdl'
|
|
depends_on 'libzip'
|
|
depends_on 'gtk+' unless build.include? "no-gtk"
|
|
depends_on 'lua'
|
|
depends_on :x11
|
|
|
|
def install
|
|
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
|