qwt: add examples and fix -dev RPROVIDES
authorEric Bénard <eric@eukrea.com>
Sun, 31 Oct 2010 18:28:36 +0000 (19:28 +0100)
committerEric Bénard <eric@eukrea.com>
Mon, 1 Nov 2010 13:22:31 +0000 (14:22 +0100)
Signed-off-by: Eric Bénard <eric@eukrea.com>
Acked-by: Koen Kooi <k-kooi@ti.com>
recipes/qwt/qwt-e_5.2.1.bb
recipes/qwt/qwt.inc
recipes/qwt/qwt_5.2.1.bb

index a9f3e38..2f55061 100644 (file)
@@ -5,3 +5,4 @@ require qwt.inc
 SRC_URI[qwt.md5sum] = "4a595b8db0ec3856b117836c1d60cb27"
 SRC_URI[qwt.sha256sum] = "e2b8bb755404cb3dc99e61f3e2d7262152193488f5fbe88524eb698e11ac569f"
 
+RPROVIDES_${PN}-dev = "libqwt-dev"
\ No newline at end of file
index 98117fb..62c8656 100644 (file)
@@ -12,12 +12,22 @@ 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
+       sed -e 's/#CONFIG     += QwtExamples/CONFIG     += QwtExamples/g' -i qwtconfig.pri
+       sed -i -e s:/usr/local/qwt-${PV}:${D}${prefix}:g ${S}/*.pri
 }
 
 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}/
+       cd ${S}/examples
+       install -d ${D}/${bindir}
+       cd bin${QT_LIBINFIX}/
+       for i in * ; do
+               cp -pPR ${i} ${D}/${bindir}/${i}${QT_LIBINFIX}
+       done
 }
 
+PACKAGES_prepend = "${PN}-examples "
+FILES_${PN}-examples = "${bindir}/*"
+
index 15e767c..238a4fb 100644 (file)
@@ -5,3 +5,4 @@ require qwt.inc
 SRC_URI[qwt.md5sum] = "4a595b8db0ec3856b117836c1d60cb27"
 SRC_URI[qwt.sha256sum] = "e2b8bb755404cb3dc99e61f3e2d7262152193488f5fbe88524eb698e11ac569f"
 
+RPROVIDES_${PN}-dev = "libqwt-dev"
\ No newline at end of file