libgtop: fix build without x11

add PACKAGECONFIG for xauth and make it dependent on x11 in DISTRO_FEATURES

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Markus Volk 2026-01-23 09:47:53 +01:00 committed by Khem Raj
parent e8dbc52097
commit fa3d891a25
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -11,4 +11,7 @@ SRC_URI[archive.sha256sum] = "775676df958e2ea2452f7568f28b2ea581063d312773dd5c0b
UPSTREAM_CHECK_REGEX = "libgtop-(?P<pver>\d+(\.\d+)+).tar"
DEPENDS = "glib-2.0 libxau"
DEPENDS = "glib-2.0"
PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES','x11','xauth','',d)}"
PACKAGECONFIG[xauth] = ",,libxau"