libconnman-qt: update to 1.0.50+git80ac184

Allows to install versions for Qt4/X11 and Qt4/Embedded into
the same filesystem by overriding the target name.

This version also removes a superflous .pc file from ${libdir}.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Andreas Oberritter 2014-03-13 15:18:33 +01:00 committed by Martin Jansa
parent d92c9c652c
commit 7cd63c175d
3 changed files with 47 additions and 4 deletions

View File

@ -3,8 +3,8 @@ HOMEPAGE = "https://github.com/nemomobile/libconnman-qt"
SECTION = "qt/lib"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://libconnman-qt/clockmodel.h;endline=8;md5=ea9f724050803f15d2d900ce3c5dac88"
SRCREV = "ddbeaf72b4d3c49285b0513b28948edacfc40b51"
PV = "1.0.46+git${SRCPV}"
SRCREV = "80ac184d859ea90c026403f5a520644945a5081a"
PV = "1.0.50+git${SRCPV}"
SRC_URI = "git://github.com/nemomobile/libconnman-qt.git;branch=master"
@ -12,7 +12,7 @@ S = "${WORKDIR}/git"
inherit pkgconfig
EXTRA_QMAKEVARS_PRE += "CONFIG+=notests"
EXTRA_QMAKEVARS_PRE += "CONFIG+=notests TARGET_SUFFIX=${QT_DIR_NAME}"
do_configure_prepend() {
# Hack *.pro variables
@ -37,7 +37,6 @@ FILES_${PN}-dev = " \
${libdir}/libconnman-qt*${SOLIBSDEV} \
${libdir}/libconnman-qt*.prl \
${libdir}/pkgconfig/connman-qt*.pc \
${libdir}/connman-qt*.pc \
"
FILES_${PN}-plugin = " \
${PLUGINS_TARGET}/qmldir \

View File

@ -0,0 +1,42 @@
Upstream-Status: Submitted [https://github.com/nemomobile/libconnman-qt/pull/105]
From 48da520b971af69d22e691a0ef6ff1c3ce901f0d Mon Sep 17 00:00:00 2001
From: Andreas Oberritter <obi@opendreambox.org>
Date: Tue, 11 Mar 2014 21:55:37 +0100
Subject: [PATCH] plugin.pro: fix build with custom target suffix
This went unnoticed because of a previously installed libconnman-qt4.
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
---
plugin/plugin.pro | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/plugin/plugin.pro b/plugin/plugin.pro
index c9534cf..9cdaa63 100644
--- a/plugin/plugin.pro
+++ b/plugin/plugin.pro
@@ -8,14 +8,18 @@ INCLUDEPATH += ../libconnman-qt
LIBS += -L../libconnman-qt
QT -= gui
+isEmpty(TARGET_SUFFIX) {
+ TARGET_SUFFIX = qt$$QT_MAJOR_VERSION
+}
+
+LIBS += -l$$qtLibraryTarget(connman-$$TARGET_SUFFIX)
+
equals(QT_MAJOR_VERSION, 4): {
QT += declarative
- LIBS += -lconnman-qt4
}
equals(QT_MAJOR_VERSION, 5): {
QT += qml
- LIBS += -lconnman-qt5
OTHER_FILES += plugin.json qmldirs
}
--
1.8.3.2

View File

@ -1,3 +1,5 @@
inherit qt4e
require libconnman-qt.inc
SRC_URI += "file://plugin.pro-fix-build-with-custom-target-suffix.patch"