summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/libtool/libtool-cross_2.4.6.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/libtool/libtool-cross_2.4.6.bb')
-rw-r--r--meta/recipes-devtools/libtool/libtool-cross_2.4.6.bb41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-devtools/libtool/libtool-cross_2.4.6.bb b/meta/recipes-devtools/libtool/libtool-cross_2.4.6.bb
new file mode 100644
index 0000000000..847880270d
--- /dev/null
+++ b/meta/recipes-devtools/libtool/libtool-cross_2.4.6.bb
@@ -0,0 +1,41 @@
1require libtool-${PV}.inc
2
3PACKAGES = ""
4SRC_URI += "file://prefix.patch"
5SRC_URI += "file://fixinstall.patch"
6
7datadir = "${STAGING_DIR_TARGET}${target_datadir}"
8
9do_configure_prepend () {
10 # Remove any existing libtool m4 since old stale versions would break
11 # any upgrade
12 rm -f ${STAGING_DATADIR}/aclocal/libtool.m4
13 rm -f ${STAGING_DATADIR}/aclocal/lt*.m4
14}
15
16do_install () {
17 install -d ${D}${bindir_crossscripts}/
18 install -m 0755 ${HOST_SYS}-libtool ${D}${bindir_crossscripts}/${HOST_SYS}-libtool
19 install -d ${D}${bindir_crossscripts}/
20 GREP='/bin/grep' SED='sed' ${S}/build-aux/inline-source libtoolize > ${D}${bindir_crossscripts}/libtoolize
21 chmod 0755 ${D}${bindir_crossscripts}/libtoolize
22 install -d ${D}${target_datadir}/libtool/build-aux/
23 install -d ${D}${target_datadir}/aclocal/
24 install -c ${S}/build-aux/compile ${D}${target_datadir}/libtool/build-aux/
25 install -c ${S}/build-aux/config.guess ${D}${target_datadir}/libtool/build-aux/
26 install -c ${S}/build-aux/config.sub ${D}${target_datadir}/libtool/build-aux/
27 install -c ${S}/build-aux/depcomp ${D}${target_datadir}/libtool/build-aux/
28 install -c ${S}/build-aux/install-sh ${D}${target_datadir}/libtool/build-aux/
29 install -c ${S}/build-aux/missing ${D}${target_datadir}/libtool/build-aux/
30 install -c -m 0644 ${S}/build-aux/ltmain.sh ${D}${target_datadir}/libtool/build-aux/
31 install -c -m 0644 ${S}/m4/*.m4 ${D}${target_datadir}/aclocal/
32}
33
34SYSROOT_PREPROCESS_FUNCS += "libtoolcross_sysroot_preprocess"
35
36libtoolcross_sysroot_preprocess () {
37 sysroot_stage_dir ${D}${bindir_crossscripts} ${SYSROOT_DESTDIR}${bindir_crossscripts}
38 sysroot_stage_dir ${D}${target_datadir} ${SYSROOT_DESTDIR}${target_datadir}
39}
40
41SSTATE_SCAN_FILES += "libtoolize *-libtool"