qcanobserver-socketcan: import from OE Classic with updates
authorKoen Kooi <koen@dominion.thruhere.net>
Mon, 14 Nov 2011 15:22:31 +0000 (16:22 +0100)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:16:38 +0000 (08:16 -0800)
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-oe/recipes-qt/qcanobserver/qcanobserver-socketcan_svn.bb [new file with mode: 0644]

diff --git a/meta-openembedded/meta-oe/recipes-qt/qcanobserver/qcanobserver-socketcan_svn.bb b/meta-openembedded/meta-oe/recipes-qt/qcanobserver/qcanobserver-socketcan_svn.bb
new file mode 100644 (file)
index 0000000..c636128
--- /dev/null
@@ -0,0 +1,30 @@
+DESCRIPTION = "The Linux CAN Sniffer - SocketCAN driver"
+
+LICENSE = "GPLv3+"
+LIC_FILES_CHKSUM = "file://../../../modeltest/LICENSE.GPL;md5=34337af480a8c452bfafe22a78fa20cb"
+
+inherit qt4x11
+
+DEPENDS += "qwt libsocketcan"
+
+PV = "0.5+svnr${SRCPV}"
+SRCREV = "48"
+SRC_URI = "svn://qcanobserver.svn.sourceforge.net/svnroot;module=qcanobserver;proto=https"
+
+S = "${WORKDIR}/qcanobserver/DeviceLib/linux/SocketCAN"
+
+CXXFLAGS += " -DPF_CAN=29  -DAF_CAN=PF_CAN"
+
+do_configure_prepend() {
+       sed -i s:/usr/include/qwt5/:${STAGING_INCDIR}:g *.pro
+}
+
+do_install() {
+       install -d ${D}${datadir}/qcanobserver/lib
+
+       install -m 0755 ${S}/lib* ${D}${datadir}/qcanobserver/lib/
+}
+
+FILES_${PN} += "${datadir}/qcanobserver/lib"
+FILES_${PN}-dbg += "${datadir}/qcanobserver/lib/.debug"
+