aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-qt/nonworking/qcanobserver/qcanobserver_svn.bb
blob: 4b566f7a3364a341024e3671abf259c38a4ba27a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
SUMMARY = "The Linux CAN Sniffer"

LICENSE = "GPLv3+"
LIC_FILES_CHKSUM = "file://modeltest/LICENSE.GPL;md5=34337af480a8c452bfafe22a78fa20cb"

inherit qt4x11

DEPENDS += "qwt"

PV = "0.5+svnr${SRCPV}"
SRCREV = "48"
SRC_URI = "svn://qcanobserver.svn.sourceforge.net/svnroot;module=qcanobserver;protocol=https \
           file://0001-messagebufferinterface.cpp-add-sys-socket.h-as-inclu.patch \
           file://0002-qconsole-writethread-gcc-4.5-fixes.patch  \
           file://candemo.xml"

S = "${WORKDIR}/qcanobserver/"

CXXFLAGS += " -DPF_CAN=29  -DAF_CAN=PF_CAN"

do_configure_prepend() {
    sed -i -e s:/usr/include/qwt5/:${STAGING_INCDIR}:g -e 's:-L/usr/lib/:-L${STAGING_DIR_TARGET}/lib -ldl:g' *.pro
}

do_configure_append() {
    sed -i -e s:-L/usr/lib::g Makefile
}

do_install() {
    install -d ${D}${datadir}/qcanobserver
    install -d ${D}${datadir}/qcanobserver/cfg
    install -d ${D}${datadir}/qcanobserver/lib
    install -d ${D}${datadir}/qcanobserver/db

    install -m 0755 ${S}/QCanObserver ${D}${datadir}/qcanobserver

    install -m 0644 ${WORKDIR}/candemo.xml ${D}${datadir}/qcanobserver/db
    install -m 0644 ${S}/db/*.xml ${D}${datadir}/qcanobserver/db
}

FILES_${PN}-dbg += "${datadir}/qcanobserver/.debug"