2011-10-18 00:08:46 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Fceux < Formula
|
|
|
|
homepage 'http://fceux.com'
|
|
|
|
url 'http://downloads.sourceforge.net/fceultra/fceux-2.1.5.src.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '599ef6a261ab1bd24e58468886d7cc303e150feb'
|
2011-10-18 00:08:46 +00:00
|
|
|
|
2012-08-28 05:03:58 +00:00
|
|
|
option 'no-gtk', "Build without Gtk+ support"
|
|
|
|
|
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"
|
2012-09-03 11:31:35 +00:00
|
|
|
depends_on :x11
|
2011-10-18 00:08:46 +00:00
|
|
|
|
|
|
|
# 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"
|
2011-10-18 00:08:46 +00:00
|
|
|
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
|