2008-05-05 23:13:51 +00:00
|
|
|
require libtool_${PV}.bb
|
|
|
|
|
2010-07-13 12:16:47 +00:00
|
|
|
PR = "r1"
|
2010-07-09 11:11:46 +00:00
|
|
|
SRC_URI_append = " file://cross_compile.patch \
|
|
|
|
file://prefix.patch "
|
2008-05-05 23:13:51 +00:00
|
|
|
|
2009-09-16 23:05:34 +00:00
|
|
|
inherit nativesdk
|
2008-05-05 23:13:51 +00:00
|
|
|
|
2010-06-21 10:46:34 +00:00
|
|
|
do_configure_prepend () {
|
|
|
|
# Remove any existing libtool m4 since old stale versions would break
|
|
|
|
# any upgrade
|
|
|
|
rm -f ${STAGING_DATADIR}/aclocal/libtool.m4
|
|
|
|
rm -f ${STAGING_DATADIR}/aclocal/lt*.m4
|
|
|
|
}
|
|
|
|
|
2008-05-05 23:13:51 +00:00
|
|
|
do_install () {
|
2009-11-17 00:15:07 +00:00
|
|
|
autotools_do_install
|
2008-05-05 23:13:51 +00:00
|
|
|
install -d ${D}${bindir}/
|
2010-07-09 11:11:46 +00:00
|
|
|
install -m 0755 ${HOST_SYS}-libtool ${D}${bindir}/
|
2008-05-05 23:13:51 +00:00
|
|
|
}
|
|
|
|
|
2009-11-17 00:15:07 +00:00
|
|
|
SYSROOT_PREPROCESS_FUNCS += "libtoolnativesdk_sysroot_preprocess"
|
2008-05-06 09:41:45 +00:00
|
|
|
|
2009-11-17 00:15:07 +00:00
|
|
|
libtoolnativesdk_sysroot_preprocess () {
|
|
|
|
install -d ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/
|
2010-07-09 11:11:46 +00:00
|
|
|
install -m 755 ${D}${bindir}/${HOST_SYS}-libtool ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool
|
2008-05-05 23:13:51 +00:00
|
|
|
}
|