blob: ef3f339799b2902d9eeb587f61ecef4e256f3c1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
class Recipe(recipe.Recipe):
name = 'glib-tools'
version = '2.34.2'
licenses = [License.LGPLv2Plus]
configure_sh = 'sh autogen.sh'
deps = ['libffi', 'zlib']
can_use_configure_cache = False
def prepare(self):
self.remotes['origin'] = ('%s/%s.git' % (self.config.git_root, 'glib'))
self.repo_dir = os.path.join(self.config.local_sources, 'glib')
if self.config.target_platform != Platform.LINUX:
self.configure_options += ' --disable-gtk-doc'
elif self.config.target_platform == Platform.WINDOWS:
self.configure_options = '--with-libiconv=gnu'
elif self.config.target_platform in Platform.DARWIN:
self.config_sh = 'CFLAGS="$CFLAGS -DHAVE_STRNDUP" ./configure'
|