blob: 90cf7ae91775fea9c901d1ff5ecf2afb50ee4e88 (
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
|
# -*- 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'
configure_options = ' --enable-static'
deps = ['libffi', 'zlib']
can_use_configure_cache = False
make = 'make -C glib && make -C gthread && make -C gobject'
make_install = 'make -C glib install && make -C gthread install && make -C gobject install'
platform_deps = {Platform.WINDOWS: ['libiconv', 'gettext'],
Platform.DARWIN: ['libiconv', 'gettext'],
Platform.IOS: ['libiconv', 'gettext'],
Platform.ANDROID: ['libiconv', 'gettext']}
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'
|