qtjsbackend: Fix installation, now it's also prefixed with sysroot

* like in qtbase

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Martin Jansa 2013-04-28 02:54:48 +02:00
parent c2c53514ad
commit ca4c4eea5f
1 changed files with 6 additions and 2 deletions

View File

@ -28,8 +28,12 @@ do_configure () {
}
do_install_append () {
mv ${D}${QMAKE_MKSPEC_PATH}/mkspecs ${D}${libdir}/mkspecs
TMP=`dirname ${D}/${QMAKE_MKSPEC_PATH}/mkspecs`
# everything except HostData and HostBinaries is prefixed with sysroot value,
# but we cannot remove sysroot override, because that's useful for pkg-config etc
cp -ra ${D}${STAGING_DIR_TARGET}/* ${D}
rm -rf ${D}${STAGING_DIR_TARGET}
# remove empty dirs
TMP=`dirname ${D}/${STAGING_DIR_TARGET}`
while test ${TMP} != ${D}; do
rmdir ${TMP}
TMP=`dirname ${TMP}`;