Skip to contentSkip to conversation

Add current Qwt version

PATCH In review Thomas Elste 2 participants 4 messages Jun 24, 2010 – Jun 28, 2010

lore
Share & tools
lore
#0 lore raw

Hi everyone,

the following patch adds support for the current version of Qwt. Qt and Qt-Embedded variants are supported.

Quoted 2 lines · Koen Kooi

Could you make the -e and regular variants parallel installable? The demos could be put in ${D}${bindir}/qwt-examples${QWT_VARIANT} for example.

The Qwt library for Qt-Embedded now gets the suffix "E" appended like all other Qt-Embedded librarys. Examples are installed in different directories. So both variants may be installed in parallel. Tested on Beagleboard/Angstrom with qt-embedded-4.6.2 and qt4-x11-free-gles-4.6.2.

Regards
Thomas

#1 lore raw

PATCH 1/1 qwt: Add version 5.2.1

Add recipe for current version of Qwt. This new version uses qt4-classes instead of palmtop. Different bb-files for Qt and Qt-Embedded variant are provided. Qwt examples are also build. They get deployed in extra packages.

---
 recipes/qwt/qwt-e_5.2.1.bb |   10 ++++++++++
 recipes/qwt/qwt.inc        |   35 +++++++++++++++++++++++++++++++++++
 recipes/qwt/qwt_5.2.1.bb   |   10 ++++++++++
 3 files changed, 55 insertions(+), 0 deletions(-)
 create mode 100644 recipes/qwt/qwt-e_5.2.1.bb
 create mode 100644 recipes/qwt/qwt.inc
 create mode 100644 recipes/qwt/qwt_5.2.1.bb
