Skip to contentSkip to conversation

package/mpd: add openal optional dependency

PATCH New Fabrice Fontaine 2 participants 2 messages Aug 14, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/mpd: add openal optional dependency

---
 package/mpd/Config.in | 12 ++++++++++++
 package/mpd/mpd.mk    |  7 +++++++
 2 files changed, 19 insertions(+)
package/mpd/Config.in +12 -0
index 1b3ab8fa5d..791fb0f54a 100644
@@ -286,6 +286,18 @@ comment "jack support needs a toolchain w/ dynamic library"
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4
 	depends on BR2_STATIC_LIBS
 
+config BR2_PACKAGE_MPD_OPENAL
+	bool "openal"
+	depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
+	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
+	select BR2_PACKAGE_OPENAL
+	help
+	  Enable OpenAL output support.
+
+comment "openal support needs a toolchain w/ NPTL"
+	depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
+	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
+
 config BR2_PACKAGE_MPD_OSS
 	bool "oss"
 	help
package/mpd/mpd.mk +7 -0
index b8df04f084..a3b90aa55f 100644
@@ -200,6 +200,13 @@ else
 MPD_CONF_OPTS += -Dneighbor=false
 endif
 
+ifeq ($(BR2_PACKAGE_MPD_OPENAL),y)
+MPD_DEPENDENCIES += openal
+MPD_CONF_OPTS += -Dopenal=enabled
+else
+MPD_CONF_OPTS += -Dopenal=disabled
+endif
+
 ifeq ($(BR2_PACKAGE_MPD_OPUS),y)
 MPD_DEPENDENCIES += opus libogg
 MPD_CONF_OPTS += -Dopus=enabled
Signature · 1 line
2.27.0
#1 lore raw

PATCH 1/1 package/mpd: add openal optional dependency

Quoted 5 lines · On Fri, 14 Aug 2020 18:30:26 +0200 Fabrice Fontaine…
---
 package/mpd/Config.in | 12 ++++++++++++
 package/mpd/mpd.mk    |  7 +++++++
 2 files changed, 19 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com