summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/glib.in1
-rw-r--r--rules/host-glib.in2
-rw-r--r--rules/host-glib.make106
-rw-r--r--rules/hosttools.in2
4 files changed, 110 insertions, 1 deletions
diff --git a/rules/glib.in b/rules/glib.in
index 289e4903b..77066c608 100644
--- a/rules/glib.in
+++ b/rules/glib.in
@@ -1,6 +1,7 @@
config GLIB
bool
prompt "glib"
+ select HOST_GLIB
help
GLib is a library containing many useful C
routines for things such as trees, hashes,
diff --git a/rules/host-glib.in b/rules/host-glib.in
new file mode 100644
index 000000000..b1bca3be7
--- /dev/null
+++ b/rules/host-glib.in
@@ -0,0 +1,2 @@
+config HOST_GLIB
+ bool
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
diff --git a/rules/hosttools.in b/rules/hosttools.in
index d5b9d33ae..3bafda20c 100644
--- a/rules/hosttools.in
+++ b/rules/hosttools.in
@@ -68,4 +68,4 @@ source "rules/host-xorg-proto-x.in"
source "rules/host-xorg-proto-xext.in"
source "rules/host-xorg-proto-xcmisc.in"
source "rules/host-xorg-proto-fonts.in"
-
+source "rules/host-glib.in"