summaryrefslogtreecommitdiffstats
path: root/dynamic-layers/openembedded-layer
diff options
context:
space:
mode:
Diffstat (limited to 'dynamic-layers/openembedded-layer')
-rw-r--r--dynamic-layers/openembedded-layer/recipes-core/librealsense/librealsense_2.29.0.bb28
1 files changed, 28 insertions, 0 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-core/librealsense/librealsense_2.29.0.bb b/dynamic-layers/openembedded-layer/recipes-core/librealsense/librealsense_2.29.0.bb
new file mode 100644
index 00000000..cdf7d022
--- /dev/null
+++ b/dynamic-layers/openembedded-layer/recipes-core/librealsense/librealsense_2.29.0.bb
@@ -0,0 +1,28 @@
1SUMMARY = "Intel® RealSense™ SDK"
2HOMEPAGE = "https://www.intelrealsense.com/"
3DESCRIPTION = "Intel® RealSense™ SDK 2.0 is a cross-platform library for \
4Intel® RealSense™ depth cameras (D400 series and the SR300) and the T265 \
5tracking camera"
6LICENSE = "Apache-2.0"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=a1692f06943fa281fd047a22d7e10800"
8SECTION = "lib"
9
10inherit pkgconfig cmake
11
12S = "${WORKDIR}/git"
13SRC_URI = "git://github.com/IntelRealSense/librealsense.git"
14SRCREV = "5096aab40c71bfa2bebd17e4ace5f6678587b889"
15
16EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=Release"
17EXTRA_OECMAKE += "-DBUILD_EXAMPLES=true"
18EXTRA_OECMAKE += "-DBUILD_GRAPHICAL_EXAMPLES=${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'true', 'false', d)}"
19EXTRA_OECMAKE += "-DBUILD_WITH_TM2=false"
20EXTRA_OECMAKE += "-DUSE_SYSTEM_LIBUSB=true"
21
22do_install_append() {
23 install -d ${D}${sysconfdir}/udev/rules.d
24 install -m 0644 ${S}/config/99-realsense-libusb.rules ${D}${sysconfdir}/udev/rules.d/99-${BPN}-libusb.rules
25}
26
27DEPENDS = "udev libusb1"
28DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'libpng libglu glfw gtk+3', '', d)}"