Files
meta-kde/recipes-support/ddcutil_git.bb
Marc Ferland b34e284eae ddcutil: disable build timestamps
To help in reproducible builds.

Signed-off-by: Marc Ferland <marc.ferland@sonatest.com>
2025-08-29 10:28:56 -04:00

37 lines
1.2 KiB
BlitzBasic

SUMMARY = "ddcutil is a Linux program for querying and changing monitor settings, such as brightness and color levels."
HOMEPAGE = "https://github.com/rockowitz/ddcutil"
SECTION = "libs"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
SRC_URI = " \
git://github.com/rockowitz/ddcutil.git;protocol=https;branch=master \
file://0001-Fix-out-of-tree-build.patch \
"
DEPENDS = "i2c-tools glib-2.0 kmod jansson"
S = "${WORKDIR}/git"
PV = "2.2.1"
SRCREV = "0b26bbec67b09b5ab594a06de8bbbdea621e8628"
inherit autotools pkgconfig
CFLAGS += "-Wno-unused-but-set-variable"
EXTRA_OECONF += "--enable-build-timestamp=no"
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11 systemd', d)} drm"
PACKAGECONFIG[drm] = "--enable-drm=yes,--enable-drm=no,libdrm"
PACKAGECONFIG[systemd] = "--enable-udev=yes,--enable-udev=no,udev"
PACKAGECONFIG[usb] = "--enable-usb=yes,--enable-usb=no,libusb1"
PACKAGECONFIG[x11] = "--enable-x11=yes,--enable-x11=no,libx11 xrandr"
do_install:append () {
install -d ${D}${sysconfdir}/udev/rules.d
cp -rf ${D}${datadir}/ddcutil/data/* ${D}${sysconfdir}/udev/rules.d
}
FILES:${PN} += "${sysconfdir} ${libdir}/modules-load.d/ddcutil.conf"