summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@gmail.com>2017-11-30 09:10:26 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2017-12-20 08:17:35 +0000
commit1be652e5075bf3c65b521093556e9611c4a57541 (patch)
tree5b8d28c2312638b008da9f53921cfa9364e3ad96
parent1421787254c26d3fd4269630786b1fb1f1d078e7 (diff)
downloadmeta-qt5-1be652e5075bf3c65b521093556e9611c4a57541.tar.gz
qwt-qt5: rewrite completely
* install pkgconfig * fix examples * DESCRIPTION -> SUMMARY * overall cleanup Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--recipes-qt/qwt/qwt-qt5.inc48
-rw-r--r--recipes-qt/qwt/qwt-qt5/0001-Remove-rpath-from-binaries-they-point-to-buuild-area.patch69
-rw-r--r--recipes-qt/qwt/qwt-qt5/remove_rpath.patch17
-rw-r--r--recipes-qt/qwt/qwt-qt5_6.1.3.bb45
4 files changed, 112 insertions, 67 deletions
diff --git a/recipes-qt/qwt/qwt-qt5.inc b/recipes-qt/qwt/qwt-qt5.inc
deleted file mode 100644
index f3ece399..00000000
--- a/recipes-qt/qwt/qwt-qt5.inc
+++ /dev/null
@@ -1,48 +0,0 @@
1DESCRIPTION = "Qt Widget Extension for Technical Applications"
2SECTION = "libs"
3
4# LGPLv2.1 + some exceptions
5LICENSE = "QWTv1.0"
6LIC_FILES_CHKSUM = "file://COPYING;md5=dac2743472b0462ff3cfb4af42051c88"
7
8DEPENDS = "qtbase qtsvg qttools"
9
10SRC_URI = "${SOURCEFORGE_MIRROR}/qwt/qwt-${PV}.tar.bz2;name=qwt \
11 file://remove_rpath.patch \
12 "
13
14S = "${WORKDIR}/qwt-${PV}"
15
16do_configure_prepend() {
17 cd ${S}
18 sed -i -e 's:RELEASE_SUFFIX = :RELEASE_SUFFIX = ${QT_LIBINFIX}:' *.pri
19 sed -i -e 's:qtAddLibrary(qwt:qtAddLibrary(qwt)${QT_LIBINFIX}:g' *.prf
20 sed -e 's/# QWT_CONFIG += QwtExamples/QWT_CONFIG += QwtExamples/g' -i qwtconfig.pri
21 sed -i -e 's:/usr/local/qwt-$$QWT_VERSION:${D}${prefix}:g' ${S}/*.pri
22}
23
24do_install() {
25 cd ${S}
26 oe_runmake -e install
27# install -d ${D}${datadir}/doc/${PN}
28# mv ${D}${prefix}/doc/* ${D}${datadir}/doc/${PN}/
29# rmdir ${D}${prefix}/doc
30# cd ${S}/examples
31# install -d ${D}/${bindir}
32# cd bin${QT_LIBINFIX}/
33# for i in * ; do
34# cp -pPR ${i} ${D}/${bindir}/${i}${QT_LIBINFIX}
35# done
36# install -d ${D}${libdir}/${QT_DIR_NAME}
37# mv ${D}${prefix}/plugins ${D}${libdir}/${QT_DIR_NAME}
38}
39
40PACKAGES_prepend = "${PN}-examples ${PN}-features ${PN}-plugins "
41FILES_${PN}-examples = "${bindir}/*"
42FILES_${PN}-features = "${prefix}/features"
43FILES_${PN}-plugins = "${prefix}/plugins/designer/*.so"
44FILES_${PN}-dbg += "${prefix}/plugins/designer/.debug"
45FILES_${PN}-doc += "${prefix}/doc"
46
47INSANE_SKIP_${PN}-plugins += "libdir"
48INSANE_SKIP_${PN}-dbg += "libdir"
diff --git a/recipes-qt/qwt/qwt-qt5/0001-Remove-rpath-from-binaries-they-point-to-buuild-area.patch b/recipes-qt/qwt/qwt-qt5/0001-Remove-rpath-from-binaries-they-point-to-buuild-area.patch
new file mode 100644
index 00000000..fa63c347
--- /dev/null
+++ b/recipes-qt/qwt/qwt-qt5/0001-Remove-rpath-from-binaries-they-point-to-buuild-area.patch
@@ -0,0 +1,69 @@
1From ff950c71bf841a4d62952aac72f3c5a830cf9cff Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
3Date: Wed, 29 Nov 2017 22:31:07 +0100
4Subject: [PATCH] Remove rpath from binaries - they point to buuild area
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9This is a rework of the patch submitted by Khem Raj.
10
11Upstream-Status: Inappropriate [OE specific]
12
13Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
14---
15 designer/designer.pro | 1 -
16 examples/examples.pri | 1 -
17 playground/playground.pri | 1 -
18 qwt.prf | 1 -
19 4 files changed, 4 deletions(-)
20
21diff --git a/designer/designer.pro b/designer/designer.pro
22index 7d44a44..a11847d 100644
23--- a/designer/designer.pro
24+++ b/designer/designer.pro
25@@ -83,7 +83,6 @@ contains(QWT_CONFIG, QwtDesigner) {
26 # compile the path for finding the Qwt library
27 # into the plugin. Not supported on Windows !
28
29- QMAKE_RPATHDIR *= $${QWT_INSTALL_LIBS}
30 qwtAddLibrary($${QWT_OUT_ROOT}/lib, qwt)
31
32 contains(QWT_CONFIG, QwtDll) {
33diff --git a/examples/examples.pri b/examples/examples.pri
34index 200b188..b7776a8 100644
35--- a/examples/examples.pri
36+++ b/examples/examples.pri
37@@ -34,7 +34,6 @@ else {
38 }
39 }
40
41-QMAKE_RPATHDIR *= $${QWT_OUT_ROOT}/lib
42 qwtAddLibrary($${QWT_OUT_ROOT}/lib, qwt)
43
44 greaterThan(QT_MAJOR_VERSION, 4) {
45diff --git a/playground/playground.pri b/playground/playground.pri
46index c544360..fd0275f 100644
47--- a/playground/playground.pri
48+++ b/playground/playground.pri
49@@ -35,7 +35,6 @@ else {
50 }
51
52
53-QMAKE_RPATHDIR *= $${QWT_ROOT}/lib
54 qwtAddLibrary($${QWT_OUT_ROOT}/lib, qwt)
55
56 greaterThan(QT_MAJOR_VERSION, 4) {
57diff --git a/qwt.prf b/qwt.prf
58index 2625b31..7860153 100644
59--- a/qwt.prf
60+++ b/qwt.prf
61@@ -33,5 +33,4 @@ else {
62 INCLUDEPATH *= $${QWT_INSTALL_HEADERS}
63 }
64
65-# QMAKE_RPATHDIR *= $${QWT_INSTALL_LIBS}
66 qwtAddLibrary($${QWT_INSTALL_LIBS}, qwt)
67--
682.9.5
69
diff --git a/recipes-qt/qwt/qwt-qt5/remove_rpath.patch b/recipes-qt/qwt/qwt-qt5/remove_rpath.patch
deleted file mode 100644
index 14b65d6a..00000000
--- a/recipes-qt/qwt/qwt-qt5/remove_rpath.patch
+++ /dev/null
@@ -1,17 +0,0 @@
1Remove rpath from library, it points to build area which is not
2ok
3
4Signed-off-by: Khem Raj <raj.khem@gmail.com>
5
6Index: qwt-6.1.3/designer/designer.pro
7===================================================================
8--- qwt-6.1.3.orig/designer/designer.pro
9+++ qwt-6.1.3/designer/designer.pro
10@@ -83,7 +83,6 @@ contains(QWT_CONFIG, QwtDesigner) {
11 # compile the path for finding the Qwt library
12 # into the plugin. Not supported on Windows !
13
14- QMAKE_RPATHDIR *= $${QWT_INSTALL_LIBS}
15 qwtAddLibrary($${QWT_OUT_ROOT}/lib, qwt)
16
17 contains(QWT_CONFIG, QwtDll) {
diff --git a/recipes-qt/qwt/qwt-qt5_6.1.3.bb b/recipes-qt/qwt/qwt-qt5_6.1.3.bb
index 626bd0ab..1c6e10b7 100644
--- a/recipes-qt/qwt/qwt-qt5_6.1.3.bb
+++ b/recipes-qt/qwt/qwt-qt5_6.1.3.bb
@@ -1,8 +1,49 @@
1inherit qmake5 1SUMMARY = "Qt Widget Extension for Technical Applications"
2SECTION = "libs"
3HOMEPAGE = "http://qwt.sourceforge.net/index.html"
4
5# LGPLv2.1 + some exceptions
6LICENSE = "QWTv1.0"
7LIC_FILES_CHKSUM = "file://COPYING;md5=dac2743472b0462ff3cfb4af42051c88"
8
9DEPENDS = "qtbase qtsvg qttools"
2 10
3require qwt-qt5.inc 11inherit qmake5
4 12
13SRC_URI = " \
14 ${SOURCEFORGE_MIRROR}/qwt/qwt-${PV}.tar.bz2;name=qwt \
15 file://0001-Remove-rpath-from-binaries-they-point-to-buuild-area.patch \
16"
5SRC_URI[qwt.md5sum] = "19d1f5fa5e22054d22ee3accc37c54ba" 17SRC_URI[qwt.md5sum] = "19d1f5fa5e22054d22ee3accc37c54ba"
6SRC_URI[qwt.sha256sum] = "f3ecd34e72a9a2b08422fb6c8e909ca76f4ce5fa77acad7a2883b701f4309733" 18SRC_URI[qwt.sha256sum] = "f3ecd34e72a9a2b08422fb6c8e909ca76f4ce5fa77acad7a2883b701f4309733"
7 19
20S = "${WORKDIR}/qwt-${PV}"
21
22EXTRA_QMAKEVARS_PRE += " \
23 QWT_CONFIG+=QwtPkgConfig \
24 QWT_CONFIG+=QwtExamples \
25"
26
27do_configure_prepend() {
28 sed -i 's:/usr/local/qwt-$$QWT_VERSION:${prefix}:' ${S}/*.pri
29}
30
31do_install_append() {
32 # seems out of tree build confuses installation of examples
33 # so install them manually
34 install -d ${D}${bindir}/
35 cp ${B}/examples/bin/* ${D}${bindir}/
36}
37
38
39PACKAGES_prepend = "${PN}-examples ${PN}-features ${PN}-plugins "
40FILES_${PN}-examples = "${bindir}/*"
41FILES_${PN}-features = "${prefix}/features"
42FILES_${PN}-plugins = "${prefix}/plugins/designer/*.so"
43FILES_${PN}-dbg += "${prefix}/plugins/designer/.debug"
44FILES_${PN}-doc += "${prefix}/doc"
45
46INSANE_SKIP_${PN}-plugins += "libdir"
47INSANE_SKIP_${PN}-dbg += "libdir"
48
8RPROVIDES_${PN}-dev = "libqwt-qt5-dev" 49RPROVIDES_${PN}-dev = "libqwt-qt5-dev"