diff options
| author | Mikko Gronoff <mikko.gronoff@qt.io> | 2017-06-20 09:30:07 +0300 |
|---|---|---|
| committer | Mikko Gronoff <mikko.gronoff@qt.io> | 2017-06-20 09:36:35 +0300 |
| commit | b04b2385c89f1b66ce2ae3b381d41090db5249e0 (patch) | |
| tree | 7fd9992fff74f300614fe7378e0ee004ca093ca8 | |
| parent | f54f8401b268cb50d2f270e2da88d07c1c5e4148 (diff) | |
| parent | 6605c48f3a900da26425ef31d83eb1c95d551531 (diff) | |
| download | meta-qt5-b04b2385c89f1b66ce2ae3b381d41090db5249e0.tar.gz | |
Merge remote-tracking branch 'qtyocto/upstream/master' into 5.9
* upstream/master:
python-pyqt5: Add recipe
qwt: Add recipe
Change-Id: Id384afdd3cb5cc860cc1044431641cdb89aeac21
| -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/qwt/qwt-qt5.inc | 47 | ||||
| -rw-r--r-- | recipes-qt/qwt/qwt-qt5_6.1.3.bb | 8 |
4 files changed, 141 insertions, 0 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/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" | ||
