blob: 674017606efd4ec9aabed63e8cedf183cc86ec07 [file] [log] [blame]
Andrew Geisslerd159c7f2021-09-02 21:05:58 -05001SUMMARY = "Bluetooth Audio ALSA Backend"
2HOMEPAGE = "https://github.com/Arkq/bluez-alsa"
3SECTION = "libs"
4
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=72d868d66bdd5bf51fe67734431de057"
7
8DEPENDS += "alsa-lib bluez5 glib-2.0 sbc"
9
10SRCREV = "aac8742a9e7dd12a1fead9cbce7d2dc8b961999c"
11
12SRC_URI = " \
13 git://github.com/Arkq/bluez-alsa.git;protocol=https;branch=master \
14 file://bluealsa.service \
15"
16
17S = "${WORKDIR}/git"
18
19PACKAGECONFIG[aac] = "--enable-aac, --disable-aac,"
20PACKAGECONFIG[aptx] = "--enable-aptx,--disable-aptx,"
21PACKAGECONFIG[hcitop] = "--enable-hcitop, --disable-hcitop, libbsd ncurses"
22PACKAGECONFIG[systemd] = "--enable-systemd, --disable-systemd, systemd"
23
24PACKAGECONFIG += "hcitop ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
25
26inherit autotools pkgconfig systemd
27
28FILES:${PN} += "\
29 ${datadir}/alsa/alsa.conf.d/20-bluealsa.conf\
30 ${libdir}/alsa-lib/libasound_module_ctl_bluealsa.so\
31 ${libdir}/alsa-lib/libasound_module_pcm_bluealsa.so\
32"
33
34FILES:${PN}-staticdev += "\
35 ${libdir}/alsa-lib/libasound_module_ctl_bluealsa.a\
36 ${libdir}/alsa-lib/libasound_module_pcm_bluealsa.a\
37"
38
39SYSTEMD_SERVICE:${PN} = "bluealsa.service bluealsa-aplay.service"