summaryrefslogtreecommitdiffstats
path: root/meta-multimedia
diff options
context:
space:
mode:
authorLI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>2025-08-15 11:57:34 +0800
committerKhem Raj <raj.khem@gmail.com>2025-08-18 17:58:58 -0700
commit6a17c90e96919de0b3d7d970b88a4098b3bf33bc (patch)
treeb6a1ef024332cacac3b5eccc5b572187a7c0bb3f /meta-multimedia
parent14b8d3cf1777d85104f5bc62dc243678f047fcfc (diff)
downloadmeta-openembedded-6a17c90e96919de0b3d7d970b88a4098b3bf33bc.tar.gz
clightd:add recipe
Clightd is a bus interface that lets you easily set/get screen brightness, gamma temperature and display dpms state. Moreover, it enables getting ambient brightness through webcam frames capture or ALS devices. Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-multimedia')
-rw-r--r--meta-multimedia/recipes-multimedia/clight/clightd_5.9.bb40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/clight/clightd_5.9.bb b/meta-multimedia/recipes-multimedia/clight/clightd_5.9.bb
new file mode 100644
index 0000000000..037b94c3a2
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/clight/clightd_5.9.bb
@@ -0,0 +1,40 @@
1SUMMARY = "D-Bus service providing screen management and ambient light detection"
2HOMEPAGE = "https://github.com/FedeDP/clightd"
3SECTION = "utils"
4
5LICENSE = "GPL-3.0-only"
6LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
7
8
9SRCREV = "d4e88b1d351d61151c99a399abd526d9b7dda12d"
10SRC_URI = "git://github.com/FedeDP/${BPN};protocol=https;branch=master;tag=${PV} \
11"
12
13inherit cmake pkgconfig systemd features_check
14
15REQUIRED_DISTRO_FEATURES = "polkit systemd"
16
17DEPENDS += "\
18 dbus \
19 libiio \
20 libjpeg-turbo \
21 libmodule \
22 polkit \
23 systemd \
24 udev \
25"
26
27PACKAGECONFIG ??= ""
28
29PACKAGECONFIG[dpms] = "-DENABLE_DPMS=1,-DENABLE_DPMS=0,libx11 xext libdrm wayland"
30PACKAGECONFIG[gamma] = "-DENABLE_GAMMA=1,-DENABLE_GAMMA=0,libx11 xrandr libdrm wayland"
31PACKAGECONFIG[pipewire] = "-DENABLE_PIPEWIRE=1,-DENABLE_PIPEWIRE=0,pipewire"
32PACKAGECONFIG[screen] = "-DENABLE_SCREEN=1,-DENABLE_SCREEN=0,libx11"
33PACKAGECONFIG[yoctolight] = "-DENABLE_YOCTOLIGHT=1,-DENABLE_YOCTOLIGHT=0,libusb1"
34
35FILES:${PN} += " \
36 ${libdir}/* \
37 ${datadir}/* \
38"
39
40SYSTEMD_SERVICE:${PN} += "clightd.service"