Merge pull request #3928 from lrusak/pulseaudio-meson

pulseaudio: switch to use meson
This commit is contained in:
MilhouseVH 2019-10-24 03:58:14 +01:00 committed by GitHub
commit a5b2c59938
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,75 +10,60 @@ PKG_SITE="http://pulseaudio.org/"
PKG_URL="http://www.freedesktop.org/software/pulseaudio/releases/$PKG_NAME-$PKG_VERSION.tar.xz" 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 systemd glib:host" PKG_DEPENDS_TARGET="toolchain alsa-lib dbus libcap libsndfile libtool openssl soxr systemd glib:host"
PKG_LONGDESC="PulseAudio is a sound system for POSIX OSes, meaning that it is a proxy for your sound applications." PKG_LONGDESC="PulseAudio is a sound system for POSIX OSes, meaning that it is a proxy for your sound applications."
PKG_TOOLCHAIN="configure" PKG_TOOLCHAIN="meson"
if [ "$BLUETOOTH_SUPPORT" = "yes" ]; then if [ "$BLUETOOTH_SUPPORT" = "yes" ]; then
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET sbc" PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET sbc"
PKG_PULSEAUDIO_BLUETOOTH="--enable-bluez5" PKG_PULSEAUDIO_BLUETOOTH="-Dbluez5=true"
else else
PKG_PULSEAUDIO_BLUETOOTH="--disable-bluez5" PKG_PULSEAUDIO_BLUETOOTH="-Dbluez5=false"
fi fi
if [ "$AVAHI_DAEMON" = "yes" ]; then if [ "$AVAHI_DAEMON" = "yes" ]; then
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET avahi" PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET avahi"
PKG_PULSEAUDIO_AVAHI="--enable-avahi" PKG_PULSEAUDIO_AVAHI="-Davahi=enabled"
else else
PKG_PULSEAUDIO_AVAHI="--disable-avahi" PKG_PULSEAUDIO_AVAHI="-Davahi=disabled"
fi fi
# PulseAudio fails to build on aarch64 when NEON is enabled, so don't enable NEON for aarch64 until upstream supports it PKG_MESON_OPTS_TARGET="-Dgcov=false \
if [ "$TARGET_ARCH" = "arm" ] && target_has_feature neon; then -Dman=false \
PKG_PULSEAUDIO_NEON="--enable-neon-opt" -Dtests=false \
else -Dsystem_user=root \
PKG_PULSEAUDIO_NEON="--disable-neon-opt" -Dsystem_group=root \
fi -Daccess_group=root \
-Ddatabase=simple \
PKG_CONFIGURE_OPTS_TARGET="--disable-silent-rules \ -Dlegacy-database-entry-format=false \
--disable-nls \ -Drunning-from-build-tree=false \
--enable-largefile \ -Datomic-arm-linux-helpers=true \
--disable-rpath \ -Datomic-arm-memory-barrier=false \
$PKG_PULSEAUDIO_NEON \ -Dmodlibexecdir=/usr/lib/pulse \
--disable-x11 \ -Dudevrulesdir=/usr/lib/udev/rules.d \
--disable-tests \ -Dalsa=enabled \
--disable-samplerate \ -Dasyncns=disabled \
--disable-oss-output \ $PKG_PULSEAUDIO_AVAHI \
--disable-oss-wrapper \ $PKG_PULSEAUDIO_BLUETOOTH \
--disable-coreaudio-output \ -Dbluez5-native-headset=false \
--enable-alsa \ -Dbluez5-ofono-headset=false \
--disable-esound \ -Ddbus=enabled \
--disable-solaris \ -Dfftw=disabled \
--disable-waveout \ -Dglib=enabled \
--enable-glib2 \ -Dgsettings=disabled \
--disable-gtk3 \ -Dgtk=disabled \
--disable-gconf \ -Dhal-compat=false \
$PKG_PULSEAUDIO_AVAHI \ -Dipv6=true \
--disable-jack \ -Djack=disabled \
--disable-asyncns \ -Dlirc=disabled \
--disable-tcpwrap \ -Dopenssl=enabled \
--disable-lirc \ -Dorc=disabled \
--enable-dbus \ -Dsamplerate=disabled \
--disable-bluez4 \ -Dsoxr=enabled \
$PKG_PULSEAUDIO_BLUETOOTH \ -Dspeex=disabled \
--disable-bluez5-ofono-headset \ -Dsystemd=enabled \
--disable-bluez5-native-headset \ -Dudev=enabled \
--enable-udev \ -Dx11=disabled \
--with-udev-rules-dir=/usr/lib/udev/rules.d \ -Dadrian-aec=true \
--disable-hal-compat \ -Dwebrtc-aec=disabled"
--enable-ipv6 \
--enable-openssl \
--disable-orc \
--disable-manpages \
--disable-per-user-esound-socket \
--disable-default-build-tests \
--disable-legacy-database-entry-format \
--with-system-user=root \
--with-system-group=root \
--with-access-group=root \
--without-caps \
--without-fftw \
--without-speex \
--with-soxr \
--with-module-dir=/usr/lib/pulse"
pre_configure_target() { pre_configure_target() {
sed -e 's|; remixing-use-all-sink-channels = yes|; remixing-use-all-sink-channels = no|' \ sed -e 's|; remixing-use-all-sink-channels = yes|; remixing-use-all-sink-channels = no|' \
@ -86,14 +71,13 @@ pre_configure_target() {
} }
post_makeinstall_target() { post_makeinstall_target() {
rm -rf $INSTALL/usr/bin/esdcompat safe_remove $INSTALL/usr/include
rm -rf $INSTALL/usr/include safe_remove $INSTALL/usr/lib/cmake
rm -rf $INSTALL/usr/lib/cmake safe_remove $INSTALL/usr/lib/pkgconfig
rm -rf $INSTALL/usr/lib/pkgconfig safe_remove $INSTALL/usr/lib/systemd
rm -rf $INSTALL/usr/lib/systemd safe_remove $INSTALL/usr/share/vala
rm -rf $INSTALL/usr/share/vala safe_remove $INSTALL/usr/share/zsh
rm -rf $INSTALL/usr/share/zsh safe_remove $INSTALL/usr/share/bash-completion
rm -rf $INSTALL/usr/share/bash-completion
cp $PKG_DIR/config/system.pa $INSTALL/etc/pulse/ cp $PKG_DIR/config/system.pa $INSTALL/etc/pulse/
cp $PKG_DIR/config/pulseaudio-system.conf $INSTALL/etc/dbus-1/system.d/ cp $PKG_DIR/config/pulseaudio-system.conf $INSTALL/etc/dbus-1/system.d/