diff options
Diffstat (limited to 'dynamic-layers/openembedded-layer')
-rw-r--r-- | dynamic-layers/openembedded-layer/recipes-core/librealsense/librealsense_2.29.0.bb | 28 |
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 @@ | |||
1 | SUMMARY = "Intel® RealSense™ SDK" | ||
2 | HOMEPAGE = "https://www.intelrealsense.com/" | ||
3 | DESCRIPTION = "Intel® RealSense™ SDK 2.0 is a cross-platform library for \ | ||
4 | Intel® RealSense™ depth cameras (D400 series and the SR300) and the T265 \ | ||
5 | tracking camera" | ||
6 | LICENSE = "Apache-2.0" | ||
7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=a1692f06943fa281fd047a22d7e10800" | ||
8 | SECTION = "lib" | ||
9 | |||
10 | inherit pkgconfig cmake | ||
11 | |||
12 | S = "${WORKDIR}/git" | ||
13 | SRC_URI = "git://github.com/IntelRealSense/librealsense.git" | ||
14 | SRCREV = "5096aab40c71bfa2bebd17e4ace5f6678587b889" | ||
15 | |||
16 | EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=Release" | ||
17 | EXTRA_OECMAKE += "-DBUILD_EXAMPLES=true" | ||
18 | EXTRA_OECMAKE += "-DBUILD_GRAPHICAL_EXAMPLES=${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'true', 'false', d)}" | ||
19 | EXTRA_OECMAKE += "-DBUILD_WITH_TM2=false" | ||
20 | EXTRA_OECMAKE += "-DUSE_SYSTEM_LIBUSB=true" | ||
21 | |||
22 | do_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 | |||
27 | DEPENDS = "udev libusb1" | ||
28 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'libpng libglu glfw gtk+3', '', d)}" | ||