spotifyd: add portaudio build option.

This option is on by default.
This commit is contained in:
Érico Rolim 2020-07-25 22:55:31 -03:00 committed by John Zimmermann
parent 438a48f6ab
commit 541d6e597c
1 changed files with 7 additions and 4 deletions

View File

@ -1,12 +1,13 @@
# Template file for 'spotifyd' # Template file for 'spotifyd'
pkgname=spotifyd pkgname=spotifyd
version=0.2.24 version=0.2.24
revision=3 revision=4
build_style=cargo build_style=cargo
configure_args="--no-default-features" configure_args="--no-default-features"
hostmakedepends="pkg-config" hostmakedepends="pkg-config"
makedepends="libressl-devel $(vopt_if alsa alsa-lib-devel) makedepends="libressl-devel $(vopt_if alsa alsa-lib-devel)
$(vopt_if pulseaudio pulseaudio-devel) $(vopt_if dbus dbus-devel)" $(vopt_if pulseaudio pulseaudio-devel) $(vopt_if portaudio portaudio-devel)
$(vopt_if dbus dbus-devel)"
short_desc="Spotify client running as a UNIX daemon" short_desc="Spotify client running as a UNIX daemon"
maintainer="Andrew Benson <abenson+void@gmail.com>" maintainer="Andrew Benson <abenson+void@gmail.com>"
license="GPL-3.0-or-later" license="GPL-3.0-or-later"
@ -14,8 +15,9 @@ homepage="https://github.com/Spotifyd/spotifyd"
distfiles="${homepage}/archive/v${version}.tar.gz" distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=d3763f4647217a8f98ee938b50e141d67a5f3d33e9378894fde2a92c9845ef80 checksum=d3763f4647217a8f98ee938b50e141d67a5f3d33e9378894fde2a92c9845ef80
build_options="alsa pulseaudio dbus" build_options="alsa pulseaudio portaudio dbus"
build_options_default="alsa pulseaudio dbus" desc_option_portaudio="Enable PortAudio backend"
build_options_default="alsa pulseaudio portaudio dbus"
export CFLAGS_${RUST_BUILD//-/_}="${CFLAGS_host}" export CFLAGS_${RUST_BUILD//-/_}="${CFLAGS_host}"
export CC_${RUST_BUILD//-/_}="${BUILD_CC}" export CC_${RUST_BUILD//-/_}="${BUILD_CC}"
@ -23,6 +25,7 @@ export CC_${RUST_BUILD//-/_}="${BUILD_CC}"
_features="$(vopt_if alsa ',alsa_backend')" _features="$(vopt_if alsa ',alsa_backend')"
_features+="$(vopt_if pulseaudio ',pulseaudio_backend')" _features+="$(vopt_if pulseaudio ',pulseaudio_backend')"
_features+="$(vopt_if dbus ',dbus_mpris,dbus_keyring')" _features+="$(vopt_if dbus ',dbus_mpris,dbus_keyring')"
_features+="$(vopt_if portaudio ',portaudio_backend')"
if [ "$_features" ]; then if [ "$_features" ]; then
configure_args+=" --features $_features" configure_args+=" --features $_features"