diff options
| author | Mikko Gronoff <mikko.gronoff@qt.io> | 2017-08-15 13:22:36 +0300 |
|---|---|---|
| committer | Mikko Gronoff <mikko.gronoff@qt.io> | 2017-08-16 08:54:37 +0300 |
| commit | 7beedb16cd1ab7afd7ace29a2eea3f5f7d7140a3 (patch) | |
| tree | 3d949c250bf8a45046a4fb7e4421260776d961ba | |
| parent | 826c0b1092ede76f17de3b232ba7cc17a5be5830 (diff) | |
| parent | 41e4144d4d8c50b52ed6224a28f2ca4042c1e5b2 (diff) | |
| download | meta-qt5-7beedb16cd1ab7afd7ace29a2eea3f5f7d7140a3.tar.gz | |
Merge remote-tracking branch 'qtyocto/5.9' into 5.10
* qtyocto/5.9:
qt5: update submodules
qtbase: update to 5.9.1 RC3
qt5: update submodules
qt5: update submodules
Merge remote-tracking branch 'qtyocto/upstream/master' into 5.9
qt5: update submodules
qtwebengine: fix build with latest oe-core
qtremoteobjects: build repc tool for native and nativesdk
qtlocation: make mapbox-gl plugin a PACKAGECONFIG option
qtwebview: add recipe for Qt WebView
qtbase: update to 5.9.0 RC2
Change-Id: Icc5a568edf1f21032a4746eb003bcb111d01bc0f
| -rw-r--r-- | recipes-python/pyqt5/files/fix-sm.patch | 17 | ||||
| -rw-r--r-- | recipes-python/pyqt5/python-pyqt5_5.8.2.bb | 69 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtlocation/0001-Make-mapbox-gl-build-configurable.patch | 27 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtlocation_git.bb | 4 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtquickcontrols_git.bb | 2 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtremoteobjects/0001-Allow-a-tools-only-build.patch | 37 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtremoteobjects_git.bb | 15 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtwebengine/0001-Force-host-toolchain-configuration.patch | 4 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtwebview/0001-Add-missing-include-for-qWarning.patch | 22 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtwebview_git.bb | 16 | ||||
| -rw-r--r-- | recipes-qt/qwt/qwt-qt5.inc | 47 | ||||
| -rw-r--r-- | recipes-qt/qwt/qwt-qt5_6.1.3.bb | 8 |
12 files changed, 263 insertions, 5 deletions
diff --git a/recipes-python/pyqt5/files/fix-sm.patch b/recipes-python/pyqt5/files/fix-sm.patch new file mode 100644 index 00000000..f2936a23 --- /dev/null +++ b/recipes-python/pyqt5/files/fix-sm.patch | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | --- PyQt5_gpl-5.8.2/sip/QtGui/qguiapplication.sip.orig 2017-05-13 13:28:42.523392315 -0400 | ||
| 2 | +++ PyQt5_gpl-5.8.2/sip/QtGui/qguiapplication.sip 2017-05-13 13:30:08.081207211 -0400 | ||
| 3 | @@ -270,12 +270,14 @@ | ||
| 4 | %End | ||
| 5 | |||
| 6 | public: | ||
| 7 | +%If (PyQt_SessionManager) | ||
| 8 | %If (Qt_5_6_0 -) | ||
| 9 | static bool isFallbackSessionManagementEnabled(); | ||
| 10 | %End | ||
| 11 | %If (Qt_5_6_0 -) | ||
| 12 | static void setFallbackSessionManagementEnabled(bool); | ||
| 13 | %End | ||
| 14 | +%End | ||
| 15 | |||
| 16 | signals: | ||
| 17 | %If (Qt_5_6_0 -) | ||
diff --git a/recipes-python/pyqt5/python-pyqt5_5.8.2.bb b/recipes-python/pyqt5/python-pyqt5_5.8.2.bb new file mode 100644 index 00000000..3fa3d644 --- /dev/null +++ b/recipes-python/pyqt5/python-pyqt5_5.8.2.bb | |||
| @@ -0,0 +1,69 @@ | |||
| 1 | SUMMARY = "Python Qt5 Bindings" | ||
| 2 | AUTHOR = "Phil Thomson @ riverbank.co.uk" | ||
| 3 | HOMEPAGE = "http://riverbankcomputing.co.uk" | ||
| 4 | SECTION = "devel/python" | ||
| 5 | LICENSE = "GPLv3" | ||
| 6 | LIC_FILES_CHKSUM = "\ | ||
| 7 | file://LICENSE;md5=d32239bcb673463ab874e80d47fae504 \ | ||
| 8 | " | ||
| 9 | DEPENDS = "sip sip-native qtbase python" | ||
| 10 | |||
| 11 | SRC_URI = "\ | ||
| 12 | ${SOURCEFORGE_MIRROR}/pyqt/PyQt5_gpl-${PV}.tar.gz \ | ||
| 13 | file://fix-sm.patch \ | ||
| 14 | " | ||
| 15 | SRC_URI[md5sum] = "c3048e9d242f3e72fd393630da1d971a" | ||
| 16 | SRC_URI[sha256sum] = "ebd70515b30bbd6098fee29e6271a6696b1183c5530ee30e6ba9aaab195536e8" | ||
| 17 | |||
| 18 | S = "${WORKDIR}/PyQt5_gpl-${PV}" | ||
| 19 | |||
| 20 | |||
| 21 | inherit qmake5 pythonnative python-dir distro_features_check | ||
| 22 | # depends on qt4-x11-free | ||
| 23 | REQUIRED_DISTRO_FEATURES = "x11" | ||
| 24 | |||
| 25 | export BUILD_SYS | ||
| 26 | export HOST_SYS | ||
| 27 | export STAGING_INCDIR | ||
| 28 | export STAGING_LIBDIR | ||
| 29 | |||
| 30 | DISABLED_FEATURES = "PyQt_Desktop_OpenGL PyQt_Accessibility PyQt_SessionManager" | ||
| 31 | |||
| 32 | DISABLED_FEATURES_append_arm = " PyQt_qreal_double" | ||
| 33 | |||
| 34 | PYQT_MODULES = "QtCore QtGui QtNetwork" | ||
| 35 | PYQT_MODULES_aarch64 = "QtCore QtGui QtNetwork" | ||
| 36 | |||
| 37 | do_configure_prepend() { | ||
| 38 | cd ${S} | ||
| 39 | echo "py_platform = linux" > pyqt.cfg | ||
| 40 | echo "py_inc_dir = %(sysroot)/$includedir/python%(py_major).%(py_minor)" >> pyqt.cfg | ||
| 41 | echo "py_pylib_dir = %(sysroot)/${libdir}/python%(py_major).%(py_minor)" >> pyqt.cfg | ||
| 42 | echo "py_pylib_lib = python%(py_major).%(py_minor)mu" >> pyqt.cfg | ||
| 43 | echo "pyqt_module_dir = ${D}/${libdir}/python%(py_major).%(py_minor)/site-packages" >> pyqt.cfg | ||
| 44 | echo "pyqt_bin_dir = ${D}/${bindir}" >> pyqt.cfg | ||
| 45 | echo "pyqt_sip_dir = ${D}/${datadir}/sip/PyQt5" >> pyqt.cfg | ||
| 46 | echo "pyuic_interpreter = ${D}/${bindir}/python%(py_major).%(py_minor)" >> pyqt.cfg | ||
| 47 | echo "pyqt_disabled_features = ${DISABLED_FEATURES}" >> pyqt.cfg | ||
| 48 | echo "qt_shared = True" >> pyqt.cfg | ||
| 49 | QT_VERSION=`${OE_QMAKE_QMAKE} -query QT_VERSION` | ||
| 50 | echo "[Qt $QT_VERSION]" >> pyqt.cfg | ||
| 51 | echo "pyqt_modules = ${PYQT_MODULES}" >> pyqt.cfg | ||
| 52 | echo yes | python configure.py --verbose --qmake ${STAGING_BINDIR_NATIVE}/qt5/qmake --configuration pyqt.cfg --sysroot ${STAGING_DIR_HOST} | ||
| 53 | } | ||
| 54 | |||
| 55 | do_compile() { | ||
| 56 | cd ${S} | ||
| 57 | oe_runmake | ||
| 58 | } | ||
| 59 | |||
| 60 | do_install() { | ||
| 61 | cd ${S} | ||
| 62 | oe_runmake install | ||
| 63 | } | ||
| 64 | |||
| 65 | RDEPENDS_${PN} = "python-core python-sip" | ||
| 66 | |||
| 67 | FILES_${PN} += "${libdir}/${PYTHON_DIR}/site-packages ${datadir}/sip/PyQt5/" | ||
| 68 | FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/*/.debug/" | ||
| 69 | |||
diff --git a/recipes-qt/qt5/qtlocation/0001-Make-mapbox-gl-build-configurable.patch b/recipes-qt/qt5/qtlocation/0001-Make-mapbox-gl-build-configurable.patch new file mode 100644 index 00000000..5e452c03 --- /dev/null +++ b/recipes-qt/qt5/qtlocation/0001-Make-mapbox-gl-build-configurable.patch | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | From 632cfa131a890d42275873a7ca8cdf95ada61360 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Samuli Piippo <samuli.piippo@qt.io> | ||
| 3 | Date: Wed, 7 Jun 2017 13:29:29 +0300 | ||
| 4 | Subject: [PATCH] Make mapbox-gl build configurable | ||
| 5 | |||
| 6 | mapbox-gl-native won't compile for ARMv5 or older, so disable the | ||
| 7 | build by default. | ||
| 8 | |||
| 9 | Task-number: QTBUG-61289 | ||
| 10 | Change-Id: I5f26200f2735b363c3c322f9035b331b9159c47b | ||
| 11 | --- | ||
| 12 | src/plugins/geoservices/geoservices.pro | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/src/plugins/geoservices/geoservices.pro b/src/plugins/geoservices/geoservices.pro | ||
| 16 | index 459897a..d97e05d 100644 | ||
| 17 | --- a/src/plugins/geoservices/geoservices.pro | ||
| 18 | +++ b/src/plugins/geoservices/geoservices.pro | ||
| 19 | @@ -6,7 +6,7 @@ qtConfig(concurrent) { | ||
| 20 | SUBDIRS += osm | ||
| 21 | } | ||
| 22 | |||
| 23 | -qtConfig(opengl):qtConfig(c++14):!win32|mingw:!qnx { | ||
| 24 | +mapboxgl:qtConfig(opengl):qtConfig(c++14):!win32|mingw:!qnx { | ||
| 25 | !exists(../../3rdparty/mapbox-gl-native/CMakeLists.txt) { | ||
| 26 | warning("Submodule mapbox-gl-native does not exist. Run 'git submodule update --init' on qtlocation.") | ||
| 27 | } else { | ||
diff --git a/recipes-qt/qt5/qtlocation_git.bb b/recipes-qt/qt5/qtlocation_git.bb index aab68537..ac8b5f35 100644 --- a/recipes-qt/qt5/qtlocation_git.bb +++ b/recipes-qt/qt5/qtlocation_git.bb | |||
| @@ -13,11 +13,15 @@ LIC_FILES_CHKSUM = " \ | |||
| 13 | 13 | ||
| 14 | DEPENDS += "qtbase qtxmlpatterns qtdeclarative qtquickcontrols" | 14 | DEPENDS += "qtbase qtxmlpatterns qtdeclarative qtquickcontrols" |
| 15 | 15 | ||
| 16 | SRC_URI += "file://0001-Make-mapbox-gl-build-configurable.patch" | ||
| 17 | |||
| 16 | PACKAGECONFIG ??= "" | 18 | PACKAGECONFIG ??= "" |
| 17 | # older geoclue 0.12.99 is needed | 19 | # older geoclue 0.12.99 is needed |
| 18 | PACKAGECONFIG[geoclue] = ",,geoclue" | 20 | PACKAGECONFIG[geoclue] = ",,geoclue" |
| 19 | PACKAGECONFIG[gypsy] = "-feature-gypsy,-no-feature-gypsy,gconf gypsy" | 21 | PACKAGECONFIG[gypsy] = "-feature-gypsy,-no-feature-gypsy,gconf gypsy" |
| 22 | PACKAGECONFIG[mapboxgl] = "" | ||
| 20 | 23 | ||
| 24 | EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'mapboxgl', 'CONFIG+=mapboxgl', '', d)}" | ||
| 21 | EXTRA_QMAKEVARS_CONFIGURE += "${PACKAGECONFIG_CONFARGS}" | 25 | EXTRA_QMAKEVARS_CONFIGURE += "${PACKAGECONFIG_CONFARGS}" |
| 22 | 26 | ||
| 23 | SRC_URI += " \ | 27 | SRC_URI += " \ |
diff --git a/recipes-qt/qt5/qtquickcontrols_git.bb b/recipes-qt/qt5/qtquickcontrols_git.bb index c06da0c8..1c23fed5 100644 --- a/recipes-qt/qt5/qtquickcontrols_git.bb +++ b/recipes-qt/qt5/qtquickcontrols_git.bb | |||
| @@ -15,8 +15,6 @@ LIC_FILES_CHKSUM = " \ | |||
| 15 | 15 | ||
| 16 | DEPENDS += "qtdeclarative" | 16 | DEPENDS += "qtdeclarative" |
| 17 | 17 | ||
| 18 | RDEPENDS_${PN}-dev = "" | ||
| 19 | |||
| 20 | FILES_${PN}-qmlplugins += " \ | 18 | FILES_${PN}-qmlplugins += " \ |
| 21 | ${OE_QMAKE_PATH_QML}/QtQuick/Controls/Shaders \ | 19 | ${OE_QMAKE_PATH_QML}/QtQuick/Controls/Shaders \ |
| 22 | ${OE_QMAKE_PATH_QML}/QtQuick/Dialogs/qml/icons.ttf \ | 20 | ${OE_QMAKE_PATH_QML}/QtQuick/Dialogs/qml/icons.ttf \ |
diff --git a/recipes-qt/qt5/qtremoteobjects/0001-Allow-a-tools-only-build.patch b/recipes-qt/qt5/qtremoteobjects/0001-Allow-a-tools-only-build.patch new file mode 100644 index 00000000..dfebc184 --- /dev/null +++ b/recipes-qt/qt5/qtremoteobjects/0001-Allow-a-tools-only-build.patch | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | From dd9d1e5ecdcd8267215523ad08ea893656a7f42d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Samuli Piippo <samuli.piippo@qt.io> | ||
| 3 | Date: Wed, 7 Jun 2017 15:17:12 +0300 | ||
| 4 | Subject: [PATCH] Allow a tools-only build | ||
| 5 | |||
| 6 | Change-Id: I3b33fc1c8877fc82568bd386b063e7a0aa57b706 | ||
| 7 | --- | ||
| 8 | mkspecs/features/repccommon.pri | 2 +- | ||
| 9 | qtremoteobjects.pro | 5 +++++ | ||
| 10 | 2 files changed, 6 insertions(+), 1 deletion(-) | ||
| 11 | |||
| 12 | diff --git a/mkspecs/features/repccommon.pri b/mkspecs/features/repccommon.pri | ||
| 13 | index 5e88bf8..6efd19e 100644 | ||
| 14 | --- a/mkspecs/features/repccommon.pri | ||
| 15 | +++ b/mkspecs/features/repccommon.pri | ||
| 16 | @@ -3,7 +3,7 @@ cmd = $${QT.remoteobjects.bins}/repc | ||
| 17 | contains(QMAKE_HOST.os, Windows) { | ||
| 18 | cmd = $$system_path($${cmd}.exe) | ||
| 19 | } | ||
| 20 | -exists($$cmd): QT_TOOL.repc.binary = $$cmd | ||
| 21 | +false:exists($$cmd): QT_TOOL.repc.binary = $$cmd | ||
| 22 | |||
| 23 | # qtPrepareTool honors QT_TOOL.repc.binary if set | ||
| 24 | qtPrepareTool(QMAKE_REPC, repc) | ||
| 25 | diff --git a/qtremoteobjects.pro b/qtremoteobjects.pro | ||
| 26 | index c2e2b6b..93c2bb5 100644 | ||
| 27 | --- a/qtremoteobjects.pro | ||
| 28 | +++ b/qtremoteobjects.pro | ||
| 29 | @@ -2,3 +2,8 @@ CONFIG += examples_need_tools tests_need_tools | ||
| 30 | load(qt_parts) | ||
| 31 | |||
| 32 | SUBDIRS += mkspecs | ||
| 33 | + | ||
| 34 | +tools-only { | ||
| 35 | + sub_tools.depends -= sub_src | ||
| 36 | + SUBDIRS = sub_tools | ||
| 37 | +} | ||
diff --git a/recipes-qt/qt5/qtremoteobjects_git.bb b/recipes-qt/qt5/qtremoteobjects_git.bb index 1ed086fd..4622e17f 100644 --- a/recipes-qt/qt5/qtremoteobjects_git.bb +++ b/recipes-qt/qt5/qtremoteobjects_git.bb | |||
| @@ -9,6 +9,19 @@ LIC_FILES_CHKSUM = " \ | |||
| 9 | require qt5.inc | 9 | require qt5.inc |
| 10 | require qt5-git.inc | 10 | require qt5-git.inc |
| 11 | 11 | ||
| 12 | DEPENDS += "qtbase qtdeclarative" | 12 | DEPENDS += "qtbase qtdeclarative qtremoteobjects-native" |
| 13 | |||
| 14 | SRC_URI += " \ | ||
| 15 | file://0001-Allow-a-tools-only-build.patch \ | ||
| 16 | " | ||
| 17 | |||
| 18 | PACKAGECONFIG ??= "" | ||
| 19 | PACKAGECONFIG_class-native ??= "tools-only" | ||
| 20 | PACKAGECONFIG_class-nativesdk ??= "tools-only" | ||
| 21 | PACKAGECONFIG[tools-only] = "CONFIG+=tools-only" | ||
| 22 | |||
| 23 | EXTRA_QMAKEVARS_PRE += "${PACKAGECONFIG_CONFARGS}" | ||
| 13 | 24 | ||
| 14 | SRCREV = "0f80a0ad9f80f9f78dc9e9efe8b601dea2487322" | 25 | SRCREV = "0f80a0ad9f80f9f78dc9e9efe8b601dea2487322" |
| 26 | |||
| 27 | BBCLASSEXTEND += "native nativesdk" | ||
diff --git a/recipes-qt/qt5/qtwebengine/0001-Force-host-toolchain-configuration.patch b/recipes-qt/qt5/qtwebengine/0001-Force-host-toolchain-configuration.patch index 130f3a38..e10d3b82 100644 --- a/recipes-qt/qt5/qtwebengine/0001-Force-host-toolchain-configuration.patch +++ b/recipes-qt/qt5/qtwebengine/0001-Force-host-toolchain-configuration.patch | |||
| @@ -52,8 +52,8 @@ index 75b9690..601f688 100755 | |||
| 52 | else: | 52 | else: |
| 53 | - cc = os.environ.get('CC', 'cc') | 53 | - cc = os.environ.get('CC', 'cc') |
| 54 | - cxx = os.environ.get('CXX', 'c++') | 54 | - cxx = os.environ.get('CXX', 'c++') |
| 55 | + cc = os.environ.get('CC_host', 'cc') | 55 | + cc = os.environ.get('CC_host', 'gcc') |
| 56 | + cxx = os.environ.get('CXX_host', 'c++') | 56 | + cxx = os.environ.get('CXX_host', 'g++') |
| 57 | ld = cxx | 57 | ld = cxx |
| 58 | - ar = os.environ.get('AR', 'ar') | 58 | - ar = os.environ.get('AR', 'ar') |
| 59 | + ar = os.environ.get('AR_host', 'ar') | 59 | + ar = os.environ.get('AR_host', 'ar') |
diff --git a/recipes-qt/qt5/qtwebview/0001-Add-missing-include-for-qWarning.patch b/recipes-qt/qt5/qtwebview/0001-Add-missing-include-for-qWarning.patch new file mode 100644 index 00000000..82087b9a --- /dev/null +++ b/recipes-qt/qt5/qtwebview/0001-Add-missing-include-for-qWarning.patch | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | From b946b6ea4a2a30bd12ecd036e40c9ef671681ba8 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Samuli Piippo <samuli.piippo@qt.io> | ||
| 3 | Date: Fri, 2 Jun 2017 13:12:18 +0300 | ||
| 4 | Subject: [PATCH] Add missing include for qWarning | ||
| 5 | |||
| 6 | Change-Id: I7c7699e7a2b7ce59e4f659d460ec835f59bba439 | ||
| 7 | --- | ||
| 8 | src/webview/qquickwebview.cpp | 1 + | ||
| 9 | 1 file changed, 1 insertion(+) | ||
| 10 | |||
| 11 | diff --git a/src/webview/qquickwebview.cpp b/src/webview/qquickwebview.cpp | ||
| 12 | index d760564..fbbbfd6 100644 | ||
| 13 | --- a/src/webview/qquickwebview.cpp | ||
| 14 | +++ b/src/webview/qquickwebview.cpp | ||
| 15 | @@ -39,6 +39,7 @@ | ||
| 16 | #include <QtWebView/private/qwebviewloadrequest_p.h> | ||
| 17 | #include <QtQml/qqmlengine.h> | ||
| 18 | #include <QtCore/qmutex.h> | ||
| 19 | +#include <QtCore/QDebug> | ||
| 20 | |||
| 21 | namespace { | ||
| 22 | |||
diff --git a/recipes-qt/qt5/qtwebview_git.bb b/recipes-qt/qt5/qtwebview_git.bb new file mode 100644 index 00000000..cdf465d6 --- /dev/null +++ b/recipes-qt/qt5/qtwebview_git.bb | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | LICENSE = "GFDL-1.3 & BSD & ( GPL-2.0+ | LGPL-3.0 ) | The-Qt-Company-Commercial" | ||
| 2 | LIC_FILES_CHKSUM = " \ | ||
| 3 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 4 | file://LICENSE.GPLv2;md5=c96076271561b0e3785dad260634eaa8 \ | ||
| 5 | file://LICENSE.GPLv3;md5=88e2b9117e6be406b5ed6ee4ca99a705 \ | ||
| 6 | file://LICENSE.LGPLv3;md5=e0459b45c5c4840b353141a8bbed91f0 \ | ||
| 7 | " | ||
| 8 | |||
| 9 | require qt5.inc | ||
| 10 | require qt5-git.inc | ||
| 11 | |||
| 12 | SRC_URI += "file://0001-Add-missing-include-for-qWarning.patch" | ||
| 13 | |||
| 14 | DEPENDS += "qtbase qtwebengine" | ||
| 15 | |||
| 16 | SRCREV = "22e7f1941fbbb7aa7212faabf5939b6d2ca7bd49" | ||
diff --git a/recipes-qt/qwt/qwt-qt5.inc b/recipes-qt/qwt/qwt-qt5.inc new file mode 100644 index 00000000..ee4fbd77 --- /dev/null +++ b/recipes-qt/qwt/qwt-qt5.inc | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | DESCRIPTION = "Qt Widget Extension for Technical Applications" | ||
| 2 | SECTION = "libs" | ||
| 3 | |||
| 4 | # LGPLv2.1 + some exceptions | ||
| 5 | LICENSE = "QWTv1.0" | ||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=dac2743472b0462ff3cfb4af42051c88" | ||
| 7 | |||
| 8 | DEPENDS = "qtbase qtsvg qttools" | ||
| 9 | |||
| 10 | SRC_URI = "${SOURCEFORGE_MIRROR}/qwt/qwt-${PV}.tar.bz2;name=qwt \ | ||
| 11 | " | ||
| 12 | # file://qwt6.patch | ||
| 13 | # file://qwt6-fix-linking-with-ld-gold.patch" | ||
| 14 | |||
| 15 | S = "${WORKDIR}/qwt-${PV}" | ||
| 16 | |||
| 17 | do_configure_prepend() { | ||
| 18 | cd ${S} | ||
| 19 | sed -i -e 's:RELEASE_SUFFIX = :RELEASE_SUFFIX = ${QT_LIBINFIX}:' *.pri | ||
| 20 | sed -i -e 's:qtAddLibrary(qwt:qtAddLibrary(qwt)${QT_LIBINFIX}:g' *.prf | ||
| 21 | sed -e 's/# QWT_CONFIG += QwtExamples/QWT_CONFIG += QwtExamples/g' -i qwtconfig.pri | ||
| 22 | sed -i -e 's:/usr/local/qwt-$$QWT_VERSION:${D}${prefix}:g' ${S}/*.pri | ||
| 23 | } | ||
| 24 | |||
| 25 | do_install() { | ||
| 26 | cd ${S} | ||
| 27 | oe_runmake -e install | ||
| 28 | # install -d ${D}${datadir}/doc/${PN} | ||
| 29 | # mv ${D}${prefix}/doc/* ${D}${datadir}/doc/${PN}/ | ||
| 30 | # rmdir ${D}${prefix}/doc | ||
| 31 | # cd ${S}/examples | ||
| 32 | # install -d ${D}/${bindir} | ||
| 33 | # cd bin${QT_LIBINFIX}/ | ||
| 34 | # for i in * ; do | ||
| 35 | # cp -pPR ${i} ${D}/${bindir}/${i}${QT_LIBINFIX} | ||
| 36 | # done | ||
| 37 | # install -d ${D}${libdir}/${QT_DIR_NAME} | ||
| 38 | # mv ${D}${prefix}/plugins ${D}${libdir}/${QT_DIR_NAME} | ||
| 39 | } | ||
| 40 | |||
| 41 | PACKAGES_prepend = "${PN}-examples ${PN}-features ${PN}-plugins " | ||
| 42 | FILES_${PN}-examples = "${bindir}/*" | ||
| 43 | FILES_${PN}-features = "${prefix}/features" | ||
| 44 | FILES_${PN}-plugins = "${prefix}/plugins/designer/*.so" | ||
| 45 | FILES_${PN}-dbg += "${prefix}/plugins/designer/.debug" | ||
| 46 | FILES_${PN}-doc += "${prefix}/doc" | ||
| 47 | |||
diff --git a/recipes-qt/qwt/qwt-qt5_6.1.3.bb b/recipes-qt/qwt/qwt-qt5_6.1.3.bb new file mode 100644 index 00000000..626bd0ab --- /dev/null +++ b/recipes-qt/qwt/qwt-qt5_6.1.3.bb | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | inherit qmake5 | ||
| 2 | |||
| 3 | require qwt-qt5.inc | ||
| 4 | |||
| 5 | SRC_URI[qwt.md5sum] = "19d1f5fa5e22054d22ee3accc37c54ba" | ||
| 6 | SRC_URI[qwt.sha256sum] = "f3ecd34e72a9a2b08422fb6c8e909ca76f4ce5fa77acad7a2883b701f4309733" | ||
| 7 | |||
| 8 | RPROVIDES_${PN}-dev = "libqwt-qt5-dev" | ||
