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>
This commit is contained in:
LI Qingwu 2025-08-15 11:57:34 +08:00 committed by Khem Raj
parent 14b8d3cf17
commit 6a17c90e96
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -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"