blob: 9d50c0802b94132753e4cb33f6bbd31e9c0cde25 (
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
|
class GtkPackage (GnomePackage):
def __init__ (self):
GnomePackage.__init__ (self, 'gtk+',
version_major = '2.20',
version_minor = '1',
configure_flags = [
'--with-gdktarget=%{gdk_target}',
'--disable-cups',
'--without-libjasper',
'--without-libtiff'
]
)
if Package.profile.name == 'darwin':
self.gdk_target = 'quartz'
self.sources.extend ([
'http://github.com/jralls/gtk-osx-build/raw/master/patches/gdk-quartz-input-window.patch',
'http://git.dronelabs.com/gtk+/patch/?id=729cbea7a2b27c4b8f2062316c0f406ab4c01dac'
])
elif Package.profile.name == 'linux':
self.gdk_target = 'x11'
def prep (self):
Package.prep (self)
if Package.profile.name == 'darwin':
for p in range (2, len (self.sources)):
self.sh ('patch -p1 < "%{sources[' + str (p) + ']}"')
GtkPackage ()
|