homebrew-core/Formula/fceux.rb

44 lines
1 KiB
Ruby
Raw Normal View History

require 'formula'
class Fceux < Formula
homepage 'http://fceux.com'
url 'http://downloads.sourceforge.net/fceultra/fceux-2.1.5.src.tar.bz2'
sha1 '599ef6a261ab1bd24e58468886d7cc303e150feb'
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"
# fixes compilation errors on osx; upstream in 2.1.6
def patches; DATA; end
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
__END__
t a/src/drivers/sdl/SConscript b/src/drivers/sdl/SConscript
index 9c7247c..7a9f297 100644
--- a/src/drivers/sdl/SConscript
+++ b/src/drivers/sdl/SConscript
@@ -1,3 +1,6 @@
+Import('env')
+env.ParseConfig('pkg-config --cflags --libs x11')
+Export('env')
my_list = Split("""
input.cpp
config.cpp
# config.cpp