Files
Arch-R/packages/audio/pulseaudio/package.mk
Lukas Rusak 9e80f251b2 pulseaudio: enable speex support
this fixes the following warning:

meson.build:871: WARNING:
You do not have speex support enabled. It is strongly recommended
that you enable speex support if your platform supports it as it is
the primary method used for audio resampling and is thus a critical
part of PulseAudio on that platform.
2019-10-24 11:40:51 -07:00

94 lines
3.5 KiB
Makefile

# 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"
PKG_VERSION="13.0"
PKG_SHA256="961b23ca1acfd28f2bc87414c27bb40e12436efcf2158d29721b1e89f3f28057"
PKG_LICENSE="GPL"
PKG_SITE="http://pulseaudio.org/"
PKG_URL="http://www.freedesktop.org/software/pulseaudio/releases/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS_TARGET="toolchain alsa-lib dbus libcap libsndfile libtool openssl soxr speexdsp systemd glib:host"
PKG_LONGDESC="PulseAudio is a sound system for POSIX OSes, meaning that it is a proxy for your sound applications."
PKG_TOOLCHAIN="meson"
if [ "$BLUETOOTH_SUPPORT" = "yes" ]; then
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET sbc"
PKG_PULSEAUDIO_BLUETOOTH="-Dbluez5=true"
else
PKG_PULSEAUDIO_BLUETOOTH="-Dbluez5=false"
fi
if [ "$AVAHI_DAEMON" = "yes" ]; then
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET avahi"
PKG_PULSEAUDIO_AVAHI="-Davahi=enabled"
else
PKG_PULSEAUDIO_AVAHI="-Davahi=disabled"
fi
PKG_MESON_OPTS_TARGET="-Dgcov=false \
-Dman=false \
-Dtests=false \
-Dsystem_user=root \
-Dsystem_group=root \
-Daccess_group=root \
-Ddatabase=simple \
-Dlegacy-database-entry-format=false \
-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 \
-Dalsa=enabled \
-Dasyncns=disabled \
$PKG_PULSEAUDIO_AVAHI \
$PKG_PULSEAUDIO_BLUETOOTH \
-Dbluez5-native-headset=false \
-Dbluez5-ofono-headset=false \
-Ddbus=enabled \
-Dfftw=disabled \
-Dglib=enabled \
-Dgsettings=disabled \
-Dgtk=disabled \
-Dhal-compat=false \
-Dipv6=true \
-Djack=disabled \
-Dlirc=disabled \
-Dopenssl=enabled \
-Dorc=disabled \
-Dsamplerate=disabled \
-Dsoxr=enabled \
-Dspeex=enabled \
-Dsystemd=enabled \
-Dudev=enabled \
-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/lib/systemd
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/
cp $PKG_DIR/config/pulseaudio-system.conf $INSTALL/etc/dbus-1/system.d/
mkdir -p $INSTALL/usr/config
cp -PR $PKG_DIR/config/pulse-daemon.conf.d $INSTALL/usr/config
ln -sf /storage/.config/pulse-daemon.conf.d $INSTALL/etc/pulse/daemon.conf.d
}
post_install() {
enable_service pulseaudio.service
}