diff options
| author | Philip Balister <philip@balister.org> | 2017-05-13 15:24:48 -0400 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-05-16 09:35:08 +0200 |
| commit | 960aaf3658a4dc7c455cdb2d42e626118ee76378 (patch) | |
| tree | c431964f71ab4cd7e870347ec903bb2e59d516fa /recipes-qt | |
| parent | 5f837b47f5c3e462f24cd5abf58ff6ef1dd04932 (diff) | |
| download | meta-qt5-960aaf3658a4dc7c455cdb2d42e626118ee76378.tar.gz | |
qwt: Add recipe.
* Build tested for raspberrypi3.
Signed-off-by: Philip Balister <philip@balister.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt')
| -rw-r--r-- | recipes-qt/qwt/qwt-qt5.inc | 47 | ||||
| -rw-r--r-- | recipes-qt/qwt/qwt-qt5_6.1.3.bb | 8 |
2 files changed, 55 insertions, 0 deletions
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" | ||
