summaryrefslogtreecommitdiffstats
path: root/rules/host-autotools-autoconf.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-10-09 11:45:21 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-10-09 11:46:10 +0200
commitec67200c08a10f401022531397227347841a3a6f (patch)
tree853d632ee6a7b0e5dc258f9489ca5fb7840e8bae /rules/host-autotools-autoconf.make
parent66f250756f11dccfc86b3eb0064ceabeb75b88fa (diff)
downloadptxdist-ec67200c08a10f401022531397227347841a3a6f.tar.gz
ptxdist-ec67200c08a10f401022531397227347841a3a6f.tar.xz
host-autotools-autoconf: make it relocatable and enable devpkg
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/host-autotools-autoconf.make')
-rw-r--r--rules/host-autotools-autoconf.make15
1 files changed, 14 insertions, 1 deletions
diff --git a/rules/host-autotools-autoconf.make b/rules/host-autotools-autoconf.make
index b063fb529..9f9c4de94 100644
--- a/rules/host-autotools-autoconf.make
+++ b/rules/host-autotools-autoconf.make
@@ -23,7 +23,6 @@ HOST_AUTOTOOLS_AUTOCONF_SUFFIX := tar.xz
HOST_AUTOTOOLS_AUTOCONF_URL := $(call ptx/mirror, GNU, autoconf/$(HOST_AUTOTOOLS_AUTOCONF).$(HOST_AUTOTOOLS_AUTOCONF_SUFFIX))
HOST_AUTOTOOLS_AUTOCONF_SOURCE := $(SRCDIR)/$(HOST_AUTOTOOLS_AUTOCONF).$(HOST_AUTOTOOLS_AUTOCONF_SUFFIX)
HOST_AUTOTOOLS_AUTOCONF_DIR := $(HOST_BUILDDIR)/$(HOST_AUTOTOOLS_AUTOCONF)
-HOST_AUTOTOOLS_AUTOCONF_DEVPKG := NO
HOST_AUTOTOOLS_AUTOCONF_LICENSE := GPL-2.0-only AND GPL-3.0-only AND Autoconf-exception-3.0
HOST_AUTOTOOLS_AUTOCONF_LICENSE_FILES := \
file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
@@ -41,4 +40,18 @@ $(STATEDIR)/autogen-tools: $(STATEDIR)/host-autotools-autoconf.install.post
#
HOST_AUTOTOOLS_AUTOCONF_CONF_TOOL := autoconf
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-autotools-autoconf.install.post:
+ @$(call targetinfo)
+ @sed -i \
+ -e "s;'\(/share/autoconf\)';'$(PTXDIST_SYSROOT_HOST)\1';g" \
+ -e "s;'\(/bin/\(m4\)\?\(auto[^']*\)\)';'$(PTXDIST_SYSROOT_HOST)\1';g" \
+ $(HOST_AUTOTOOLS_AUTOCONF_PKGDIR)/bin/* \
+ $(HOST_AUTOTOOLS_AUTOCONF_PKGDIR)/share/autoconf/autom4te.cfg
+ @$(call world/install.post, HOST_AUTOTOOLS_AUTOCONF)
+ @$(call touch)
+
# vim: syntax=make