blob: 11532e06a96700ffc39469920407f2976e21c645 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
require 'formula'
class Fceux < Formula
homepage 'http://fceux.com'
url 'http://downloads.sourceforge.net/fceultra/fceux-2.1.5.src.tar.bz2'
md5 'e8b20e62bbbb061b1a59d51b47c827bd'
depends_on 'scons' => :build
depends_on 'sdl'
depends_on 'libzip'
depends_on 'gtk+' unless ARGV.include? "--no-gtk"
def options
[['--no-gtk', "Build without Gtk+ support."]]
end
# fixes compilation errors on osx; upstream in 2.1.6
def patches; DATA; end
def install
if ARGV.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
|