spotifyd: Rename folder / add features / add PACKAGECONFIGs

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2020-11-10 18:35:36 +01:00
parent fcce8a93be
commit 6267c105b3

View File

@@ -8,21 +8,36 @@ python() {
raise bb.parse.SkipRecipe('Requires meta-rust to be present.')
}
DEPENDS = "alsa-lib openssl"
DEPENDS = " \
alsa-lib \
libogg \
openssl \
dbus \
"
inherit cargo
SRC_URI += "git://github.com/Spotifyd/spotifyd.git"
SRC_URI = "git://github.com/Spotifyd/spotifyd.git"
SRCREV = "133a1199f80c7c22f29a45226db3bb856b106a5b"
S = "${WORKDIR}/git"
# crate ruins SRCPV so set PV manually
PV = "0.2.24+git133a1199"
# Hmm - no change
#PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd pulseaudio', d)}"
#PACKAGECONFIG[systemd] = ",,systemd"
#PACKAGECONFIG[pulseaudio] = ",,pulseaudio"
# No unconditional start on each boot
#do_install_append() {
# install -d ${D}${systemd_user_unitdir}
# install -m 644 ${S}/contrib/spotifyd.service ${D}${systemd_user_unitdir}
#}
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pulseaudio', d)}"
PACKAGECONFIG[pulseaudio] = ",,pulseaudio"
PACKAGECONFIG[portaudio] = ",,portaudio"
CARGO_BUILD_FLAGS += "--features dbus_mpris,dbus_keyring,alsa_backend${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', ',pulseaudio_backend', '', d)}${@bb.utils.contains('PACKAGECONFIG', 'portaudio', ',portaudio_backend', '', d)}"
FILES_${PN} += "${systemd_user_unitdir}"
############################################################################
# The following parts were auto-generated by cargo-bitbake - have no idea
CARGO_SRC_DIR = ""