2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="pulseaudio"
|
2023-08-24 09:53:35 +00:00
|
|
|
PKG_VERSION="16.1"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_SITE="http://pulseaudio.org/"
|
|
|
|
PKG_URL="http://www.freedesktop.org/software/pulseaudio/releases/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
2023-08-14 12:07:13 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain libcap libsndfile libtool soxr speexdsp glib:host glib"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LONGDESC="PulseAudio is a sound system for POSIX OSes, meaning that it is a proxy for your sound applications."
|
|
|
|
|
|
|
|
if [ "${AVAHI_DAEMON}" = "yes" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" avahi"
|
|
|
|
PKG_PULSEAUDIO_AVAHI="-Davahi=enabled"
|
|
|
|
else
|
|
|
|
PKG_PULSEAUDIO_AVAHI="-Davahi=disabled"
|
|
|
|
fi
|
|
|
|
|
2023-08-14 12:07:13 +00:00
|
|
|
PKG_MESON_OPTS_TARGET="-Ddaemon=false \
|
2022-02-27 23:34:12 +00:00
|
|
|
-Ddoxygen=false \
|
|
|
|
-Dgcov=false \
|
2022-02-05 14:23:32 +00:00
|
|
|
-Dman=false \
|
|
|
|
-Dtests=false \
|
|
|
|
-Dsystem_user=root \
|
|
|
|
-Dsystem_group=root \
|
|
|
|
-Daccess_group=root \
|
|
|
|
-Ddatabase=simple \
|
|
|
|
-Dlegacy-database-entry-format=false \
|
2022-02-27 23:34:12 +00:00
|
|
|
-Dstream-restore-clear-old-devices=false \
|
2022-02-05 14:23:32 +00:00
|
|
|
-Drunning-from-build-tree=false \
|
|
|
|
-Datomic-arm-linux-helpers=true \
|
|
|
|
-Datomic-arm-memory-barrier=false \
|
|
|
|
-Dmodlibexecdir=/usr/lib/pulse \
|
|
|
|
-Dudevrulesdir=/usr/lib/udev/rules.d \
|
2023-08-14 12:07:13 +00:00
|
|
|
-Dalsa=disabled \
|
2022-02-05 14:23:32 +00:00
|
|
|
-Dasyncns=disabled \
|
|
|
|
${PKG_PULSEAUDIO_AVAHI} \
|
2023-08-09 12:10:06 +00:00
|
|
|
-Dbluez5=disabled
|
2023-01-28 11:50:43 +00:00
|
|
|
-Dbluez5-gstreamer=disabled \
|
2023-08-14 12:07:13 +00:00
|
|
|
-Ddbus=disabled \
|
2022-02-27 23:34:12 +00:00
|
|
|
-Delogind=disabled \
|
2022-02-05 14:23:32 +00:00
|
|
|
-Dfftw=disabled \
|
|
|
|
-Dglib=enabled \
|
|
|
|
-Dgsettings=disabled \
|
2022-02-27 23:34:12 +00:00
|
|
|
-Dgstreamer=disabled \
|
2022-02-05 14:23:32 +00:00
|
|
|
-Dgtk=disabled \
|
|
|
|
-Dhal-compat=false \
|
|
|
|
-Dipv6=true \
|
|
|
|
-Djack=disabled \
|
|
|
|
-Dlirc=disabled \
|
2023-08-14 12:07:13 +00:00
|
|
|
-Dopenssl=disabled \
|
2022-02-05 14:23:32 +00:00
|
|
|
-Dorc=disabled \
|
2022-02-27 23:34:12 +00:00
|
|
|
-Doss-output=disabled \
|
2022-02-05 14:23:32 +00:00
|
|
|
-Dsamplerate=disabled \
|
|
|
|
-Dsoxr=enabled \
|
|
|
|
-Dspeex=enabled \
|
2023-08-14 12:07:13 +00:00
|
|
|
-Dsystemd=disabled \
|
2022-02-27 23:34:12 +00:00
|
|
|
-Dtcpwrap=disabled \
|
2023-08-14 12:07:13 +00:00
|
|
|
-Dudev=disabled \
|
2022-02-27 23:34:12 +00:00
|
|
|
-Dvalgrind=disabled \
|
2022-02-05 14:23:32 +00:00
|
|
|
-Dx11=disabled \
|
|
|
|
-Dadrian-aec=true \
|
|
|
|
-Dwebrtc-aec=disabled"
|
|
|
|
|
|
|
|
pre_configure_target() {
|
|
|
|
sed -e 's|; remixing-use-all-sink-channels = yes|; remixing-use-all-sink-channels = no|' \
|
|
|
|
-i ${PKG_BUILD}/src/daemon/daemon.conf.in
|
|
|
|
}
|
|
|
|
|
|
|
|
post_makeinstall_target() {
|
|
|
|
safe_remove ${INSTALL}/usr/include
|
|
|
|
safe_remove ${INSTALL}/usr/lib/cmake
|
|
|
|
safe_remove ${INSTALL}/usr/lib/pkgconfig
|
|
|
|
safe_remove ${INSTALL}/usr/share/vala
|
|
|
|
safe_remove ${INSTALL}/usr/share/zsh
|
|
|
|
safe_remove ${INSTALL}/usr/share/bash-completion
|
|
|
|
|
|
|
|
cp ${PKG_DIR}/config/system.pa ${INSTALL}/etc/pulse/
|
2022-02-27 23:34:12 +00:00
|
|
|
|
2022-07-31 15:12:57 +00:00
|
|
|
mkdir -p ${INSTALL}/etc/ld.so.conf.d
|
|
|
|
echo "/usr/lib/pulseaudio" >${INSTALL}/etc/ld.so.conf.d/${ARCH}-lib-pulseaudio.conf
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
2023-08-08 00:15:56 +00:00
|
|
|
# Deprecated by pipewire
|
|
|
|
#post_install() {
|
|
|
|
# enable_service pulseaudio.service
|
|
|
|
#}
|