qwt 5.2.1: add recipes for /e and /x11 versions
authorKoen Kooi <k-kooi@ti.com>
Mon, 25 Oct 2010 11:16:37 +0000 (13:16 +0200)
committerEric Bénard <eric@eukrea.com>
Mon, 1 Nov 2010 13:20:58 +0000 (14:20 +0100)
* QT/e apps using this lib will need some s/qwt/qwt$QTLIBINFIX/g love

Signed-off-by: Koen Kooi <k-kooi@ti.com>
recipes/qwt/qwt-e_5.2.1.bb [new file with mode: 0644]
recipes/qwt/qwt.inc [new file with mode: 0644]
recipes/qwt/qwt_5.2.1.bb [new file with mode: 0644]

diff --git a/recipes/qwt/qwt-e_5.2.1.bb b/recipes/qwt/qwt-e_5.2.1.bb
new file mode 100644 (file)
index 0000000..a9f3e38
--- /dev/null
@@ -0,0 +1,7 @@
+inherit qt4e
+
+require qwt.inc
+
+SRC_URI[qwt.md5sum] = "4a595b8db0ec3856b117836c1d60cb27"
+SRC_URI[qwt.sha256sum] = "e2b8bb755404cb3dc99e61f3e2d7262152193488f5fbe88524eb698e11ac569f"
+
diff --git a/recipes/qwt/qwt.inc b/recipes/qwt/qwt.inc
new file mode 100644 (file)
index 0000000..98117fb
--- /dev/null
@@ -0,0 +1,23 @@
+DESCRIPTION = "Qt Widget Extension for Technical Applications"
+SECTION = "libs"
+PRIORITY = "optional"
+
+# LGPLv2.1 + some exceptions
+LICENSE = "QWTv1.0"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/qwt/qwt-${PV}.tar.bz2;name=qwt"
+
+S = "${WORKDIR}/qwt-${PV}"
+
+do_configure_prepend() {
+       sed -i -e 's:RELEASE_SUFFIX      = :RELEASE_SUFFIX      = ${QT_LIBINFIX}:' *.pri
+       sed -i -e s:lqwt:lqwt${QT_LIBINFIX}:g -e s:/usr/local/qwt-$\${QwtVersion}:${prefix}:g *.prf
+}
+
+do_install() {
+       sed -i -e s:/usr/local/qwt-${PV}:${D}${prefix}:g ${S}/*.pri
+       oe_runmake -e install
+       install -d ${D}${datadir}/doc/${PN}
+       mv ${D}${prefix}/doc/* ${D}${datadir}/doc/${PN}/
+}
+
diff --git a/recipes/qwt/qwt_5.2.1.bb b/recipes/qwt/qwt_5.2.1.bb
new file mode 100644 (file)
index 0000000..15e767c
--- /dev/null
@@ -0,0 +1,7 @@
+inherit qt4x11
+
+require qwt.inc
+
+SRC_URI[qwt.md5sum] = "4a595b8db0ec3856b117836c1d60cb27"
+SRC_URI[qwt.sha256sum] = "e2b8bb755404cb3dc99e61f3e2d7262152193488f5fbe88524eb698e11ac569f"
+