recipes/qwt/qwt-e_5.2.1.bb new file +10 -0
new file mode 100644
index 0000000..95bb31f
@@ -0,0 +1,10 @@
+QWT_VARIANT = "E"
+inherit qt4e
+require qwt.inc
+RDEPENDS_${PN}-examples += "qt4-embedded-fonts"
+
+PR = "${INC_PR}.1"
+
+SRC_URI[md5sum] = "4a595b8db0ec3856b117836c1d60cb27"
+SRC_URI[sha256sum] = "e2b8bb755404cb3dc99e61f3e2d7262152193488f5fbe88524eb698e11ac569f"
+
recipes/qwt/qwt.inc new file +35 -0
new file mode 100644
index 0000000..09ceb56
@@ -0,0 +1,35 @@
+DESCRIPTION = "Qt Widget Extension for Technical Applications"
+HOMEPAGE = "http://qwt.sourceforge.net/"
+SECTION = "libs"
+PRIORITY = "optional"
+LICENSE = "GPL"
+INC_PR = "r0"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/qwt/qwt-${PV}.tar.bz2"
+
+S = "${WORKDIR}/qwt-${PV}"
+
+EXTRA_OEMAKE = "${PARALLEL_MAKE}"
+
+do_configure_prepend() {
+        # set install and doc path, set lib suffix, enable examples
+        sed -i \
+                -e 's/\(INSTALLBASE *= \)\/usr.*/\1\/usr/' \
+                -e 's/\(doc.path.*\/\).*/\1share\/doc\/qwt-${PV}/' \
+                -e 's/\(RELEASE_SUFFIX *=\).*/\1 ${QWT_VARIANT}/' \
+                -e 's/#CONFIG     += QwtExamples/CONFIG += QwtExamples/' \
+                qwtconfig.pri
+}
+
+do_install() {
+        oe_runmake install INSTALL_ROOT=${D}
+        rm ${D}${libdir}/libqwt${QWT_VARIANT}.so
+        install -d ${D}${bindir}/qwt${QWT_VARIANT}-examples
+        install examples/bin${QWT_VARIANT}/* ${D}${bindir}/qwt${QWT_VARIANT}-examples
+}
+
+PACKAGES =+ "${PN}-examples ${PN}-examples-dbg"
+FILES_${PN} = "${libdir}/*"
+FILES_${PN}-examples = "${bindir}/qwt${QWT_VARIANT}-examples/*"
+FILES_${PN}-examples-dbg = "${bindir}/qwt${QWT_VARIANT}-examples"
+
recipes/qwt/qwt_5.2.1.bb new file +10 -0
new file mode 100644
index 0000000..4f59d16
@@ -0,0 +1,10 @@
+QWT_VARIANT = 
+inherit qt4x11
+require qwt.inc
+RDEPENDS_${PN}-examples += "qt4-fonts"
+
+PR = "${INC_PR}.1"
+
+SRC_URI[md5sum] = "4a595b8db0ec3856b117836c1d60cb27"
+SRC_URI[sha256sum] = "e2b8bb755404cb3dc99e61f3e2d7262152193488f5fbe88524eb698e11ac569f"
+
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#2 lore raw

Re: [PATCH] qwt: Add version 5.2.1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 4 lines · Thomas Elste

Add recipe for current version of Qwt. This new version uses qt4-classes instead of palmtop. Different bb-files for Qt and Qt-Embedded variant are provided. Qwt examples are also build. They get deployed in extra packages.

Looks good enough to me, we can solve any other issues after it has been committed.

Quoted 74 lines
---
 recipes/qwt/qwt-e_5.2.1.bb |   10 ++++++++++
 recipes/qwt/qwt.inc        |   35 +++++++++++++++++++++++++++++++++++
 recipes/qwt/qwt_5.2.1.bb   |   10 ++++++++++
 3 files changed, 55 insertions(+), 0 deletions(-)
 create mode 100644 recipes/qwt/qwt-e_5.2.1.bb
 create mode 100644 recipes/qwt/qwt.inc
 create mode 100644 recipes/qwt/qwt_5.2.1.bb
recipes/qwt/qwt-e_5.2.1.bb new file +10 -0
new file mode 100644
index 0000000..95bb31f
@@ -0,0 +1,10 @@
+QWT_VARIANT = "E"
+inherit qt4e
+require qwt.inc
+RDEPENDS_${PN}-examples += "qt4-embedded-fonts"
+
+PR = "${INC_PR}.1"
+
+SRC_URI[md5sum] = "4a595b8db0ec3856b117836c1d60cb27"
+SRC_URI[sha256sum] = "e2b8bb755404cb3dc99e61f3e2d7262152193488f5fbe88524eb698e11ac569f"
+
recipes/qwt/qwt.inc new file +35 -0
new file mode 100644
index 0000000..09ceb56
@@ -0,0 +1,35 @@
+DESCRIPTION = "Qt Widget Extension for Technical Applications"
+HOMEPAGE = "http://qwt.sourceforge.net/"
+SECTION = "libs"
+PRIORITY = "optional"
+LICENSE = "GPL"
+INC_PR = "r0"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/qwt/qwt-${PV}.tar.bz2"
+
+S = "${WORKDIR}/qwt-${PV}"
+
+EXTRA_OEMAKE = "${PARALLEL_MAKE}"
+
+do_configure_prepend() {
+        # set install and doc path, set lib suffix, enable examples
+        sed -i \
+                -e 's/\(INSTALLBASE *= \)\/usr.*/\1\/usr/' \
+                -e 's/\(doc.path.*\/\).*/\1share\/doc\/qwt-${PV}/' \
+                -e 's/\(RELEASE_SUFFIX *=\).*/\1 ${QWT_VARIANT}/' \
+                -e 's/#CONFIG     += QwtExamples/CONFIG += QwtExamples/' \
+                qwtconfig.pri
+}
+
+do_install() {
+        oe_runmake install INSTALL_ROOT=${D}
+        rm ${D}${libdir}/libqwt${QWT_VARIANT}.so
+        install -d ${D}${bindir}/qwt${QWT_VARIANT}-examples
+        install examples/bin${QWT_VARIANT}/* ${D}${bindir}/qwt${QWT_VARIANT}-examples
+}
+
+PACKAGES =+ "${PN}-examples ${PN}-examples-dbg"
+FILES_${PN} = "${libdir}/*"
+FILES_${PN}-examples = "${bindir}/qwt${QWT_VARIANT}-examples/*"
+FILES_${PN}-examples-dbg = "${bindir}/qwt${QWT_VARIANT}-examples"
+
recipes/qwt/qwt_5.2.1.bb new file +0 -0
new file mode 100644
index 0000000..4f59d16

recipes/qwt/qwt_5.2.1.bb line 10

Quoted 10 lines
recipes/qwt/qwt_5.2.1.bb new file +10 -0
@@ -0,0 +1,10 @@
+QWT_VARIANT = 
+inherit qt4x11
+require qwt.inc
+RDEPENDS_${PN}-examples += "qt4-fonts"
+
+PR = "${INC_PR}.1"
+
+SRC_URI[md5sum] = "4a595b8db0ec3856b117836c1d60cb27"
+SRC_URI[sha256sum] = "e2b8bb755404cb3dc99e61f3e2d7262152193488f5fbe88524eb698e11ac569f"
+

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFMIyXXMkyGM64RGpERAtYMAJ4897qIqzvaMZ4jBLbBZKqV/myZdQCgg/K/ AbTO4SXKR8rBfLj5NQ4SIPw=
=Ebu/
-----END PGP SIGNATURE-----

#3 lore raw

Re: [PATCH] qwt: Add version 5.2.1

Hi,

Quoted 4 lines
Quoted 4 lines

Add recipe for current version of Qwt. This new version uses qt4-classes instead of palmtop. Different bb-files for Qt and Qt-Embedded variant are provided. Qwt examples are also build. They get deployed in extra packages.

Quoted 2 lines · Koen Kooi

Looks good enough to me, we can solve any other issues after it has been committed.

If the patch is ok so far, could you or somebody else commit it? I don't have write access to the dev tree.

Thanks
Thomas