diff options
| author | Philip Balister <philip@balister.org> | 2014-12-18 13:40:45 -0500 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-12-19 20:13:12 +0100 |
| commit | b1ffc521bd4f5dc62fd346fdc4abf4667a983934 (patch) | |
| tree | a8b6940e47e7bca87cdbe8bce7081436389b3a48 /meta-oe/recipes-devtools/python/python-pyqt_4.11.3.bb | |
| parent | afc100a940b96628d9b99cefda65463a65b84f28 (diff) | |
| download | meta-openembedded-b1ffc521bd4f5dc62fd346fdc4abf4667a983934.tar.gz | |
python-pyqt: Update to 4.11.3.
The configure.py script now has support for cross compiling. This
simplified the recipe substantially.
The recipe was tested with gnuradio-companion on the zedboard and
ettus-e300. This is the first time we have been able to use grc with
pyqt built with OpenEmbedded.
Build tested on armv7, x86, x86_64 and mips.
Dropped patches from previous versions.
Signed-off-by: Philip Balister <philip@balister.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/python/python-pyqt_4.11.3.bb')
| -rw-r--r-- | meta-oe/recipes-devtools/python/python-pyqt_4.11.3.bb | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/python/python-pyqt_4.11.3.bb b/meta-oe/recipes-devtools/python/python-pyqt_4.11.3.bb new file mode 100644 index 0000000000..140456e17e --- /dev/null +++ b/meta-oe/recipes-devtools/python/python-pyqt_4.11.3.bb | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | SUMMARY = "Python Qt4 Bindings" | ||
| 2 | AUTHOR = "Phil Thomson @ riverbank.co.uk" | ||
| 3 | HOMEPAGE = "http://riverbankcomputing.co.uk" | ||
| 4 | SECTION = "devel/python" | ||
| 5 | LICENSE = "GPLv2 & GPLv3 & GPL_EXCEPTION" | ||
| 6 | LIC_FILES_CHKSUM = "\ | ||
| 7 | file://GPL_EXCEPTION.TXT;md5=b73b0be471db679533dc94781c14af58 \ | ||
| 8 | file://GPL_EXCEPTION_ADDENDUM.TXT;md5=c1e04ec2aa0911061005a801abf81e40 \ | ||
| 9 | file://OPENSOURCE-NOTICE.TXT;md5=6ad9123620cc04a22c394753ad4767d7 \ | ||
| 10 | file://LICENSE.GPL2;md5=577ff65f6653562af318bfc3944b1f20 \ | ||
| 11 | file://LICENSE.GPL3;md5=feee51612c3c1191a1d5f41156fa2c75 \ | ||
| 12 | " | ||
| 13 | DEPENDS = "sip sip-native qt4-x11-free python" | ||
| 14 | |||
| 15 | SRC_URI = "\ | ||
| 16 | ${SOURCEFORGE_MIRROR}/pyqt/PyQt-x11-gpl-${PV}.tar.gz \ | ||
| 17 | " | ||
| 18 | SRC_URI[md5sum] = "997c3e443165a89a559e0d96b061bf70" | ||
| 19 | SRC_URI[sha256sum] = "853780dcdbe2e6ba785d703d059b096e1fc49369d3e8d41a060be874b8745686" | ||
| 20 | |||
| 21 | S = "${WORKDIR}/PyQt-x11-gpl-${PV}" | ||
| 22 | |||
| 23 | PARALLEL_MAKE = "" | ||
| 24 | |||
| 25 | inherit qmake2 pythonnative python-dir | ||
| 26 | |||
| 27 | DISABLED_FEATURES = "PyQt_Desktop_OpenGL PyQt_Accessibility PyQt_SessionManager" | ||
| 28 | |||
| 29 | DISABLED_FEATURES_append_arm = " PyQt_qreal_double" | ||
| 30 | |||
| 31 | do_configure() { | ||
| 32 | echo "py_platform = linux" > pyqt.cfg | ||
| 33 | echo "py_inc_dir = %(sysroot)/$includedir/python%(py_major).%(py_minor)" >> pyqt.cfg | ||
| 34 | echo "py_pylib_dir = %(sysroot)/${libdir}/python%(py_major).%(py_minor)" >> pyqt.cfg | ||
| 35 | echo "py_pylib_lib = python%(py_major).%(py_minor)mu" >> pyqt.cfg | ||
| 36 | echo "pyqt_module_dir = ${D}/${libdir}/python%(py_major).%(py_minor)/site-packages" >> pyqt.cfg | ||
| 37 | echo "pyqt_bin_dir = ${D}/${bindir}" >> pyqt.cfg | ||
| 38 | echo "pyqt_sip_dir = ${D}/${datadir}/sip/PyQt4" >> pyqt.cfg | ||
| 39 | echo "pyuic_interpreter = ${D}/${bindir}/python%(py_major).%(py_minor)" >> pyqt.cfg | ||
| 40 | echo "pyqt_disabled_features = ${DISABLED_FEATURES}" >> pyqt.cfg | ||
| 41 | echo "qt_shared = True" >> pyqt.cfg | ||
| 42 | echo "[Qt 4.8]" >> pyqt.cfg | ||
| 43 | echo "pyqt_modules = QtCore QtGui QtDeclarative QtNetwork QtSvg QtWebKit" >> pyqt.cfg | ||
| 44 | echo yes | python configure-ng.py --verbose --qmake ${STAGING_BINDIR_NATIVE}/qmake2 --configuration pyqt.cfg --sysroot ${STAGING_DIR_HOST} | ||
| 45 | } | ||
| 46 | do_install() { | ||
| 47 | oe_runmake install | ||
| 48 | } | ||
| 49 | |||
| 50 | RDEPENDS_${PN} = "python-core" | ||
| 51 | |||
| 52 | FILES_${PN} += "${libdir}/${PYTHON_DIR}/site-packages ${datadir}/sip/PyQt4/" | ||
| 53 | FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/*/.debug/" | ||
| 54 | |||
