summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-10-09 11:45:30 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-10-09 11:46:10 +0200
commitcad16bea8b3b241c1fa16509dc4f321c6caa1a70 (patch)
treece84c779ba93454bcc796b0db98fadad22e0b9d1
parentec67200c08a10f401022531397227347841a3a6f (diff)
downloadptxdist-cad16bea8b3b241c1fa16509dc4f321c6caa1a70.tar.gz
ptxdist-cad16bea8b3b241c1fa16509dc4f321c6caa1a70.tar.xz
host-autotools-automake: make it relocatable and enable devpkg
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/host-autotools-automake.make19
1 files changed, 18 insertions, 1 deletions
diff --git a/rules/host-autotools-automake.make b/rules/host-autotools-automake.make
index cbe62bbb6..5eda66466 100644
--- a/rules/host-autotools-automake.make
+++ b/rules/host-autotools-automake.make
@@ -23,7 +23,6 @@ HOST_AUTOTOOLS_AUTOMAKE_SUFFIX := tar.xz
HOST_AUTOTOOLS_AUTOMAKE_URL := $(call ptx/mirror, GNU, automake/$(HOST_AUTOTOOLS_AUTOMAKE).$(HOST_AUTOTOOLS_AUTOMAKE_SUFFIX))
HOST_AUTOTOOLS_AUTOMAKE_SOURCE := $(SRCDIR)/$(HOST_AUTOTOOLS_AUTOMAKE).$(HOST_AUTOTOOLS_AUTOMAKE_SUFFIX)
HOST_AUTOTOOLS_AUTOMAKE_DIR := $(HOST_BUILDDIR)/$(HOST_AUTOTOOLS_AUTOMAKE)
-HOST_AUTOTOOLS_AUTOMAKE_DEVPKG := NO
HOST_AUTOTOOLS_AUTOMAKE_LICENSE := GPL-2.0-only
$(STATEDIR)/autogen-tools: $(STATEDIR)/host-autotools-automake.install.post
@@ -37,4 +36,22 @@ $(STATEDIR)/autogen-tools: $(STATEDIR)/host-autotools-automake.install.post
#
HOST_AUTOTOOLS_AUTOMAKE_CONF_TOOL := autoconf
+# create man pages during install to avoid parallel building race
+HOST_AUTOTOOLS_AUTOMAKE_MAKE_OPT := MANS=
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-autotools-automake.install.post:
+ @$(call targetinfo)
+ @sed -i \
+ -e "s;'\(/share/automake-[^']*\)';'$(PTXDIST_SYSROOT_HOST)\1';g" \
+ -e "s;'\(/share/aclocal[^']*\)';'$(PTXDIST_SYSROOT_HOST)\1';g" \
+ -e "s;'\(/bin/m4\)';'$(PTXDIST_SYSROOT_HOST)\1';g" \
+ $(HOST_AUTOTOOLS_AUTOMAKE_PKGDIR)/bin/* \
+ $(HOST_AUTOTOOLS_AUTOMAKE_PKGDIR)/share/automake-*/Automake/Config.pm
+ @$(call world/install.post, HOST_AUTOTOOLS_AUTOMAKE)
+ @$(call touch)
+
# vim: syntax=make