blob: 4f48d61359cf1b0d76991f71454590969d7bd6fa (
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
|
class GtkPackage (GnomePackage):
def __init__ (self):
GnomePackage.__init__ (self, 'gtk+',
version_major = '2.18',
version_minor = '5',
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'
])
elif Package.profile.name == 'linux':
self.gdk_target = 'x11'
def prep (self):
Package.prep (self)
if Package.profile.name == 'darwin':
self.sh ('patch -p1 < "%{sources[1]}"')
GtkPackage ()
|