From 59b247ee666b5c74dd09af0726d2ef2f1da671d1 Mon Sep 17 00:00:00 2001 From: Lukas Rusak Date: Tue, 17 May 2022 11:23:38 -0700 Subject: [PATCH] image: add PIPEWIRE_SUPPORT option --- distributions/LibreELEC/options | 3 +++ packages/virtual/image/package.mk | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/distributions/LibreELEC/options b/distributions/LibreELEC/options index 21fa8499fc..81d034a265 100644 --- a/distributions/LibreELEC/options +++ b/distributions/LibreELEC/options @@ -87,6 +87,9 @@ # build and install PulseAudio support (yes / no) PULSEAUDIO_SUPPORT="yes" +# build and install pipewire support (yes / no) + PIPEWIRE_SUPPORT="no" + # build and install eSpeak-NG support (yes / no) ESPEAK_SUPPORT="no" diff --git a/packages/virtual/image/package.mk b/packages/virtual/image/package.mk index ddd47a266f..f8f22d74d7 100644 --- a/packages/virtual/image/package.mk +++ b/packages/virtual/image/package.mk @@ -19,6 +19,12 @@ PKG_LONGDESC="Root package used to build and create complete image" [ "${PULSEAUDIO_SUPPORT}" = "yes" ] && PKG_DEPENDS_TARGET+=" pulseaudio" +[ "${PIPEWIRE_SUPPORT}" = "yes" ] && PKG_DEPENDS_TARGET+=" pipewire wireplumber" + +if [ "${PULSEAUDIO_SUPPORT}" = "yes" -a "${PIPEWIRE_SUPPORT}" = "yes" ]; then + die "PULSEAUDIO_SUPPORT and PIPEWIRE_SUPPORT cannot be enabled together" +fi + # Automounter support [ "${UDEVIL}" = "yes" ] && PKG_DEPENDS_TARGET+=" udevil"