summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2013-05-27 10:08:58 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2013-06-03 12:21:39 +0200
commit5b3c1fda143c3c82dea3e7e5176939d8a209b25f (patch)
tree3a3902104f1e03c975f59eb13c7555a6d5503e37
parente52e827080854bf633ec47d5543000b09f93b86d (diff)
downloadptxdist-5b3c1fda143c3c82dea3e7e5176939d8a209b25f.tar.gz
ptxdist-5b3c1fda143c3c82dea3e7e5176939d8a209b25f.tar.xz
host-intltool: use host-system-perl
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/host-intltool.in2
-rw-r--r--rules/host-intltool.make18
2 files changed, 12 insertions, 8 deletions
diff --git a/rules/host-intltool.in b/rules/host-intltool.in
index 1639c2732..a3bb3a04b 100644
--- a/rules/host-intltool.in
+++ b/rules/host-intltool.in
@@ -4,6 +4,8 @@ config HOST_INTLTOOL
tristate
default ALLYES
select HOST_GETTEXT
+ select HOST_SYSTEM_PERL
+ select HOST_SYSTEM_PERL_XMLPARSER
help
intltool is a set of tools to centralise translation of many different
file formats using GNU gettext-compatible PO files.
diff --git a/rules/host-intltool.make b/rules/host-intltool.make
index 143c3c3f9..71e6ec711 100644
--- a/rules/host-intltool.make
+++ b/rules/host-intltool.make
@@ -13,14 +13,6 @@
#
HOST_PACKAGES-$(PTXCONF_HOST_INTLTOOL) += host-intltool
-ifdef PTXCONF_HOST_INTLTOOL
-ifeq ($(shell perl -e "require XML::Parser" 2>/dev/null || echo no),no)
- $(warning *** XML::Parser perl module is required for host-intltool)
- $(warning *** please install libxml-parser-perl (debian))
- $(error )
-endif
-endif
-
#
# Paths and names
#
@@ -41,4 +33,14 @@ HOST_INTLTOOL_DIR := $(HOST_BUILDDIR)/$(HOST_INTLTOOL)
#
HOST_INTLTOOL_CONF_TOOL := autoconf
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-intltool.install.post:
+ @$(call targetinfo)
+ @$(call world/install.post, HOST_INTLTOOL)
+ @sed -i "s;^prefix=$$;prefix=$(PTXCONF_SYSROOT_HOST);" $(PTXCONF_SYSROOT_HOST)/bin/intltoolize
+ @$(call touch)
+
# vim: syntax=make