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" 10 11COMPATIBLE_HOST:toolchain-clang:riscv32 = "null" 12COMPATIBLE_HOST:toolchain-clang:riscv64 = "null" 13 14inherit qmake5 15 16SRC_URI = " \ 17 ${SOURCEFORGE_MIRROR}/qwt/qwt-${PV}.tar.bz2;name=qwt \ 18 file://0001-Remove-rpath-from-binaries-they-point-to-buuild-area.patch \ 19" 20SRC_URI[qwt.sha256sum] = "4076de63ec2b5e84379ddfebf27c7b29b8dc9074f3db7e2ca61d11a1d8adc041" 21 22S = "${WORKDIR}/qwt-${PV}" 23 24EXTRA_QMAKEVARS_PRE += " \ 25 QWT_CONFIG+=QwtPkgConfig \ 26 QWT_CONFIG+=QwtExamples \ 27" 28 29do_configure:prepend() { 30 sed -i \ 31 -e 's:/usr/local/qwt-$$QWT_VERSION:${prefix}:' \ 32 -e 's:^QWT_INSTALL_LIBS.*:QWT_INSTALL_LIBS = ${libdir}:' \ 33 ${S}/*.pri 34 export QWT_INSTALL_LIBS=${libdir} 35} 36 37do_install:append() { 38 # seems out of tree build confuses installation of examples 39 # so install them manually 40 install -d ${D}${bindir}/ 41 cp ${B}/examples/bin/* ${D}${bindir}/ 42} 43 44 45PACKAGES:prepend = "${PN}-examples ${PN}-features ${PN}-plugins " 46FILES:${PN}-examples = "${bindir}/*" 47FILES:${PN}-features = "${prefix}/features" 48FILES:${PN}-plugins = "${prefix}/plugins/designer/*.so" 49FILES:${PN}-doc += "${prefix}/doc" 50 51INSANE_SKIP:${PN}-plugins += "libdir" 52INSANE_SKIP:${PN}-dbg += "libdir" 53 54RPROVIDES:${PN}-dev = "libqwt-qt5-dev" 55