diff options
| author | LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn> | 2025-08-15 11:57:34 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-08-18 17:58:58 -0700 |
| commit | 6a17c90e96919de0b3d7d970b88a4098b3bf33bc (patch) | |
| tree | b6a1ef024332cacac3b5eccc5b572187a7c0bb3f /meta-multimedia | |
| parent | 14b8d3cf1777d85104f5bc62dc243678f047fcfc (diff) | |
| download | meta-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.bb | 40 |
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 @@ | |||
| 1 | SUMMARY = "D-Bus service providing screen management and ambient light detection" | ||
| 2 | HOMEPAGE = "https://github.com/FedeDP/clightd" | ||
| 3 | SECTION = "utils" | ||
| 4 | |||
| 5 | LICENSE = "GPL-3.0-only" | ||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
| 7 | |||
| 8 | |||
| 9 | SRCREV = "d4e88b1d351d61151c99a399abd526d9b7dda12d" | ||
| 10 | SRC_URI = "git://github.com/FedeDP/${BPN};protocol=https;branch=master;tag=${PV} \ | ||
| 11 | " | ||
| 12 | |||
| 13 | inherit cmake pkgconfig systemd features_check | ||
| 14 | |||
| 15 | REQUIRED_DISTRO_FEATURES = "polkit systemd" | ||
| 16 | |||
| 17 | DEPENDS += "\ | ||
| 18 | dbus \ | ||
| 19 | libiio \ | ||
| 20 | libjpeg-turbo \ | ||
| 21 | libmodule \ | ||
| 22 | polkit \ | ||
| 23 | systemd \ | ||
| 24 | udev \ | ||
| 25 | " | ||
| 26 | |||
| 27 | PACKAGECONFIG ??= "" | ||
| 28 | |||
| 29 | PACKAGECONFIG[dpms] = "-DENABLE_DPMS=1,-DENABLE_DPMS=0,libx11 xext libdrm wayland" | ||
| 30 | PACKAGECONFIG[gamma] = "-DENABLE_GAMMA=1,-DENABLE_GAMMA=0,libx11 xrandr libdrm wayland" | ||
| 31 | PACKAGECONFIG[pipewire] = "-DENABLE_PIPEWIRE=1,-DENABLE_PIPEWIRE=0,pipewire" | ||
| 32 | PACKAGECONFIG[screen] = "-DENABLE_SCREEN=1,-DENABLE_SCREEN=0,libx11" | ||
| 33 | PACKAGECONFIG[yoctolight] = "-DENABLE_YOCTOLIGHT=1,-DENABLE_YOCTOLIGHT=0,libusb1" | ||
| 34 | |||
| 35 | FILES:${PN} += " \ | ||
| 36 | ${libdir}/* \ | ||
| 37 | ${datadir}/* \ | ||
| 38 | " | ||
| 39 | |||
| 40 | SYSTEMD_SERVICE:${PN} += "clightd.service" | ||
