summaryrefslogtreecommitdiffstats
path: root/meta-multimedia/recipes-multimedia/clight/clightd_5.9.bb
blob: 037b94c3a22f7ba121f9668e1e5a81542ad85283 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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"