summaryrefslogtreecommitdiffstats
path: root/rules/glibc-ports.make
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2006-09-12 15:01:10 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2006-09-12 15:01:10 +0000
commit5189a62f0ee29dbfba3e8cd191a9f9d3ad6c1df2 (patch)
treea48fdc550bbea16be0415aebcb3af0a084a78828 /rules/glibc-ports.make
parent5394a9ba1a87d4ded51e99e18378ce4a3a325392 (diff)
downloadOSELAS.Toolchain-5189a62f0ee29dbfba3e8cd191a9f9d3ad6c1df2.tar.gz
OSELAS.Toolchain-5189a62f0ee29dbfba3e8cd191a9f9d3ad6c1df2.tar.xz
reunion step 4
git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/trunks/OSELAS.Toolchain-trunk@871 f8d472c7-5700-0410-ac5a-87979cec3adf
Diffstat (limited to 'rules/glibc-ports.make')
-rw-r--r--rules/glibc-ports.make107
1 files changed, 107 insertions, 0 deletions
diff --git a/rules/glibc-ports.make b/rules/glibc-ports.make
new file mode 100644
index 0000000..ff0beb7
--- /dev/null
+++ b/rules/glibc-ports.make
@@ -0,0 +1,107 @@
+# -*-makefile-*-
+# $Id$
+#
+# Copyright (C) 2006 by Robert Schwebel
+#
+# 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
+#
+PACKAGES-$(PTXCONF_GLIBC_PORTS) += glibc-ports
+
+#
+# Paths and names
+#
+GLIBC_PORTS_VERSION := $(call remove_quotes,$(PTXCONF_GLIBC_PORTS_VERSION))
+GLIBC_PORTS := glibc-ports-$(GLIBC_PORTS_VERSION)
+GLIBC_PORTS_SUFFIX := tar.bz2
+GLIBC_PORTS_URL := $(PTXCONF_SETUP_GNUMIRROR)/glibc/$(GLIBC_PORTS).$(GLIBC_PORTS_SUFFIX)
+GLIBC_PORTS_SOURCE := $(SRCDIR)/$(GLIBC_PORTS).$(GLIBC_PORTS_SUFFIX)
+GLIBC_PORTS_DIR := $(BUILDDIR)/$(GLIBC_PORTS)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+glibc-ports_get: $(STATEDIR)/glibc-ports.get
+
+$(STATEDIR)/glibc-ports.get: $(glibc-ports_get_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+$(GLIBC_PORTS_SOURCE):
+ @$(call targetinfo, $@)
+ @$(call get, GLIBC_PORTS)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+ifdef PTXCONF_GLIBC_PORTS
+$(STATEDIR)/glibc.extract: $(STATEDIR)/glibc-ports.extract
+endif
+
+glibc-ports_extract: $(STATEDIR)/glibc-ports.extract
+
+$(STATEDIR)/glibc-ports.extract: $(glibc-ports_extract_deps_default)
+ @$(call targetinfo, $@)
+ @$(call clean, $(GLIBC_PORTS_DIR))
+ @$(call extract, GLIBC_PORTS, $(BUILDDIR))
+ @$(call patchin, GLIBC_PORTS, $(GLIBC_PORTS_DIR))
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+glibc-ports_prepare: $(STATEDIR)/glibc-ports.prepare
+
+$(STATEDIR)/glibc-ports.prepare: $(glibc-ports_prepare_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+glibc-ports_compile: $(STATEDIR)/glibc-ports.compile
+
+$(STATEDIR)/glibc-ports.compile: $(glibc-ports_compile_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+glibc-ports_install: $(STATEDIR)/glibc-ports.install
+
+$(STATEDIR)/glibc-ports.install: $(glibc-ports_install_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+glibc-ports_targetinstall: $(STATEDIR)/glibc-ports.targetinstall
+
+$(STATEDIR)/glibc-ports.targetinstall: $(glibc-ports_targetinstall_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+glibc-ports_clean:
+ rm -rf $(STATEDIR)/glibc-ports.*
+ rm -rf $(IMAGEDIR)/glibc_ports_*
+ rm -rf $(GLIBC_PORTS_DIR)
+
+# vim: syntax=make