diff options
Diffstat (limited to 'meta-oe/recipes-qt/qcanobserver/qcanobserver_svn.bb')
-rw-r--r-- | meta-oe/recipes-qt/qcanobserver/qcanobserver_svn.bb | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-oe/recipes-qt/qcanobserver/qcanobserver_svn.bb b/meta-oe/recipes-qt/qcanobserver/qcanobserver_svn.bb new file mode 100644 index 000000000..9d8f4a31b --- /dev/null +++ b/meta-oe/recipes-qt/qcanobserver/qcanobserver_svn.bb | |||
@@ -0,0 +1,41 @@ | |||
1 | DESCRIPTION = "The Linux CAN Sniffer" | ||
2 | |||
3 | LICENSE = "GPLv3+" | ||
4 | LIC_FILES_CHKSUM = "file://modeltest/LICENSE.GPL;md5=34337af480a8c452bfafe22a78fa20cb" | ||
5 | |||
6 | inherit qt4x11 | ||
7 | |||
8 | DEPENDS += "qwt" | ||
9 | |||
10 | PV = "0.5+svnr${SRCPV}" | ||
11 | SRCREV = "48" | ||
12 | SRC_URI = "svn://qcanobserver.svn.sourceforge.net/svnroot;module=qcanobserver;proto=https \ | ||
13 | file://0001-messagebufferinterface.cpp-add-sys-socket.h-as-inclu.patch \ | ||
14 | file://0002-qconsole-writethread-gcc-4.5-fixes.patch \ | ||
15 | file://candemo.xml" | ||
16 | |||
17 | S = "${WORKDIR}/qcanobserver/" | ||
18 | |||
19 | CXXFLAGS += " -DPF_CAN=29 -DAF_CAN=PF_CAN" | ||
20 | |||
21 | do_configure_prepend() { | ||
22 | sed -i -e s:/usr/include/qwt5/:${STAGING_INCDIR}:g -e 's:-L/usr/lib/:-L${STAGING_DIR_TARGET}/lib -ldl:g' *.pro | ||
23 | } | ||
24 | |||
25 | do_configure_append() { | ||
26 | sed -i -e s:-L/usr/lib::g Makefile | ||
27 | } | ||
28 | |||
29 | do_install() { | ||
30 | install -d ${D}${datadir}/qcanobserver | ||
31 | install -d ${D}${datadir}/qcanobserver/cfg | ||
32 | install -d ${D}${datadir}/qcanobserver/lib | ||
33 | install -d ${D}${datadir}/qcanobserver/db | ||
34 | |||
35 | install -m 0755 ${S}/QCanObserver ${D}${datadir}/qcanobserver | ||
36 | |||
37 | install -m 0644 ${WORKDIR}/candemo.xml ${D}${datadir}/qcanobserver/db | ||
38 | install -m 0644 ${S}/db/*.xml ${D}${datadir}/qcanobserver/db | ||
39 | } | ||
40 | |||
41 | FILES_${PN}-dbg += "${datadir}/qcanobserver/.debug" | ||