diff options
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.patch | 88 | ||||
-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 @@ | |||
1 | From 070ed35ac5cef8138ed4760582bb72e8d3e136e2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Arkadiusz Bokowy <arkadiusz.bokowy@gmail.com> | ||
3 | Date: Sun, 25 Aug 2024 08:42:39 +0200 | ||
4 | Subject: [PATCH] Fix compilation on strict POSIX platforms | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | Upstream-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 | |||
16 | diff --git a/src/main.c b/src/main.c | ||
17 | index 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> | ||
35 | diff --git a/test/mock/mock.c b/test/mock/mock.c | ||
36 | index 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> | ||
53 | diff --git a/utils/aplay/aplay.c b/utils/aplay/aplay.c | ||
54 | index 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> | ||
65 | diff --git a/utils/cli/cli.c b/utils/cli/cli.c | ||
66 | index 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> | ||
77 | diff --git a/utils/rfcomm/rfcomm.c b/utils/rfcomm/rfcomm.c | ||
78 | index 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 @@ | |||
1 | SUMMARY = "Bluetooth Audio ALSA Backend" | 1 | SUMMARY = "Bluetooth Audio ALSA Backend" |
2 | DESCRIPTION = "\ | ||
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 | " | ||
2 | HOMEPAGE = "https://github.com/Arkq/bluez-alsa" | 10 | HOMEPAGE = "https://github.com/Arkq/bluez-alsa" |
11 | BUGTRACKER = "https://github.com/arkq/bluez-alsa/issues" | ||
3 | SECTION = "libs" | 12 | SECTION = "libs" |
4 | 13 | ||
5 | LICENSE = "MIT" | 14 | LICENSE = "MIT" |
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8449a4f133a93f6254b496d4fb476e83" | 15 | LIC_FILES_CHKSUM = "file://LICENSE;md5=143bc4e73f39cc5e89d6e096ac0315ba" |
7 | 16 | ||
8 | SRC_URI = "git://github.com/Arkq/bluez-alsa.git;protocol=https;branch=master" | 17 | DEPENDS += "alsa-lib bluez5 dbus glib-2.0-native python3-packaging-native sbc" |
9 | 18 | ||
10 | SRCREV = "dd05a1baa261b94da9ba977b5e3392c8b4dc7a5e" | 19 | SRC_URI = "git://github.com/Arkq/bluez-alsa.git;protocol=https;branch=master \ |
11 | PV = "4.0.0+git" | 20 | file://0001-Use-basename-implementation-from-glib-2.0.patch" |
12 | 21 | ||
13 | S = "${WORKDIR}/git" | 22 | SRCREV = "959573c2cccef5cf074f5b2fa7941abbd699c5f4" |
14 | 23 | ||
15 | DEPENDS += "alsa-lib bluez5 dbus glib-2.0 sbc" | ||
16 | 24 | ||
17 | PACKAGECONFIG ??= "aplay cli hcitop ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" | 25 | PACKAGECONFIG ??= "aplay cli hcitop ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" |
18 | PACKAGECONFIG[a2dpconf] = "--enable-a2dpconf,--disable-a2dpconf" | 26 | PACKAGECONFIG[a2dpconf] = "--enable-a2dpconf,--disable-a2dpconf" |
19 | PACKAGECONFIG[aac] = "--enable-aac,--disable-aac,fdk-aac" | 27 | PACKAGECONFIG[aac] = "--enable-aac,--disable-aac,fdk-aac" |
20 | PACKAGECONFIG[aplay] = "--enable-aplay,--disable-aplay" | 28 | PACKAGECONFIG[aplay] = "--enable-aplay,--disable-aplay" |
21 | PACKAGECONFIG[cli] = "--enable-cli,--disable-cli" | 29 | PACKAGECONFIG[cli] = "--enable-cli,--disable-cli" |
22 | PACKAGECONFIG[coverage] = "--with-coverage,--without-coverage,lcov-native" | 30 | PACKAGECONFIG[coverage] = "--with-coverage,--without-coverage,lcov-native" |
@@ -25,8 +33,10 @@ PACKAGECONFIG[debug-time] = "--enable-debug-time,--disable-debug-time" | |||
25 | PACKAGECONFIG[faststream] = "--enable-faststream,--disable-faststream" | 33 | PACKAGECONFIG[faststream] = "--enable-faststream,--disable-faststream" |
26 | PACKAGECONFIG[hcitop] = "--enable-hcitop,--disable-hcitop,libbsd ncurses" | 34 | PACKAGECONFIG[hcitop] = "--enable-hcitop,--disable-hcitop,libbsd ncurses" |
27 | PACKAGECONFIG[libunwind] = "--with-libunwind,--without-libunwind,libunwind" | 35 | PACKAGECONFIG[libunwind] = "--with-libunwind,--without-libunwind,libunwind" |
36 | PACKAGECONFIG[midi] = "--enable-midi,--disable-midi" | ||
28 | PACKAGECONFIG[mp3lame] = "--enable-mp3lame,--disable-mp3lame,lame" | 37 | PACKAGECONFIG[mp3lame] = "--enable-mp3lame,--disable-mp3lame,lame" |
29 | PACKAGECONFIG[mpg123] = "--enable-mpg123,--disable-mpg123,mpg123,mpg123" | 38 | PACKAGECONFIG[mpg123] = "--enable-mpg123,--disable-mpg123,mpg123,mpg123" |
39 | PACKAGECONFIG[msbc] = "--enable-msbc,--disable-msbc,spandsp" | ||
30 | PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono,ofono" | 40 | PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono,ofono" |
31 | PACKAGECONFIG[payloadcheck] = "--enable-payloadcheck,--disable-payloadcheck" | 41 | PACKAGECONFIG[payloadcheck] = "--enable-payloadcheck,--disable-payloadcheck" |
32 | PACKAGECONFIG[rfcomm] = "--enable-rfcomm,--disable-rfcomm" | 42 | PACKAGECONFIG[rfcomm] = "--enable-rfcomm,--disable-rfcomm" |
@@ -35,9 +45,10 @@ PACKAGECONFIG[systemd] = "--enable-systemd --with-systemdsystemunitdir=${systemd | |||
35 | PACKAGECONFIG[test] = "--enable-test,--disable-test,libcheck libsndfile1" | 45 | PACKAGECONFIG[test] = "--enable-test,--disable-test,libcheck libsndfile1" |
36 | PACKAGECONFIG[upower] = "--enable-upower,--disable-upower,,upower" | 46 | PACKAGECONFIG[upower] = "--enable-upower,--disable-upower,,upower" |
37 | 47 | ||
38 | inherit autotools pkgconfig systemd | 48 | inherit autotools pkgconfig python3native systemd |
39 | 49 | ||
40 | EXTRA_OECONF = " \ | 50 | # These proprietary codecs are not available in Yocto |
51 | EXTRA_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 | ||
47 | PACKAGE_BEFORE_PN = "${PN}-aplay" | 58 | PACKAGE_BEFORE_PN = "${PN}-aplay" |
48 | RRECOMMENDS:${PN} = "${PN}-aplay" | ||
49 | 59 | ||
50 | FILES:${PN}-aplay = "${bindir}/bluealsa-aplay" | 60 | FILES:${PN}-aplay += "${bindir}/bluealsa-aplay" |
51 | FILES:${PN} += "${libdir}/alsa-lib/*" | 61 | FILES:${PN} += "${libdir}/alsa-lib/* ${datadir}/dbus-1/system.d" |
62 | |||
63 | RRECOMMENDS:${PN} = "${PN}-aplay" | ||
52 | 64 | ||
53 | SYSTEMD_PACKAGES += "${PN}-aplay" | 65 | SYSTEMD_PACKAGES += "${PN}-aplay" |
54 | SYSTEMD_SERVICE:${PN} = "bluealsa.service" | 66 | SYSTEMD_SERVICE:${PN} = "bluealsa.service" |