summaryrefslogtreecommitdiffstats
path: root/rules/host-gettext.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2007-10-02 22:46:19 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2007-10-02 22:46:19 +0000
commitc373e583c4d8604fd26dc832f2d03283d1101bcf (patch)
tree7e28f5ee6d8b66ae0107dadd9b486e73db666cf0 /rules/host-gettext.make
parentc9fa535da1d10abd988bcdbb03f93d8dccd2db15 (diff)
downloadptxdist-c373e583c4d8604fd26dc832f2d03283d1101bcf.tar.gz
ptxdist-c373e583c4d8604fd26dc832f2d03283d1101bcf.tar.xz
* gettext: version update; ported from TechPool
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7334 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/host-gettext.make')
-rw-r--r--rules/host-gettext.make101
1 files changed, 101 insertions, 0 deletions
diff --git a/rules/host-gettext.make b/rules/host-gettext.make
new file mode 100644
index 000000000..e5b9fee06
--- /dev/null
+++ b/rules/host-gettext.make
@@ -0,0 +1,101 @@
+# -*-makefile-*-
+# $Id$
+#
+# Copyright (C) 2007 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
+#
+HOST_PACKAGES-$(PTXCONF_HOST_GETTEXT) += host-gettext
+
+#
+# Paths and names
+#
+HOST_GETTEXT_DIR = $(HOST_BUILDDIR)/$(GETTEXT)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+host-gettext_get: $(STATEDIR)/host-gettext.get
+
+$(STATEDIR)/host-gettext.get: $(STATEDIR)/gettext.get
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+host-gettext_extract: $(STATEDIR)/host-gettext.extract
+
+$(STATEDIR)/host-gettext.extract: $(host-gettext_extract_deps_default)
+ @$(call targetinfo, $@)
+ @$(call clean, $(HOST_GETTEXT_DIR))
+ @$(call extract, GETTEXT, $(HOST_BUILDDIR))
+ @$(call patchin, GETTEXT, $(HOST_GETTEXT_DIR))
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+host-gettext_prepare: $(STATEDIR)/host-gettext.prepare
+
+HOST_GETTEXT_PATH := PATH=$(HOST_PATH)
+HOST_GETTEXT_ENV := $(HOST_ENV)
+
+#
+# autoconf
+#
+HOST_GETTEXT_AUTOCONF := \
+ $(HOST_AUTOCONF) \
+ --disable-java \
+ --disable-native-java \
+ --disable-csharp
+
+$(STATEDIR)/host-gettext.prepare: $(host-gettext_prepare_deps_default)
+ @$(call targetinfo, $@)
+ @$(call clean, $(HOST_GETTEXT_DIR)/config.cache)
+ cd $(HOST_GETTEXT_DIR) && \
+ $(HOST_GETTEXT_PATH) $(HOST_GETTEXT_ENV) \
+ ./configure $(HOST_GETTEXT_AUTOCONF)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+host-gettext_compile: $(STATEDIR)/host-gettext.compile
+
+$(STATEDIR)/host-gettext.compile: $(host-gettext_compile_deps_default)
+ @$(call targetinfo, $@)
+ cd $(HOST_GETTEXT_DIR) && $(HOST_GETTEXT_PATH) $(MAKE) $(PARALLELMFLAGS)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+host-gettext_install: $(STATEDIR)/host-gettext.install
+
+$(STATEDIR)/host-gettext.install: $(host-gettext_install_deps_default)
+ @$(call targetinfo, $@)
+ @$(call install, HOST_GETTEXT,,h)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+host-gettext_clean:
+ rm -rf $(STATEDIR)/host-gettext.*
+ rm -rf $(HOST_GETTEXT_DIR)
+
+# vim: syntax=make