package/libcanberra: new package
PATCH 1/1 package/libcanberra: new package
This package defines a simple abstract interface for playing event sounds. It is mainly used by desktop applications such as GDM and GNOME Session.
http://0pointer.de/lennart/projects/libcanberra/
--- package/Config.in | 1 + package/libcanberra/Config.in | 17 ++++++++ package/libcanberra/libcanberra.hash | 3 ++ package/libcanberra/libcanberra.mk | 59 ++++++++++++++++++++++++++++ 4 files changed, 80 insertions(+) create mode 100644 package/libcanberra/Config.in create mode 100644 package/libcanberra/libcanberra.hash create mode 100644 package/libcanberra/libcanberra.mk
package/Config.in +1 -0
@@ -1425,6 +1425,7 @@ menu "Audio/Sound" source "package/fdk-aac/Config.in" source "package/libao/Config.in" source "package/libbroadvoice/Config.in" + source "package/libcanberra/Config.in" source "package/libcdaudio/Config.in" source "package/libcddb/Config.in" source "package/libcdio/Config.in"
package/libcanberra/Config.in new file +17 -0
@@ -0,0 +1,17 @@ +comment "libcanberra needs a toolchain w/ wchar, threads, dynamic library" + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS + +comment "libcanberra needs a alsa-lib or pulseaudio or gstreamer" + depends on !BR2_PACKAGE_ALSA_LIB && !BR2_PACKAGE_PULSEAUDIO && !BR2_PACKAGE_GSTREAMER1 + +config BR2_PACKAGE_LIBCANBERRA + bool "libcanberra" + depends on BR2_USE_WCHAR + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_STATIC_LIBS + select BR2_PACKAGE_LIBTOOL + select BR2_PACKAGE_LIBVORBIS + help + libcanberra defines a simple abstract interface for playing event sounds. + + http://0pointer.de/lennart/projects/libcanberra/
package/libcanberra/libcanberra.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally calculated +sha256 c2b671e67e0c288a69fc33dc1b6f1b534d07882c2aceed37004bf48c601afa72 libcanberra-0.30.tar.xz +sha256 a9bdde5616ecdd1e980b44f360600ee8783b1f99b8cc83a2beb163a0a390e861 LGPL
package/libcanberra/libcanberra.mk new file +59 -0
59 lines not on this page · raw message
Signature · 6 lines
2.42.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello,
Thanks for your contribution! I applied it, after adjusting a few things, see below.
Quoted 5 lines · On Tue, 3 Oct 2023 21:40:03 +0900 Takumi Takahashi <[email protected]>…
This package defines a simple abstract interface for playing event sounds. It is mainly used by desktop applications such as GDM and GNOME Session.
Quoted 7 lines
Signed-off-by Takumi Takahashi <[email protected]>--- package/Config.in | 1 + package/libcanberra/Config.in | 17 ++++++++ package/libcanberra/libcanberra.hash | 3 ++ package/libcanberra/libcanberra.mk | 59 ++++++++++++++++++++++++++++ 4 files changed, 80 insertions(+)
An entry in the DEVELOPERS file was missing.
package/libcanberra/Config.in line 5
Quoted 2 lines
package/libcanberra/Config.in new file +2
-0+comment "libcanberra needs a alsa-lib or pulseaudio or gstreamer" + depends on !BR2_PACKAGE_ALSA_LIB && !BR2_PACKAGE_PULSEAUDIO && !BR2_PACKAGE_GSTREAMER1
This is not really useful, as it doesn't prevent a build failure. So instead, I've added...
package/libcanberra/Config.in line 11
Quoted 6 lines
package/libcanberra/Config.in new file +6
-0+ +config BR2_PACKAGE_LIBCANBERRA + bool "libcanberra" + depends on BR2_USE_WCHAR + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_STATIC_LIBS
This:
+ # We need at least one audio backend
+ select BR2_PACKAGE_ALSA_LIB if \
+ !BR2_PACKAGE_PULSEAUDIO && \
+ !BR2_PACKAGE_GSTREAMER1
Quoted 9 lines
package/libcanberra/libcanberra.hash new file +2
-0+sha256 c2b671e67e0c288a69fc33dc1b6f1b534d07882c2aceed37004bf48c601afa72 libcanberra-0.30.tar.xz +sha256 a9bdde5616ecdd1e980b44f360600ee8783b1f99b8cc83a2beb163a0a390e861 LGPLpackage/libcanberra/libcanberra.mk new file +1
-0@@ -0,0 +1,59 @@ +################################################################################
package/libcanberra/libcanberra.mk line 11
Quoted 10 lines
package/libcanberra/libcanberra.mk new file +10
-0+# +# libcanberra +# +################################################################################ + +LIBCANBERRA_VERSION = 0.30 +LIBCANBERRA_SOURCE = libcanberra-$(LIBCANBERRA_VERSION).tar.xz +LIBCANBERRA_SITE = http://0pointer.de/lennart/projects/libcanberra +LIBCANBERRA_LICENSE = LGPL-2.1+ +LIBCANBERRA_LICENSE_FILES = LICENSE
This was incorrect: the file is named "LGPL". I only realized this after pushing, so I fixed up in a follow-up commit.
Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot