summaryrefslogtreecommitdiffstats
path: root/meta-multimedia/recipes-multimedia/bluealsa
diff options
context:
space:
mode:
Diffstat (limited to 'meta-multimedia/recipes-multimedia/bluealsa')
-rw-r--r--meta-multimedia/recipes-multimedia/bluealsa/bluealsa/0001-Use-basename-implementation-from-glib-2.0.patch88
-rw-r--r--meta-multimedia/recipes-multimedia/bluealsa/bluealsa_4.3.0.bb (renamed from meta-multimedia/recipes-multimedia/bluealsa/bluealsa_git.bb)38
2 files changed, 113 insertions, 13 deletions
diff --git a/meta-multimedia/recipes-multimedia/bluealsa/bluealsa/0001-Use-basename-implementation-from-glib-2.0.patch b/meta-multimedia/recipes-multimedia/bluealsa/bluealsa/0001-Use-basename-implementation-from-glib-2.0.patch
new file mode 100644
index 0000000000..fbd145e6b5
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/bluealsa/bluealsa/0001-Use-basename-implementation-from-glib-2.0.patch
@@ -0,0 +1,88 @@
1From 070ed35ac5cef8138ed4760582bb72e8d3e136e2 Mon Sep 17 00:00:00 2001
2From: Arkadiusz Bokowy <arkadiusz.bokowy@gmail.com>
3Date: Sun, 25 Aug 2024 08:42:39 +0200
4Subject: [PATCH] Fix compilation on strict POSIX platforms
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7Upstream-Status: Submitted [https://github.com/arkq/bluez-alsa/commit/070ed35ac5cef8138ed4760582bb72e8d3e136e2]
8---
9 src/main.c | 2 +-
10 test/mock/mock.c | 2 +-
11 utils/aplay/aplay.c | 1 +
12 utils/cli/cli.c | 1 +
13 utils/rfcomm/rfcomm.c | 1 +
14 5 files changed, 5 insertions(+), 2 deletions(-)
15
16diff --git a/src/main.c b/src/main.c
17index 96a66aee..eeb80165 100644
18--- a/src/main.c
19+++ b/src/main.c
20@@ -13,13 +13,13 @@
21 #endif
22
23 #include <getopt.h>
24+#include <libgen.h>
25 #include <sched.h>
26 #include <signal.h>
27 #include <stdbool.h>
28 #include <stdint.h>
29 #include <stdio.h>
30 #include <stdlib.h>
31-#include <string.h>
32 #include <strings.h>
33 #include <syslog.h>
34 #include <time.h>
35diff --git a/test/mock/mock.c b/test/mock/mock.c
36index 947211a3..0a2f6091 100644
37--- a/test/mock/mock.c
38+++ b/test/mock/mock.c
39@@ -20,12 +20,12 @@
40 #include <assert.h>
41 #include <errno.h>
42 #include <getopt.h>
43+#include <libgen.h>
44 #include <signal.h>
45 #include <stdbool.h>
46 #include <stdint.h>
47 #include <stdio.h>
48 #include <stdlib.h>
49-#include <string.h>
50 #include <strings.h>
51 #include <sys/stat.h>
52 #include <unistd.h>
53diff --git a/utils/aplay/aplay.c b/utils/aplay/aplay.c
54index 3de77902..36843e95 100644
55--- a/utils/aplay/aplay.c
56+++ b/utils/aplay/aplay.c
57@@ -15,6 +15,7 @@
58 #include <assert.h>
59 #include <errno.h>
60 #include <getopt.h>
61+#include <libgen.h>
62 #include <math.h>
63 #include <poll.h>
64 #include <pthread.h>
65diff --git a/utils/cli/cli.c b/utils/cli/cli.c
66index aeeabe58..0338b9e2 100644
67--- a/utils/cli/cli.c
68+++ b/utils/cli/cli.c
69@@ -13,6 +13,7 @@
70 #endif
71
72 #include <getopt.h>
73+#include <libgen.h>
74 #include <stdarg.h>
75 #include <stdbool.h>
76 #include <stdint.h>
77diff --git a/utils/rfcomm/rfcomm.c b/utils/rfcomm/rfcomm.c
78index d01f0810..3dacfd67 100644
79--- a/utils/rfcomm/rfcomm.c
80+++ b/utils/rfcomm/rfcomm.c
81@@ -15,6 +15,7 @@
82 #include <ctype.h>
83 #include <errno.h>
84 #include <getopt.h>
85+#include <libgen.h>
86 #include <poll.h>
87 #include <stdbool.h>
88 #include <stdint.h>
diff --git a/meta-multimedia/recipes-multimedia/bluealsa/bluealsa_git.bb b/meta-multimedia/recipes-multimedia/bluealsa/bluealsa_4.3.0.bb
index 5007c88fff..162a51284e 100644
--- a/meta-multimedia/recipes-multimedia/bluealsa/bluealsa_git.bb
+++ b/meta-multimedia/recipes-multimedia/bluealsa/bluealsa_4.3.0.bb
@@ -1,22 +1,30 @@
1SUMMARY = "Bluetooth Audio ALSA Backend" 1SUMMARY = "Bluetooth Audio ALSA Backend"
2DESCRIPTION = "\
3 BlueALSA is a replacement for BlueZ >= 5, with which one can achieve the \
4 same Bluetooth audio profile support as with PulseAudio, but with fewer \
5 dependencies and at a lower level in the software stack. It is designed \
6 specifically for use on small, low-powered, dedicated audio or audio/visual \
7 systems where the high-level audio management features of PulseAudio or \
8 PipeWire are not required. \
9"
2HOMEPAGE = "https://github.com/Arkq/bluez-alsa" 10HOMEPAGE = "https://github.com/Arkq/bluez-alsa"
11BUGTRACKER = "https://github.com/arkq/bluez-alsa/issues"
3SECTION = "libs" 12SECTION = "libs"
4 13
5LICENSE = "MIT" 14LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=8449a4f133a93f6254b496d4fb476e83" 15LIC_FILES_CHKSUM = "file://LICENSE;md5=143bc4e73f39cc5e89d6e096ac0315ba"
7 16
8SRC_URI = "git://github.com/Arkq/bluez-alsa.git;protocol=https;branch=master" 17DEPENDS += "alsa-lib bluez5 dbus glib-2.0-native python3-packaging-native sbc"
9 18
10SRCREV = "dd05a1baa261b94da9ba977b5e3392c8b4dc7a5e" 19SRC_URI = "git://github.com/Arkq/bluez-alsa.git;protocol=https;branch=master \
11PV = "4.0.0+git" 20 file://0001-Use-basename-implementation-from-glib-2.0.patch"
12 21
13S = "${WORKDIR}/git" 22SRCREV = "959573c2cccef5cf074f5b2fa7941abbd699c5f4"
14 23
15DEPENDS += "alsa-lib bluez5 dbus glib-2.0 sbc"
16 24
17PACKAGECONFIG ??= "aplay cli hcitop ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" 25PACKAGECONFIG ??= "aplay cli hcitop ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
18PACKAGECONFIG[a2dpconf] = "--enable-a2dpconf,--disable-a2dpconf" 26PACKAGECONFIG[a2dpconf] = "--enable-a2dpconf,--disable-a2dpconf"
19PACKAGECONFIG[aac] = "--enable-aac,--disable-aac,fdk-aac" 27PACKAGECONFIG[aac] = "--enable-aac,--disable-aac,fdk-aac"
20PACKAGECONFIG[aplay] = "--enable-aplay,--disable-aplay" 28PACKAGECONFIG[aplay] = "--enable-aplay,--disable-aplay"
21PACKAGECONFIG[cli] = "--enable-cli,--disable-cli" 29PACKAGECONFIG[cli] = "--enable-cli,--disable-cli"
22PACKAGECONFIG[coverage] = "--with-coverage,--without-coverage,lcov-native" 30PACKAGECONFIG[coverage] = "--with-coverage,--without-coverage,lcov-native"
@@ -25,8 +33,10 @@ PACKAGECONFIG[debug-time] = "--enable-debug-time,--disable-debug-time"
25PACKAGECONFIG[faststream] = "--enable-faststream,--disable-faststream" 33PACKAGECONFIG[faststream] = "--enable-faststream,--disable-faststream"
26PACKAGECONFIG[hcitop] = "--enable-hcitop,--disable-hcitop,libbsd ncurses" 34PACKAGECONFIG[hcitop] = "--enable-hcitop,--disable-hcitop,libbsd ncurses"
27PACKAGECONFIG[libunwind] = "--with-libunwind,--without-libunwind,libunwind" 35PACKAGECONFIG[libunwind] = "--with-libunwind,--without-libunwind,libunwind"
36PACKAGECONFIG[midi] = "--enable-midi,--disable-midi"
28PACKAGECONFIG[mp3lame] = "--enable-mp3lame,--disable-mp3lame,lame" 37PACKAGECONFIG[mp3lame] = "--enable-mp3lame,--disable-mp3lame,lame"
29PACKAGECONFIG[mpg123] = "--enable-mpg123,--disable-mpg123,mpg123,mpg123" 38PACKAGECONFIG[mpg123] = "--enable-mpg123,--disable-mpg123,mpg123,mpg123"
39PACKAGECONFIG[msbc] = "--enable-msbc,--disable-msbc,spandsp"
30PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono,ofono" 40PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono,ofono"
31PACKAGECONFIG[payloadcheck] = "--enable-payloadcheck,--disable-payloadcheck" 41PACKAGECONFIG[payloadcheck] = "--enable-payloadcheck,--disable-payloadcheck"
32PACKAGECONFIG[rfcomm] = "--enable-rfcomm,--disable-rfcomm" 42PACKAGECONFIG[rfcomm] = "--enable-rfcomm,--disable-rfcomm"
@@ -35,9 +45,10 @@ PACKAGECONFIG[systemd] = "--enable-systemd --with-systemdsystemunitdir=${systemd
35PACKAGECONFIG[test] = "--enable-test,--disable-test,libcheck libsndfile1" 45PACKAGECONFIG[test] = "--enable-test,--disable-test,libcheck libsndfile1"
36PACKAGECONFIG[upower] = "--enable-upower,--disable-upower,,upower" 46PACKAGECONFIG[upower] = "--enable-upower,--disable-upower,,upower"
37 47
38inherit autotools pkgconfig systemd 48inherit autotools pkgconfig python3native systemd
39 49
40EXTRA_OECONF = " \ 50# These proprietary codecs are not available in Yocto
51EXTRA_OECONF = "\
41 --disable-aptx \ 52 --disable-aptx \
42 --disable-lc3plus \ 53 --disable-lc3plus \
43 --disable-ldac \ 54 --disable-ldac \
@@ -45,10 +56,11 @@ EXTRA_OECONF = " \
45" 56"
46 57
47PACKAGE_BEFORE_PN = "${PN}-aplay" 58PACKAGE_BEFORE_PN = "${PN}-aplay"
48RRECOMMENDS:${PN} = "${PN}-aplay"
49 59
50FILES:${PN}-aplay = "${bindir}/bluealsa-aplay" 60FILES:${PN}-aplay += "${bindir}/bluealsa-aplay"
51FILES:${PN} += "${libdir}/alsa-lib/*" 61FILES:${PN} += "${libdir}/alsa-lib/* ${datadir}/dbus-1/system.d"
62
63RRECOMMENDS:${PN} = "${PN}-aplay"
52 64
53SYSTEMD_PACKAGES += "${PN}-aplay" 65SYSTEMD_PACKAGES += "${PN}-aplay"
54SYSTEMD_SERVICE:${PN} = "bluealsa.service" 66SYSTEMD_SERVICE:${PN} = "bluealsa.service"