summaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3-adas/recipes-support/spacenav/spacenavd_0.6.bb
diff options
context:
space:
mode:
authorVladimir Barinov <vladimir.barinov@cogentembedded.com>2017-09-14 09:21:52 +0300
committerVladimir Barinov <vladimir.barinov@cogentembedded.com>2017-09-14 09:21:52 +0300
commit289fbd4f83543451323d6ce275fad1b5a85b61f1 (patch)
tree02310521c3426cad6b9c9f7321a26509d47044c4 /meta-rcar-gen3-adas/recipes-support/spacenav/spacenavd_0.6.bb
Initial commit for ADAS boards support in 2.23.0
Diffstat (limited to 'meta-rcar-gen3-adas/recipes-support/spacenav/spacenavd_0.6.bb')
-rw-r--r--meta-rcar-gen3-adas/recipes-support/spacenav/spacenavd_0.6.bb39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-rcar-gen3-adas/recipes-support/spacenav/spacenavd_0.6.bb b/meta-rcar-gen3-adas/recipes-support/spacenav/spacenavd_0.6.bb
new file mode 100644
index 0000000..943aa9a
--- /dev/null
+++ b/meta-rcar-gen3-adas/recipes-support/spacenav/spacenavd_0.6.bb
@@ -0,0 +1,39 @@
+SUMMARY = "Userspace library to SpaceNavigator 3D-mouse"
+SECTION = "libs/multimedia"
+LICENSE = "GPLv3"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
+
+BBCLASSEXTEND = "native nativesdk"
+
+SRC_URI = " \
+ file://spacenavd-0.6.tar.gz \
+ file://0001-spacenavd-cross-compile.patch \
+ file://0002-Fix-build-configuration.patch \
+"
+
+SRC_URI[md5sum] = "7e2c04fb8dbb7d39b9ee7b64565e0c4f"
+SRC_URI[sha256sum] = "c2d203bf96c5a959590146a43fe5d6e5e8c5c38a8b2f55aa199d967d0d88d0ab"
+
+S = "${WORKDIR}/spacenavd-${PV}"
+B = "${S}"
+
+inherit autotools pkgconfig useradd systemd
+
+# Don't configure udev by default since it will cause a circular
+# dependecy with udev package, which depends on libusb
+EXTRA_OECONF = " --disable-x11"
+
+SRC_URI_append = " file://spacenavd.service"
+
+SYSTEMD_SERVICE_${PN} = "spacenavd.service"
+
+USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM_${PN} = "--system spacenavd"
+
+do_install_append() {
+ if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
+ install -d ${D}${systemd_unitdir}/system/
+ install -m 0644 ${WORKDIR}/spacenavd.service ${D}${systemd_unitdir}/system/
+ fi
+}
+