Skip to contentSkip to conversation

qwt: Add version 5.2.1

PATCH In review Thomas Elste 2 participants 3 messages Jun 22, 2010

lore
Share & tools
lore
#0 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 |    8 ++++++++
 recipes/qwt/qwt.inc        |   33 +++++++++++++++++++++++++++++++++
 recipes/qwt/qwt_5.2.1.bb   |    8 ++++++++
 3 files changed, 49 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 +8 -0
new file mode 100644
index 0000000..09b31ed
@@ -0,0 +1,8 @@
+QWT_VARIANT = "e"
+require qwt.inc
+
+PR = "${INC_PR}.1"
+
+SRC_URI[md5sum] = "4a595b8db0ec3856b117836c1d60cb27"
+SRC_URI[sha256sum] = "e2b8bb755404cb3dc99e61f3e2d7262152193488f5fbe88524eb698e11ac569f"
+
recipes/qwt/qwt.inc new file +33 -0
new file mode 100644
index 0000000..6a9f9e0
@@ -0,0 +1,33 @@
+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"
+
+inherit qt4${QWT_VARIANT}
+
+EXTRA_OEMAKE = "${PARALLEL_MAKE}"
+
+do_configure_prepend() {
+        # set install path and doc path, enable examples
+        sed -i \
+                -e 's/\(INSTALLBASE *= \)\/usr.*/\1\/usr/' \
+                -e 's/\(doc.path.*\/\).*/\1share\/doc\/qwt-${PV}/' \
+                -e 's/#CONFIG     += QwtExamples/CONFIG += QwtExamples/' \
+                qwtconfig.pri
+}
+
+do_install() {
+        oe_runmake install INSTALL_ROOT=${D}
+        install -d ${D}${bindir}/qwt-examples
+        install examples/bin/* ${D}${bindir}/qwt-examples
+}
+
+PACKAGES =+ "${PN}-examples ${PN}-examples-dbg"
+FILES_${PN} = "${libdir}/*"
+FILES_${PN}-examples = "${bindir}/qwt-examples/*"
+FILES_${PN}-examples-dbg = "${bindir}/qwt-examples"
+
recipes/qwt/qwt_5.2.1.bb new file +8 -0
new file mode 100644
index 0000000..a1142f0
@@ -0,0 +1,8 @@
+QWT_VARIANT = "x11"
+require qwt.inc
+
+PR = "${INC_PR}.1"
+
+SRC_URI[md5sum] = "4a595b8db0ec3856b117836c1d60cb27"
+SRC_URI[sha256sum] = "e2b8bb755404cb3dc99e61f3e2d7262152193488f5fbe88524eb698e11ac569f"
+
Signature · 1 line
1.7.1
#1 lore raw

-----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.

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

regards,

Koen

Quoted 70 lines
---
 recipes/qwt/qwt-e_5.2.1.bb |    8 ++++++++
 recipes/qwt/qwt.inc        |   33 +++++++++++++++++++++++++++++++++
 recipes/qwt/qwt_5.2.1.bb   |    8 ++++++++
 3 files changed, 49 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 +8 -0
new file mode 100644
index 0000000..09b31ed
@@ -0,0 +1,8 @@
+QWT_VARIANT = "e"
+require qwt.inc
+
+PR = "${INC_PR}.1"
+
+SRC_URI[md5sum] = "4a595b8db0ec3856b117836c1d60cb27"
+SRC_URI[sha256sum] = "e2b8bb755404cb3dc99e61f3e2d7262152193488f5fbe88524eb698e11ac569f"
+
recipes/qwt/qwt.inc new file +33 -0
new file mode 100644
index 0000000..6a9f9e0
@@ -0,0 +1,33 @@
+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"
+
+inherit qt4${QWT_VARIANT}
+
+EXTRA_OEMAKE = "${PARALLEL_MAKE}"
+
+do_configure_prepend() {
+        # set install path and doc path, enable examples
+        sed -i \
+                -e 's/\(INSTALLBASE *= \)\/usr.*/\1\/usr/' \
+                -e 's/\(doc.path.*\/\).*/\1share\/doc\/qwt-${PV}/' \
+                -e 's/#CONFIG     += QwtExamples/CONFIG += QwtExamples/' \
+                qwtconfig.pri
+}
+
+do_install() {
+        oe_runmake install INSTALL_ROOT=${D}
+        install -d ${D}${bindir}/qwt-examples
+        install examples/bin/* ${D}${bindir}/qwt-examples
+}
+
+PACKAGES =+ "${PN}-examples ${PN}-examples-dbg"
+FILES_${PN} = "${libdir}/*"
+FILES_${PN}-examples = "${bindir}/qwt-examples/*"
+FILES_${PN}-examples-dbg = "${bindir}/qwt-examples"
+
recipes/qwt/qwt_5.2.1.bb new file +0 -0
new file mode 100644
index 0000000..a1142f0

recipes/qwt/qwt_5.2.1.bb line 8

Quoted 8 lines
recipes/qwt/qwt_5.2.1.bb new file +8 -0
@@ -0,0 +1,8 @@
+QWT_VARIANT = "x11"
+require qwt.inc
+
+PR = "${INC_PR}.1"
+
+SRC_URI[md5sum] = "4a595b8db0ec3856b117836c1d60cb27"
+SRC_URI[sha256sum] = "e2b8bb755404cb3dc99e61f3e2d7262152193488f5fbe88524eb698e11ac569f"
+

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

iD8DBQFMIMhrMkyGM64RGpERAmX+AJ9xH0uFz2QAA4afR1pTrfcJCVC1CACfQLYm PFUyc+Uul7EcHZ8sS99hj6E=
=SRqv
-----END PGP SIGNATURE-----

#2 lore raw

Hi,

Quoted 2 lines

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

No problem for the examples. I've changed this in the attached patch. But I don't know, if there's a clean way to install the library itself for both variants.

Best regards
Thomas

From ead6d03a868112aa17126daecbb3899e0376d4cd Mon Sep 17 00:00:00 2001
From: Thomas Elste <[email protected]>
Date: Mon, 21 Jun 2010 16:57:44 +0200
Subject: [PATCH] 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 |    8 ++++++++
 recipes/qwt/qwt.inc        |   35 +++++++++++++++++++++++++++++++++++
 recipes/qwt/qwt_5.2.1.bb   |    8 ++++++++
 3 files changed, 51 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 +8 -0
new file mode 100644
index 0000000..09b31ed
@@ -0,0 +1,8 @@
+QWT_VARIANT = "e"
+require qwt.inc
+
+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..5fff79d
@@ -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"
+
+inherit qt4${QWT_VARIANT}
+
+S = "${WORKDIR}/qwt-${PV}"
+
+EXTRA_OEMAKE = "${PARALLEL_MAKE}"
+
+do_configure_prepend() {
+        # set install path and doc path, enable examples
+        sed -i \
+                -e 's/\(INSTALLBASE *= \)\/usr.*/\1\/usr/' \
+                -e 's/\(doc.path.*\/\).*/\1share\/doc\/qwt-${PV}/' \
+                -e 's/#CONFIG     += QwtExamples/CONFIG += QwtExamples/' \
+                qwtconfig.pri
+}
+
+do_install() {
+        oe_runmake install INSTALL_ROOT=${D}
+        install -d ${D}${bindir}/qwt-examples-${QWT_VARIANT}
+        install examples/bin/* ${D}${bindir}/qwt-examples-${QWT_VARIANT}
+}
+
+PACKAGES =+ "${PN}-examples ${PN}-examples-dbg"
+FILES_${PN} = "${libdir}/*"
+FILES_${PN}-examples = "${bindir}/qwt-examples-${QWT_VARIANT}/*"
+FILES_${PN}-examples-dbg = "${bindir}/qwt-examples-${QWT_VARIANT}"
+
recipes/qwt/qwt_5.2.1.bb new file +8 -0
new file mode 100644
index 0000000..a1142f0
@@ -0,0 +1,8 @@
+QWT_VARIANT = "x11"
+require qwt.inc
+
+PR = "${INC_PR}.1"
+
+SRC_URI[md5sum] = "4a595b8db0ec3856b117836c1d60cb27"
+SRC_URI[sha256sum] = "e2b8bb755404cb3dc99e61f3e2d7262152193488f5fbe88524eb698e11ac569f"
+
Signature · 1 line
1.7.1