aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2010-10-31 19:28:36 +0100
committerEric Bénard <eric@eukrea.com>2010-11-01 14:22:31 +0100
commita9701212ca459be9712f50becf35416f2dac46ca (patch)
tree1bec2de1d3f1e2f93bf30282681a9a2bca5955fe
parent720ef414283749422517f2bdb5d884b08121e1cd (diff)
downloadopenembedded-a9701212ca459be9712f50becf35416f2dac46ca.zip
openembedded-a9701212ca459be9712f50becf35416f2dac46ca.tar.gz
openembedded-a9701212ca459be9712f50becf35416f2dac46ca.tar.bz2
qwt: add examples and fix -dev RPROVIDES
Signed-off-by: Eric Bénard <eric@eukrea.com> Acked-by: Koen Kooi <k-kooi@ti.com>
-rw-r--r--recipes/qwt/qwt-e_5.2.1.bb1
-rw-r--r--recipes/qwt/qwt.inc12
-rw-r--r--recipes/qwt/qwt_5.2.1.bb1
3 files changed, 13 insertions, 1 deletions
diff --git a/recipes/qwt/qwt-e_5.2.1.bb b/recipes/qwt/qwt-e_5.2.1.bb
index a9f3e38..2f55061 100644
--- a/recipes/qwt/qwt-e_5.2.1.bb
+++ b/recipes/qwt/qwt-e_5.2.1.bb
@@ -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
diff --git a/recipes/qwt/qwt.inc b/recipes/qwt/qwt.inc
index 98117fb..62c8656 100644
--- a/recipes/qwt/qwt.inc
+++ b/recipes/qwt/qwt.inc
@@ -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}/*"
+
diff --git a/recipes/qwt/qwt_5.2.1.bb b/recipes/qwt/qwt_5.2.1.bb
index 15e767c..238a4fb 100644
--- a/recipes/qwt/qwt_5.2.1.bb
+++ b/recipes/qwt/qwt_5.2.1.bb
@@ -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