From: Peter Seiderer Date: Mon, 9 Nov 2020 23:13:56 +0000 (+0100) Subject: package/webkitgtk: add optional systemd dependency X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9eded3afc3c3459edc7d7cab7ff143b43716c13b;p=buildroot.git package/webkitgtk: add optional systemd dependency - systemd support/USE_SYSTEMD option was added since 2.30.0, so add an optional dependency Fixes: -- Could NOT find Systemd (missing: Systemd_LIBRARY Systemd_INCLUDE_DIR) CMake Error at Source/cmake/OptionsGTK.cmake:425 (message): libsystemd is needed for USE_SYSTEMD Reported-by: C Larbi Signed-off-by: Peter Seiderer Acked-by: Adrian Perez de Castro Signed-off-by: Peter Korsgaard --- diff --git a/package/webkitgtk/webkitgtk.mk b/package/webkitgtk/webkitgtk.mk index 5209eeed2d..84078f8b9a 100644 --- a/package/webkitgtk/webkitgtk.mk +++ b/package/webkitgtk/webkitgtk.mk @@ -104,6 +104,13 @@ else WEBKITGTK_CONF_OPTS += -DUSE_GSTREAMER_GL=OFF endif +ifeq ($(BR2_INIT_SYSTEMD),y) +WEBKITGTK_CONF_OPTS += -DUSE_SYSTEMD=ON +WEBKITGTK_DEPENDENCIES += systemd +else +WEBKITGTK_CONF_OPTS += -DUSE_SYSTEMD=OFF +endif + # JIT is not supported for MIPS r6, but the WebKit build system does not # have a check for these processors. The same goes for ARMv5 and ARMv6. # Disable JIT forcibly here and use the CLoop interpreter instead.