From 6a17c90e96919de0b3d7d970b88a4098b3bf33bc Mon Sep 17 00:00:00 2001 From: LI Qingwu Date: Fri, 15 Aug 2025 11:57:34 +0800 Subject: [PATCH] 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 Signed-off-by: Khem Raj --- .../recipes-multimedia/clight/clightd_5.9.bb | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 meta-multimedia/recipes-multimedia/clight/clightd_5.9.bb 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 @@ +SUMMARY = "D-Bus service providing screen management and ambient light detection" +HOMEPAGE = "https://github.com/FedeDP/clightd" +SECTION = "utils" + +LICENSE = "GPL-3.0-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" + + +SRCREV = "d4e88b1d351d61151c99a399abd526d9b7dda12d" +SRC_URI = "git://github.com/FedeDP/${BPN};protocol=https;branch=master;tag=${PV} \ +" + +inherit cmake pkgconfig systemd features_check + +REQUIRED_DISTRO_FEATURES = "polkit systemd" + +DEPENDS += "\ + dbus \ + libiio \ + libjpeg-turbo \ + libmodule \ + polkit \ + systemd \ + udev \ +" + +PACKAGECONFIG ??= "" + +PACKAGECONFIG[dpms] = "-DENABLE_DPMS=1,-DENABLE_DPMS=0,libx11 xext libdrm wayland" +PACKAGECONFIG[gamma] = "-DENABLE_GAMMA=1,-DENABLE_GAMMA=0,libx11 xrandr libdrm wayland" +PACKAGECONFIG[pipewire] = "-DENABLE_PIPEWIRE=1,-DENABLE_PIPEWIRE=0,pipewire" +PACKAGECONFIG[screen] = "-DENABLE_SCREEN=1,-DENABLE_SCREEN=0,libx11" +PACKAGECONFIG[yoctolight] = "-DENABLE_YOCTOLIGHT=1,-DENABLE_YOCTOLIGHT=0,libusb1" + +FILES:${PN} += " \ + ${libdir}/* \ + ${datadir}/* \ +" + +SYSTEMD_SERVICE:${PN} += "clightd.service"