mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07:49 +00:00
kodi: add pipewire support
This commit is contained in:
parent
59b247ee66
commit
7e487b9d0f
@ -144,6 +144,9 @@
|
|||||||
# build kodi with pulseaudio support (yes/no)
|
# build kodi with pulseaudio support (yes/no)
|
||||||
KODI_PULSEAUDIO_SUPPORT="yes"
|
KODI_PULSEAUDIO_SUPPORT="yes"
|
||||||
|
|
||||||
|
# build kodi with pipewire support (yes/no)
|
||||||
|
KODI_PIPEWIRE_SUPPORT="no"
|
||||||
|
|
||||||
### KODI ADDONS ###
|
### KODI ADDONS ###
|
||||||
|
|
||||||
# Distribution Specific source location
|
# Distribution Specific source location
|
||||||
|
@ -66,6 +66,17 @@ configure_package() {
|
|||||||
PKG_DEPENDS_TARGET+=" espeak-ng"
|
PKG_DEPENDS_TARGET+=" espeak-ng"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${KODI_PIPEWIRE_SUPPORT}" = yes ]; then
|
||||||
|
PKG_DEPENDS_TARGET+=" pipewire"
|
||||||
|
KODI_PIPEWIRE="-DENABLE_PIPEWIRE=ON"
|
||||||
|
|
||||||
|
if [ "${KODI_PULSEAUDIO_SUPPORT}" = "yes" -o "${KODI_ALSA_SUPPORT}" = "yes" ]; then
|
||||||
|
die "KODI_PULSEAUDIO_SUPPORT and KODI_ALSA_SUPPORT cannot be used with KODI_PIPEWIRE_SUPPORT"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
KODI_PIPEWIRE="-DENABLE_PIPEWIRE=OFF"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${CEC_SUPPORT}" = yes ]; then
|
if [ "${CEC_SUPPORT}" = yes ]; then
|
||||||
PKG_DEPENDS_TARGET+=" libcec"
|
PKG_DEPENDS_TARGET+=" libcec"
|
||||||
KODI_CEC="-DENABLE_CEC=ON"
|
KODI_CEC="-DENABLE_CEC=ON"
|
||||||
@ -241,7 +252,8 @@ configure_package() {
|
|||||||
${KODI_BLURAY} \
|
${KODI_BLURAY} \
|
||||||
${KODI_PLAYER} \
|
${KODI_PLAYER} \
|
||||||
${KODI_ALSA} \
|
${KODI_ALSA} \
|
||||||
${KODI_PULSEAUDIO}"
|
${KODI_PULSEAUDIO} \
|
||||||
|
${KODI_PIPEWIRE}"
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_configure_target() {
|
pre_configure_target() {
|
||||||
@ -275,7 +287,9 @@ post_makeinstall_target() {
|
|||||||
-e "s|@KODI_MAX_SECONDS@|${KODI_MAX_SECONDS:-900}|g" \
|
-e "s|@KODI_MAX_SECONDS@|${KODI_MAX_SECONDS:-900}|g" \
|
||||||
-i ${INSTALL}/usr/lib/kodi/kodi.sh
|
-i ${INSTALL}/usr/lib/kodi/kodi.sh
|
||||||
|
|
||||||
if [ "${KODI_PULSEAUDIO_SUPPORT}" = "yes" -a "${KODI_ALSA_SUPPORT}" = "yes" ]; then
|
if [ "${KODI_PIPEWIRE_SUPPORT}" = "yes" ]; then
|
||||||
|
KODI_AE_SINK="PIPEWIRE"
|
||||||
|
elif [ "${KODI_PULSEAUDIO_SUPPORT}" = "yes" -a "${KODI_ALSA_SUPPORT}" = "yes" ]; then
|
||||||
KODI_AE_SINK="ALSA+PULSE"
|
KODI_AE_SINK="ALSA+PULSE"
|
||||||
elif [ "${KODI_PULSEAUDIO_SUPPORT}" = "yes" -a "${KODI_ALSA_SUPPORT}" != "yes" ]; then
|
elif [ "${KODI_PULSEAUDIO_SUPPORT}" = "yes" -a "${KODI_ALSA_SUPPORT}" != "yes" ]; then
|
||||||
KODI_AE_SINK="PULSE"
|
KODI_AE_SINK="PULSE"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user