2011-01-19 15:43:40 +00:00
|
|
|
require libtool-${PV}.inc
|
2008-05-05 23:13:51 +00:00
|
|
|
|
2011-11-29 19:30:40 +00:00
|
|
|
PR = "${INC_PR}.0"
|
2013-05-08 08:09:48 +00:00
|
|
|
|
|
|
|
FILESEXTRAPATHS =. "${FILE_DIRNAME}/libtool:"
|
|
|
|
|
2010-12-21 18:46:15 +00:00
|
|
|
SRC_URI += "file://prefix.patch"
|
2011-11-16 16:58:34 +00:00
|
|
|
SRC_URI += "file://fixinstall.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
|
|
|
|
2013-05-08 08:09:48 +00:00
|
|
|
S = "${WORKDIR}/libtool-${PV}"
|
|
|
|
FILES_${PN} += "${datadir}/libtool/*"
|
|
|
|
|
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 () {
|
2011-01-18 08:17:58 +00:00
|
|
|
install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/
|
|
|
|
install -m 755 ${D}${bindir}/${HOST_SYS}-libtool ${SYSROOT_DESTDIR}${bindir_crossscripts}/${HOST_SYS}-libtool
|
2008-05-05 23:13:51 +00:00
|
|
|
}
|