summaryrefslogtreecommitdiffstats
path: root/rules/host-glib.make
diff options
context:
space:
mode:
authorLuotao Fu <l.fu@pengutronix.de>2007-02-02 14:03:38 +0000
committerLuotao Fu <l.fu@pengutronix.de>2007-02-02 14:03:38 +0000
commit610cb89147206c04b4149573e6e0b2d3a39d3b72 (patch)
tree27a3e5a93a978c959c7f10bfc03aaab09225a17d /rules/host-glib.make
parentb226439389fb7466fe19d882251e59ea92f42d8f (diff)
downloadptxdist-610cb89147206c04b4149573e6e0b2d3a39d3b72.tar.gz
ptxdist-610cb89147206c04b4149573e6e0b2d3a39d3b72.tar.xz
added glib hosttool to enable crosscompiling on machines without glib-genmarshal
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6983 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/host-glib.make')
-rw-r--r--rules/host-glib.make106
1 files changed, 106 insertions, 0 deletions
diff --git a/rules/host-glib.make b/rules/host-glib.make
new file mode 100644
index 000000000..e2198f1aa
--- /dev/null
+++ b/rules/host-glib.make
@@ -0,0 +1,106 @@
+# -*-makefile-*-
+# $Id$
+#
+# Copyright (C) 2007 by Luotao Fu <lfu@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_GLIB) += host-glib
+
+#
+# Paths and names
+#
+HOST_GLIB_VERSION := 2.8.6
+HOST_GLIB := glib-$(HOST_GLIB_VERSION)
+HOST_GLIB_SUFFIX := tar.bz2
+HOST_GLIB_URL := ftp://ftp.gtk.org/pub/gtk/v2.8//$(HOST_GLIB).$(HOST_GLIB_SUFFIX)
+HOST_GLIB_SOURCE := $(SRCDIR)/$(HOST_GLIB).$(HOST_GLIB_SUFFIX)
+HOST_GLIB_DIR := $(HOST_BUILDDIR)/$(HOST_GLIB)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+host-glib_get: $(STATEDIR)/host-glib.get
+
+$(STATEDIR)/host-glib.get: $(host-glib_get_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+$(HOST_GLIB_SOURCE):
+ @$(call targetinfo, $@)
+ @$(call get, HOST_GLIB)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+host-glib_extract: $(STATEDIR)/host-glib.extract
+
+$(STATEDIR)/host-glib.extract: $(host-glib_extract_deps_default)
+ @$(call targetinfo, $@)
+ @$(call clean, $(HOST_GLIB_DIR))
+ @$(call extract, HOST_GLIB, $(HOST_BUILDDIR))
+ @$(call patchin, HOST_GLIB, $(HOST_GLIB_DIR))
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+host-glib_prepare: $(STATEDIR)/host-glib.prepare
+
+HOST_GLIB_PATH := PATH=$(HOST_PATH)
+HOST_GLIB_ENV := $(HOST_ENV)
+
+#
+# autoconf
+#
+HOST_GLIB_AUTOCONF := $(HOST_AUTOCONF)
+
+$(STATEDIR)/host-glib.prepare: $(host-glib_prepare_deps_default)
+ @$(call targetinfo, $@)
+ @$(call clean, $(HOST_GLIB_DIR)/config.cache)
+ cd $(HOST_GLIB_DIR) && \
+ $(HOST_GLIB_PATH) $(HOST_GLIB_ENV) \
+ ./configure $(HOST_GLIB_AUTOCONF)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+host-glib_compile: $(STATEDIR)/host-glib.compile
+
+$(STATEDIR)/host-glib.compile: $(host-glib_compile_deps_default)
+ @$(call targetinfo, $@)
+ cd $(HOST_GLIB_DIR) && $(HOST_GLIB_PATH) $(MAKE) $(PARALLELMFLAGS)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+host-glib_install: $(STATEDIR)/host-glib.install
+
+$(STATEDIR)/host-glib.install: $(host-glib_install_deps_default)
+ @$(call targetinfo, $@)
+ @$(call install, HOST_GLIB,,h)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+host-glib_clean:
+ rm -rf $(STATEDIR)/host-glib.*
+ rm -rf $(HOST_GLIB_DIR)
+
+# vim: syntax=make