From 7d3116962bd8dad327b30db068166407e4978443 Mon Sep 17 00:00:00 2001 From: capezotte Date: Thu, 27 Oct 2022 16:56:59 -0300 Subject: [PATCH] Introduce basu as an option for MPRIS control --- configure | 4 +++- mpris.c | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 539df900..f04f66a1 100755 --- a/configure +++ b/configure @@ -315,7 +315,9 @@ check_vorbis() check_libsystemd() { - pkg_config LIBSYSTEMD "libsystemd" || pkg_config LIBSYSTEMD "libelogind >= 239.3" + pkg_config LIBSYSTEMD "libsystemd" || pkg_config LIBSYSTEMD "libelogind >= 239.3" || { + pkg_config LIBSYSTEMD "basu" && CFLAGS="${CFLAGS} -DCONFIG_MPRIS_BASU" + } return $? } diff --git a/mpris.c b/mpris.c index af027dc6..3eae2ba9 100644 --- a/mpris.c +++ b/mpris.c @@ -15,7 +15,11 @@ * along with this program; if not, see . */ +#ifdef CONFIG_MPRIS_BASU +#include +#else #include +#endif #include "mpris.h" #include "ui_curses.h"