diff --git a/DEVELOPERS b/DEVELOPERS index 14bf8d982c..a1bb99319c 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2837,6 +2837,7 @@ F: package/tl-expected/ N: Takumi Takahashi F: package/gsettings-desktop-schemas/ +F: package/libcanberra/ N: Tan En De F: package/libkcapi/ diff --git a/package/Config.in b/package/Config.in index a7aee1816d..9da39c2159 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1426,6 +1426,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" diff --git a/package/libcanberra/Config.in b/package/libcanberra/Config.in new file mode 100644 index 0000000000..b24088005a --- /dev/null +++ b/package/libcanberra/Config.in @@ -0,0 +1,21 @@ +comment "libcanberra needs a toolchain w/ wchar, threads, dynamic library" + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \ + BR2_STATIC_LIBS + +config BR2_PACKAGE_LIBCANBERRA + bool "libcanberra" + depends on BR2_USE_WCHAR + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_STATIC_LIBS + # We need at least one audio backend + select BR2_PACKAGE_ALSA_LIB if \ + !BR2_PACKAGE_PULSEAUDIO && \ + !BR2_PACKAGE_GSTREAMER1 + # We need libltdl + 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/ diff --git a/package/libcanberra/libcanberra.hash b/package/libcanberra/libcanberra.hash new file mode 100644 index 0000000000..8dc90ccd88 --- /dev/null +++ b/package/libcanberra/libcanberra.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 c2b671e67e0c288a69fc33dc1b6f1b534d07882c2aceed37004bf48c601afa72 libcanberra-0.30.tar.xz +sha256 a9bdde5616ecdd1e980b44f360600ee8783b1f99b8cc83a2beb163a0a390e861 LGPL diff --git a/package/libcanberra/libcanberra.mk b/package/libcanberra/libcanberra.mk new file mode 100644 index 0000000000..1eadcb571b --- /dev/null +++ b/package/libcanberra/libcanberra.mk @@ -0,0 +1,59 @@ +################################################################################ +# +# 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 +LIBCANBERRA_INSTALL_STAGING = YES + +LIBCANBERRA_DEPENDENCIES = host-pkgconf libtool libvorbis +LIBCANBERRA_CONF_OPTS = --disable-oss --disable-null --disable-tdb --disable-lynx + +ifeq ($(BR2_PACKAGE_HAS_UDEV),y) +LIBCANBERRA_CONF_OPTS += --enable-udev +LIBCANBERRA_DEPENDENCIES += udev +else +LIBCANBERRA_CONF_OPTS += --disable-udev +endif + +ifeq ($(BR2_PACKAGE_ALSA_LIB),y) +LIBCANBERRA_CONF_OPTS += --enable-alsa +LIBCANBERRA_DEPENDENCIES += alsa-lib +else +LIBCANBERRA_CONF_OPTS += --disable-alsa +endif + +ifeq ($(BR2_PACKAGE_PULSEAUDIO),y) +LIBCANBERRA_CONF_OPTS += --enable-pulse +LIBCANBERRA_DEPENDENCIES += pulseaudio +else +LIBCANBERRA_CONF_OPTS += --disable-pulse +endif + +ifeq ($(BR2_PACKAGE_GSTREAMER1),y) +LIBCANBERRA_CONF_OPTS += --enable-gstreamer +LIBCANBERRA_DEPENDENCIES += gstreamer1 +else +LIBCANBERRA_CONF_OPTS += --disable-gstreamer +endif + +ifeq ($(BR2_PACKAGE_LIBGTK2),y) +LIBCANBERRA_CONF_OPTS += --enable-gtk +LIBCANBERRA_DEPENDENCIES += libgtk2 +else +LIBCANBERRA_CONF_OPTS += --disable-gtk +endif + +ifeq ($(BR2_PACKAGE_LIBGTK3_X11),y) +LIBCANBERRA_CONF_OPTS += --enable-gtk3 +LIBCANBERRA_DEPENDENCIES += libgtk3 +else +LIBCANBERRA_CONF_OPTS += --disable-gtk3 +endif + +$(eval $(autotools-package))