mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
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:
parent
14b8d3cf17
commit
6a17c90e96
40
meta-multimedia/recipes-multimedia/clight/clightd_5.9.bb
Normal file
40
meta-multimedia/recipes-multimedia/clight/clightd_5.9.bb
Normal 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"
|
||||
Loading…
Reference in New Issue
Block a user