forked from void-linux/void-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spotifyd: add portaudio build option.
This option is on by default.
- Loading branch information
1 parent
438a48f
commit 541d6e5
Showing
1 changed file
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
# Template file for 'spotifyd' | ||
pkgname=spotifyd | ||
version=0.2.24 | ||
revision=3 | ||
revision=4 | ||
build_style=cargo | ||
configure_args="--no-default-features" | ||
hostmakedepends="pkg-config" | ||
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" | ||
maintainer="Andrew Benson <[email protected]>" | ||
license="GPL-3.0-or-later" | ||
homepage="https://github.com/Spotifyd/spotifyd" | ||
distfiles="${homepage}/archive/v${version}.tar.gz" | ||
checksum=d3763f4647217a8f98ee938b50e141d67a5f3d33e9378894fde2a92c9845ef80 | ||
|
||
build_options="alsa pulseaudio dbus" | ||
build_options_default="alsa pulseaudio dbus" | ||
build_options="alsa pulseaudio portaudio dbus" | ||
desc_option_portaudio="Enable PortAudio backend" | ||
build_options_default="alsa pulseaudio portaudio dbus" | ||
|
||
export CFLAGS_${RUST_BUILD//-/_}="${CFLAGS_host}" | ||
export CC_${RUST_BUILD//-/_}="${BUILD_CC}" | ||
|
||
_features="$(vopt_if alsa ',alsa_backend')" | ||
_features+="$(vopt_if pulseaudio ',pulseaudio_backend')" | ||
_features+="$(vopt_if dbus ',dbus_mpris,dbus_keyring')" | ||
_features+="$(vopt_if portaudio ',portaudio_backend')" | ||
|
||
if [ "$_features" ]; then | ||
configure_args+=" --features $_features" | ||
|