diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-02-25 14:31:01 +0100 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-02-25 16:01:05 +0100 |
commit | 9eb872a03674469e8c74d5843ec1f9e16188598d (patch) | |
tree | d52bb531925e4fae038e63e68218bb76f99a2661 /recipes/build-tools/glib-tools.recipe | |
parent | f10e83e26725eeff6daac0c108fabaad22d6d0db (diff) |
bootstrap: add glib-tools for cross-compilation targets
glib is needed for glib-genmarshal and glib-mkenums in platforms
where we can't install glib with a package manager and when the target
platform/arch is not executable in the build one.
Diffstat (limited to 'recipes/build-tools/glib-tools.recipe')
-rw-r--r-- | recipes/build-tools/glib-tools.recipe | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes/build-tools/glib-tools.recipe b/recipes/build-tools/glib-tools.recipe new file mode 100644 index 00000000..90cf7ae9 --- /dev/null +++ b/recipes/build-tools/glib-tools.recipe @@ -0,0 +1,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' |