summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikko Gronoff <mikko.gronoff@qt.io>2017-06-20 09:30:07 +0300
committerMikko Gronoff <mikko.gronoff@qt.io>2017-06-20 09:36:35 +0300
commitb04b2385c89f1b66ce2ae3b381d41090db5249e0 (patch)
tree7fd9992fff74f300614fe7378e0ee004ca093ca8
parentf54f8401b268cb50d2f270e2da88d07c1c5e4148 (diff)
parent6605c48f3a900da26425ef31d83eb1c95d551531 (diff)
downloadmeta-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.patch17
-rw-r--r--recipes-python/pyqt5/python-pyqt5_5.8.2.bb69
-rw-r--r--recipes-qt/qwt/qwt-qt5.inc47
-rw-r--r--recipes-qt/qwt/qwt-qt5_6.1.3.bb8
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 @@
1SUMMARY = "Python Qt5 Bindings"
2AUTHOR = "Phil Thomson @ riverbank.co.uk"
3HOMEPAGE = "http://riverbankcomputing.co.uk"
4SECTION = "devel/python"
5LICENSE = "GPLv3"
6LIC_FILES_CHKSUM = "\
7 file://LICENSE;md5=d32239bcb673463ab874e80d47fae504 \
8"
9DEPENDS = "sip sip-native qtbase python"
10
11SRC_URI = "\
12 ${SOURCEFORGE_MIRROR}/pyqt/PyQt5_gpl-${PV}.tar.gz \
13 file://fix-sm.patch \
14"
15SRC_URI[md5sum] = "c3048e9d242f3e72fd393630da1d971a"
16SRC_URI[sha256sum] = "ebd70515b30bbd6098fee29e6271a6696b1183c5530ee30e6ba9aaab195536e8"
17
18S = "${WORKDIR}/PyQt5_gpl-${PV}"
19
20
21inherit qmake5 pythonnative python-dir distro_features_check
22# depends on qt4-x11-free
23REQUIRED_DISTRO_FEATURES = "x11"
24
25export BUILD_SYS
26export HOST_SYS
27export STAGING_INCDIR
28export STAGING_LIBDIR
29
30DISABLED_FEATURES = "PyQt_Desktop_OpenGL PyQt_Accessibility PyQt_SessionManager"
31
32DISABLED_FEATURES_append_arm = " PyQt_qreal_double"
33
34PYQT_MODULES = "QtCore QtGui QtNetwork"
35PYQT_MODULES_aarch64 = "QtCore QtGui QtNetwork"
36
37do_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
55do_compile() {
56 cd ${S}
57 oe_runmake
58}
59
60do_install() {
61 cd ${S}
62 oe_runmake install
63}
64
65RDEPENDS_${PN} = "python-core python-sip"
66
67FILES_${PN} += "${libdir}/${PYTHON_DIR}/site-packages ${datadir}/sip/PyQt5/"
68FILES_${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 @@
1DESCRIPTION = "Qt Widget Extension for Technical Applications"
2SECTION = "libs"
3
4# LGPLv2.1 + some exceptions
5LICENSE = "QWTv1.0"
6LIC_FILES_CHKSUM = "file://COPYING;md5=dac2743472b0462ff3cfb4af42051c88"
7
8DEPENDS = "qtbase qtsvg qttools"
9
10SRC_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
15S = "${WORKDIR}/qwt-${PV}"
16
17do_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
25do_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
41PACKAGES_prepend = "${PN}-examples ${PN}-features ${PN}-plugins "
42FILES_${PN}-examples = "${bindir}/*"
43FILES_${PN}-features = "${prefix}/features"
44FILES_${PN}-plugins = "${prefix}/plugins/designer/*.so"
45FILES_${PN}-dbg += "${prefix}/plugins/designer/.debug"
46FILES_${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 @@
1inherit qmake5
2
3require qwt-qt5.inc
4
5SRC_URI[qwt.md5sum] = "19d1f5fa5e22054d22ee3accc37c54ba"
6SRC_URI[qwt.sha256sum] = "f3ecd34e72a9a2b08422fb6c8e909ca76f4ce5fa77acad7a2883b701f4309733"
7
8RPROVIDES_${PN}-dev = "libqwt-qt5-dev"