meta-wayland/recipes-extended/ddcutil/ddcutil_git.bb

35 lines
1.2 KiB
BlitzBasic
Raw Normal View History

2022-07-01 17:07:43 +02:00
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"
2024-08-04 18:19:15 +02:00
DEPENDS = "i2c-tools glib-2.0 kmod jansson"
2022-07-01 17:07:43 +02:00
S = "${WORKDIR}/git"
2024-08-04 18:19:15 +02:00
PV = "2.1.4"
SRCREV = "ca610f91d5483e19bfdae88bb0094973cc81fc95"
2022-07-01 17:07:43 +02:00
inherit autotools pkgconfig gobject-introspection
2022-11-03 08:29:11 +01:00
EXTRA_OECONF:remove = '--enable-introspection'
2022-09-29 10:32:06 +02:00
CFLAGS += "-Wno-unused-but-set-variable"
2022-07-01 17:07:43 +02:00
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'drm x11 systemd', d)}"
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
}
2024-08-04 18:19:15 +02:00
FILES:${PN} += "${sysconfdir} ${libdir}/modules-load.d/ddcutil.conf"
2022-07-01 17:07:43 +02:00