qtjsbackend: Fix SEPB build and work around wrong mkspec install path

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Martin Jansa 2013-04-23 00:58:55 +02:00
parent a86304a384
commit 9fddbb70bd
1 changed files with 10 additions and 8 deletions

View File

@ -11,7 +11,6 @@ INC_PR = "r0"
inherit qmake5
SRC_URI += " \
file://module_qmake.conf \
file://0002-Make-sure-that-we-pick-up-the-mkv8snapshot-tool.patch \
"
@ -19,15 +18,18 @@ SRC_URI += " \
# parts of the source tree with out the 'mkv8snapshot' tool if it is enabled and that will fail
PARALLEL_MAKE = ""
export QT_CONF_PATH="${WORKDIR}/qt.conf"
do_configure () {
# Avoid setting QMAKE_LINK from LD (since we want the linker to be g++)
unset LD
# This should not be needed. Perhaps the lack of this file is an indication
# of an error on the native recipe...
cp ${WORKDIR}/module_qmake.conf ${S}/.qmake.conf
${OE_QMAKE_QMAKE} -r -d
${OE_QMAKE_QMAKE} -r -d ${S}
}
do_install_append () {
mv ${D}${QMAKE_MKSPEC_PATH}/mkspecs ${D}${libdir}/${QT_DIR_NAME}/mkspecs
TMP=`dirname ${D}/${QMAKE_MKSPEC_PATH}/mkspecs`
while test ${TMP} != ${D}; do
rmdir ${TMP}
TMP=`dirname ${TMP}`;
done
}