bluealsa: Add recipe

Implementation of bluetoooth audio over alsa backend esepcially with
bluez5

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2021-09-01 08:19:28 -07:00
parent 02de774615
commit 924d66e14e
3 changed files with 51 additions and 0 deletions
@@ -0,0 +1,11 @@
[Unit]
Description=Bluetooth Audio ALSA Backend
After=bluetooth.service
Requires=bluetooth.service
[Service]
Type=simple
ExecStart=/usr/bin/bluealsa
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,39 @@
SUMMARY = "Bluetooth Audio ALSA Backend"
HOMEPAGE = "https://github.com/Arkq/bluez-alsa"
SECTION = "libs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=72d868d66bdd5bf51fe67734431de057"
DEPENDS += "alsa-lib bluez5 glib-2.0 sbc"
SRCREV = "aac8742a9e7dd12a1fead9cbce7d2dc8b961999c"
SRC_URI = " \
git://github.com/Arkq/bluez-alsa.git;protocol=https;branch=master \
file://bluealsa.service \
"
S = "${WORKDIR}/git"
PACKAGECONFIG[aac] = "--enable-aac, --disable-aac,"
PACKAGECONFIG[aptx] = "--enable-aptx,--disable-aptx,"
PACKAGECONFIG[hcitop] = "--enable-hcitop, --disable-hcitop, libbsd ncurses"
PACKAGECONFIG[systemd] = "--enable-systemd, --disable-systemd, systemd"
PACKAGECONFIG += "hcitop ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
inherit autotools pkgconfig systemd
FILES:${PN} += "\
${datadir}/alsa/alsa.conf.d/20-bluealsa.conf\
${libdir}/alsa-lib/libasound_module_ctl_bluealsa.so\
${libdir}/alsa-lib/libasound_module_pcm_bluealsa.so\
"
FILES:${PN}-staticdev += "\
${libdir}/alsa-lib/libasound_module_ctl_bluealsa.a\
${libdir}/alsa-lib/libasound_module_pcm_bluealsa.a\
"
SYSTEMD_SERVICE:${PN} = "bluealsa.service bluealsa-aplay.service"
@@ -22,6 +22,7 @@ RDEPENDS:packagegroup-meta-multimedia = "\
RDEPENDS:packagegroup-meta-multimedia = "\
alsa-equal \
aom \
bluealsa \
caps \
cdparanoia \
dcadec \