Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | require libtool-${PV}.inc |
| 2 | |
| 3 | PACKAGES = "" |
| 4 | SRC_URI += "file://prefix.patch" |
| 5 | SRC_URI += "file://fixinstall.patch" |
| 6 | |
| 7 | datadir = "${STAGING_DIR_TARGET}${target_datadir}" |
| 8 | |
| 9 | do_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 | |
| 16 | do_install () { |
| 17 | install -d ${D}${bindir_crossscripts}/ |
| 18 | install -m 0755 ${HOST_SYS}-libtool ${D}${bindir_crossscripts}/${HOST_SYS}-libtool |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 19 | sed -e 's@^\(predep_objects="\).*@\1"@' \ |
| 20 | -e 's@^\(postdep_objects="\).*@\1"@' \ |
| 21 | -i ${D}${bindir_crossscripts}/${HOST_SYS}-libtool |
| 22 | sed -i '/^archive_cmds=/s/\-nostdlib//g' ${D}${bindir_crossscripts}/${HOST_SYS}-libtool |
| 23 | sed -i '/^archive_expsym_cmds=/s/\-nostdlib//g' ${D}${bindir_crossscripts}/${HOST_SYS}-libtool |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 24 | GREP='/bin/grep' SED='sed' ${S}/build-aux/inline-source libtoolize > ${D}${bindir_crossscripts}/libtoolize |
| 25 | chmod 0755 ${D}${bindir_crossscripts}/libtoolize |
| 26 | install -d ${D}${target_datadir}/libtool/build-aux/ |
| 27 | install -d ${D}${target_datadir}/aclocal/ |
| 28 | install -c ${S}/build-aux/compile ${D}${target_datadir}/libtool/build-aux/ |
| 29 | install -c ${S}/build-aux/config.guess ${D}${target_datadir}/libtool/build-aux/ |
| 30 | install -c ${S}/build-aux/config.sub ${D}${target_datadir}/libtool/build-aux/ |
| 31 | install -c ${S}/build-aux/depcomp ${D}${target_datadir}/libtool/build-aux/ |
| 32 | install -c ${S}/build-aux/install-sh ${D}${target_datadir}/libtool/build-aux/ |
| 33 | install -c ${S}/build-aux/missing ${D}${target_datadir}/libtool/build-aux/ |
| 34 | install -c -m 0644 ${S}/build-aux/ltmain.sh ${D}${target_datadir}/libtool/build-aux/ |
| 35 | install -c -m 0644 ${S}/m4/*.m4 ${D}${target_datadir}/aclocal/ |
| 36 | } |
| 37 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 38 | SYSROOT_DIRS += "${bindir_crossscripts} ${target_datadir}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 39 | |
| 40 | SSTATE_SCAN_FILES += "libtoolize *-libtool" |