Commit d1fd42d8 authored by Florent Revest's avatar Florent Revest

libqofono: remove qt4 legacy code

parent 1af71cb6
......@@ -7,77 +7,16 @@ SECTION = "qt/lib"
BRANCH = "master"
PV = "0.4+gitr${SRCPV}"
SRCREV = "05055a4b4a579facd007a0a128696030228e0b88"
SRCREV = "d9a860322f9a5dfc9a052ad4c3d26517f6a17ad6"
inherit qmake5 pkgconfig
DEPENDS += "qtbase qtxmlpatterns qtdeclarative"
RDEPENDS_${PN} = "ofono"
RDEPENDS_${PN}-plugin = "${PN}"
PACKAGES =+ "${PN}-plugin ${PN}-plugin-dbg ${PN}-test"
RRECOMMENDS_${PN} = "${PN}-plugin"
SRC_URI = " \
git://github.com/nemomobile/${BPN}.git;branch=${BRANCH} \
"
SRC_URI = "git://github.com/nemomobile/${BPN}.git"
S = "${WORKDIR}/git"
QT_IMPORTS_DIR = "${libdir}/qt4/imports"
PLUGINS_TARGET = "${QT_IMPORTS_DIR}/MeeGo/QOfono"
FILES_${PN} = " \
${libdir}/libqofono${SOLIBS} \
"
FILES_${PN}-dev = " \
${includedir}/qofono/* \
${includedir}/qofono/dbus/* \
${libdir}/libqofono${SOLIBSDEV} \
${libdir}/libqofono.prl \
${libdir}/pkgconfig/qofono.pc \
${datadir}/qt4/mkspecs/features/qofono.prf \
"
FILES_${PN}-plugin = " \
${PLUGINS_TARGET}/qmldir \
${PLUGINS_TARGET}/lib*.so \
"
FILES_${PN}-plugin-dbg = " \
${PLUGINS_TARGET}/.debug \
"
FILES_${PN}-test = " \
/opt/ofonotest/bin/ofonotest \
/opt/ofonotest/qml/ofonotest \
${libdir}/libqofono/tests/tst_qofonotest \
"
FILES_${PN}-dbg += " \
/opt/ofonotest/bin/.debug \
${libdir}/libqofono/tests/.debug \
"
EXTRA_QMAKEVARS_PRE = " \
PREFIX=${prefix} \
"
do_configure_prepend() {
# Hack *.pro variables
find . -iname '*.pro' -exec sed -i -e 's,$$\[QT_INSTALL_IMPORTS\],${QT_IMPORTS_DIR},g' '{}' ';'
find . -iname '*.pro' -exec sed -i -e 's,$$\[QT_INSTALL_PREFIX\],$$INSTALL_ROOT$$PREFIX,g' '{}' ';'
}
do_install() {
export INSTALL_ROOT=${D}
oe_runmake install
cd ${D}/${datadir}/qt4/mkspecs/features
sed -i -e '/DEPENDPATH.*/d; /INCLUDEPATH.*/d; /LIBS.*/d' ${D}/${datadir}/qt4/mkspecs/features/qofono.prf
# to make it work with the SDK
echo 'DEPENDPATH += $(OE_QMAKE_INCDIR_QT)/../qofono' >> ${D}/${datadir}/qt4/mkspecs/features/qofono.prf
echo 'INCLUDEPATH += $(OE_QMAKE_INCDIR_QT)/../qofono' >> ${D}/${datadir}/qt4/mkspecs/features/qofono.prf
echo 'LIBS += -lqofono' >> ${D}/${datadir}/qt4/mkspecs/features/qofono.prf
}
FILES_${PN}-dev += "/usr/share/qt5"
FILES_${PN}-dbg += "/opt /usr/lib/libqofono-qt5/tests /usr/lib/qt5/qml/MeeGo/QOfono/.debug/"
FILES_${PN} += "/usr/lib/qt5 "
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment