From 3633c7d6b814703442630378f4de5ceabfdc08dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Sat, 16 Mar 2019 22:29:40 +0100 Subject: [PATCH] qcustomplot: add for polyphone MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- .../qcustomplot/files/qcustomplot-qt5.pc | 7 +++ .../qcustomplot/qcustomplot_1.3.2.bb | 45 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 recipes-support/qcustomplot/files/qcustomplot-qt5.pc create mode 100644 recipes-support/qcustomplot/qcustomplot_1.3.2.bb diff --git a/recipes-support/qcustomplot/files/qcustomplot-qt5.pc b/recipes-support/qcustomplot/files/qcustomplot-qt5.pc new file mode 100644 index 0000000..254dc3f --- /dev/null +++ b/recipes-support/qcustomplot/files/qcustomplot-qt5.pc @@ -0,0 +1,7 @@ +libdir=%libdir% +includedir=%includedir% + +Name: qcustomplot-qt5 +Version: 2.0.0-beta +Cflags: -I${includedir} +Libs: -L${libdir} -lqcustomplot diff --git a/recipes-support/qcustomplot/qcustomplot_1.3.2.bb b/recipes-support/qcustomplot/qcustomplot_1.3.2.bb new file mode 100644 index 0000000..e727ce5 --- /dev/null +++ b/recipes-support/qcustomplot/qcustomplot_1.3.2.bb @@ -0,0 +1,45 @@ +SUMMARY = "QCustomPlot is a Qt C++ widget for plotting and data visualization" +LICENSE = "GPLv3" +LIC_FILES_CHKSUM = "file://GPL.txt;md5=d32239bcb673463ab874e80d47fae504" + +# At the beginning we had to go backwards +PE = "1" + +DEPENDS += " \ + qtbase \ +" +SRC_URI = " \ + http://www.qcustomplot.com/release/${PV}/QCustomPlot-source.tar.gz;name=source \ + http://www.qcustomplot.com/release/${PV}/QCustomPlot-sharedlib.tar.gz;name=pro \ + file://qcustomplot-qt5.pc \ +" +SRC_URI[source.md5sum] = "1f673ac2347bebafa93e735550ca4303" +SRC_URI[source.sha256sum] = "a3649824c6d2d08efb0b54629e6ffe4cc57fa08ad9eb9f39edbb0c30b9659b51" + +SRC_URI[pro.md5sum] = "82955a71538b18c23a320047ac32eace" +SRC_URI[pro.sha256sum] = "18af836d2ac32f0dc2a4b1485c3038f4f5f3acf07550d86077ba5871e54bb269" + +S = "${WORKDIR}/qcustomplot-source" + +inherit qmake5 + +do_configure_prepend() { + cp ${WORKDIR}/qcustomplot-sharedlib/sharedlib-compilation/sharedlib-compilation.pro ${S} + sed -i 's:../../qcustomplot:qcustomplot:g' ${S}/sharedlib-compilation.pro +} + +do_install() { + install -d ${D}${libdir} + cp -d ${B}/libqcustomplot.so* ${D}${libdir} + + install -d ${D}${libdir}/pkgconfig + install -m 0644 ${WORKDIR}/qcustomplot-qt5.pc ${D}${libdir}/pkgconfig/ + sed -i \ + -e 's:%libdir%:${libdir}:g' \ + -e 's:%includedir%:${includedir}:g' \ + ${D}${libdir}/pkgconfig/qcustomplot-qt5.pc + + install -d ${D}${includedir} + install -m 0644 ${S}/qcustomplot.h ${D}${includedir}/ +} +