From 8c43e7a2997696179c562fe0d0be2aa076df8916 Mon Sep 17 00:00:00 2001 From: Jörg Sommer Date: Fri, 23 Aug 2024 07:37:02 +0200 Subject: bluealsa: upgrade 4.0.0+git -> 4.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The change in the license file was the update of the year in the copyright line. glib-2.0-native and python3-packaging-native (with python3native) is required to have gdbus-codegen at build time. Signed-off-by: Jörg Sommer Signed-off-by: Khem Raj --- .../recipes-multimedia/bluealsa/bluealsa_4.3.0.bb | 78 ++++++++++++++++++++++ .../recipes-multimedia/bluealsa/bluealsa_git.bb | 66 ------------------ 2 files changed, 78 insertions(+), 66 deletions(-) create mode 100644 meta-multimedia/recipes-multimedia/bluealsa/bluealsa_4.3.0.bb delete mode 100644 meta-multimedia/recipes-multimedia/bluealsa/bluealsa_git.bb diff --git a/meta-multimedia/recipes-multimedia/bluealsa/bluealsa_4.3.0.bb b/meta-multimedia/recipes-multimedia/bluealsa/bluealsa_4.3.0.bb new file mode 100644 index 0000000000..419d6e8d22 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/bluealsa/bluealsa_4.3.0.bb @@ -0,0 +1,78 @@ +SUMMARY = "Bluetooth Audio ALSA Backend" +DESCRIPTION = "\ + BlueALSA is a replacement for BlueZ >= 5, with which one can achieve the \ + same Bluetooth audio profile support as with PulseAudio, but with fewer \ + dependencies and at a lower level in the software stack. It is designed \ + specifically for use on small, low-powered, dedicated audio or audio/visual \ + systems where the high-level audio management features of PulseAudio or \ + PipeWire are not required. \ +" +HOMEPAGE = "https://github.com/Arkq/bluez-alsa" +BUGTRACKER = "https://github.com/arkq/bluez-alsa/issues" +SECTION = "libs" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=143bc4e73f39cc5e89d6e096ac0315ba" + +DEPENDS += "alsa-lib bluez5 dbus glib-2.0-native python3-packaging-native sbc" + +SRC_URI = "git://github.com/Arkq/bluez-alsa.git;protocol=https;branch=master" + +SRCREV = "959573c2cccef5cf074f5b2fa7941abbd699c5f4" + +S = "${WORKDIR}/git" + +PACKAGECONFIG ??= "aplay cli hcitop ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" +PACKAGECONFIG[a2dpconf] = "--enable-a2dpconf,--disable-a2dpconf" +PACKAGECONFIG[aac] = "--enable-aac,--disable-aac,fdk-aac" +PACKAGECONFIG[aplay] = "--enable-aplay,--disable-aplay" +PACKAGECONFIG[cli] = "--enable-cli,--disable-cli" +PACKAGECONFIG[coverage] = "--with-coverage,--without-coverage,lcov-native" +PACKAGECONFIG[debug] = "--enable-debug,--disable-debug" +PACKAGECONFIG[debug-time] = "--enable-debug-time,--disable-debug-time" +PACKAGECONFIG[faststream] = "--enable-faststream,--disable-faststream" +PACKAGECONFIG[hcitop] = "--enable-hcitop,--disable-hcitop,libbsd ncurses" +PACKAGECONFIG[libunwind] = "--with-libunwind,--without-libunwind,libunwind" +PACKAGECONFIG[midi] = "--enable-midi,--disable-midi" +PACKAGECONFIG[mp3lame] = "--enable-mp3lame,--disable-mp3lame,lame" +PACKAGECONFIG[mpg123] = "--enable-mpg123,--disable-mpg123,mpg123,mpg123" +PACKAGECONFIG[msbc] = "--enable-msbc,--disable-msbc,spandsp" +PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono,ofono" +PACKAGECONFIG[payloadcheck] = "--enable-payloadcheck,--disable-payloadcheck" +PACKAGECONFIG[rfcomm] = "--enable-rfcomm,--disable-rfcomm" +PACKAGECONFIG[systemd] = "--enable-systemd --with-systemdsystemunitdir=${systemd_system_unitdir} \ + --with-systemdbluealsaargs='${SYSTEMD_BLUEALSA_ARGS}' --with-systemdbluealsaaplayargs='${SYSTEMD_BLUEALSA_APLAY_ARGS}',--disable-systemd,systemd" +PACKAGECONFIG[test] = "--enable-test,--disable-test,libcheck libsndfile1" +PACKAGECONFIG[upower] = "--enable-upower,--disable-upower,,upower" + +inherit autotools pkgconfig python3native systemd + +# These proprietary codecs are not available in Yocto +EXTRA_OECONF = "\ + --disable-aptx \ + --disable-lc3plus \ + --disable-ldac \ + --disable-manpages \ +" + +PACKAGE_BEFORE_PN = "${PN}-aplay" + +FILES:${PN}-aplay += "${bindir}/bluealsa-aplay" +FILES:${PN} += "${libdir}/alsa-lib/* ${datadir}/dbus-1/system.d" + +RRECOMMENDS:${PN} = "${PN}-aplay" + +SYSTEMD_PACKAGES += "${PN}-aplay" +SYSTEMD_SERVICE:${PN} = "bluealsa.service" +SYSTEMD_SERVICE:${PN}-aplay = "bluealsa-aplay.service" + +SYSTEMD_AUTO_ENABLE:${PN}-aplay = "disable" + +# Choose bluez-alsa arguments to be used in bluealsa systemd service +# Usually could choose profiles with it: a2dp-source a2dp-sink hfp-hf hfp-ag hsp-hs hsp-ag hfp-ofono +# Enable bluez-alsa arguments by default: +SYSTEMD_BLUEALSA_ARGS ?= "-p a2dp-source -p a2dp-sink" + +# Choose bluealsa-aplay arguments to be used in bluealsa-aplay systemd service +# Defaults to be empty: +SYSTEMD_BLUEALSA_APLAY_ARGS ?= "" diff --git a/meta-multimedia/recipes-multimedia/bluealsa/bluealsa_git.bb b/meta-multimedia/recipes-multimedia/bluealsa/bluealsa_git.bb deleted file mode 100644 index 5007c88fff..0000000000 --- a/meta-multimedia/recipes-multimedia/bluealsa/bluealsa_git.bb +++ /dev/null @@ -1,66 +0,0 @@ -SUMMARY = "Bluetooth Audio ALSA Backend" -HOMEPAGE = "https://github.com/Arkq/bluez-alsa" -SECTION = "libs" - -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=8449a4f133a93f6254b496d4fb476e83" - -SRC_URI = "git://github.com/Arkq/bluez-alsa.git;protocol=https;branch=master" - -SRCREV = "dd05a1baa261b94da9ba977b5e3392c8b4dc7a5e" -PV = "4.0.0+git" - -S = "${WORKDIR}/git" - -DEPENDS += "alsa-lib bluez5 dbus glib-2.0 sbc" - -PACKAGECONFIG ??= "aplay cli hcitop ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" -PACKAGECONFIG[a2dpconf] = "--enable-a2dpconf,--disable-a2dpconf" -PACKAGECONFIG[aac] = "--enable-aac,--disable-aac,fdk-aac" -PACKAGECONFIG[aplay] = "--enable-aplay,--disable-aplay" -PACKAGECONFIG[cli] = "--enable-cli,--disable-cli" -PACKAGECONFIG[coverage] = "--with-coverage,--without-coverage,lcov-native" -PACKAGECONFIG[debug] = "--enable-debug,--disable-debug" -PACKAGECONFIG[debug-time] = "--enable-debug-time,--disable-debug-time" -PACKAGECONFIG[faststream] = "--enable-faststream,--disable-faststream" -PACKAGECONFIG[hcitop] = "--enable-hcitop,--disable-hcitop,libbsd ncurses" -PACKAGECONFIG[libunwind] = "--with-libunwind,--without-libunwind,libunwind" -PACKAGECONFIG[mp3lame] = "--enable-mp3lame,--disable-mp3lame,lame" -PACKAGECONFIG[mpg123] = "--enable-mpg123,--disable-mpg123,mpg123,mpg123" -PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono,ofono" -PACKAGECONFIG[payloadcheck] = "--enable-payloadcheck,--disable-payloadcheck" -PACKAGECONFIG[rfcomm] = "--enable-rfcomm,--disable-rfcomm" -PACKAGECONFIG[systemd] = "--enable-systemd --with-systemdsystemunitdir=${systemd_system_unitdir} \ - --with-systemdbluealsaargs='${SYSTEMD_BLUEALSA_ARGS}' --with-systemdbluealsaaplayargs='${SYSTEMD_BLUEALSA_APLAY_ARGS}',--disable-systemd,systemd" -PACKAGECONFIG[test] = "--enable-test,--disable-test,libcheck libsndfile1" -PACKAGECONFIG[upower] = "--enable-upower,--disable-upower,,upower" - -inherit autotools pkgconfig systemd - -EXTRA_OECONF = " \ - --disable-aptx \ - --disable-lc3plus \ - --disable-ldac \ - --disable-manpages \ -" - -PACKAGE_BEFORE_PN = "${PN}-aplay" -RRECOMMENDS:${PN} = "${PN}-aplay" - -FILES:${PN}-aplay = "${bindir}/bluealsa-aplay" -FILES:${PN} += "${libdir}/alsa-lib/*" - -SYSTEMD_PACKAGES += "${PN}-aplay" -SYSTEMD_SERVICE:${PN} = "bluealsa.service" -SYSTEMD_SERVICE:${PN}-aplay = "bluealsa-aplay.service" - -SYSTEMD_AUTO_ENABLE:${PN}-aplay = "disable" - -# Choose bluez-alsa arguments to be used in bluealsa systemd service -# Usually could choose profiles with it: a2dp-source a2dp-sink hfp-hf hfp-ag hsp-hs hsp-ag hfp-ofono -# Enable bluez-alsa arguments by default: -SYSTEMD_BLUEALSA_ARGS ?= "-p a2dp-source -p a2dp-sink" - -# Choose bluealsa-aplay arguments to be used in bluealsa-aplay systemd service -# Defaults to be empty: -SYSTEMD_BLUEALSA_APLAY_ARGS ?= "" -- cgit v1.2.3-54-g00ecf