summaryrefslogtreecommitdiff
path: root/recipes/build-tools/glib-tools.recipe
blob: c4693d06afa530b5d546d13a5369512886aceccc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -*- 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


    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'