gst1-plugins-bad: Add OpenAL dependency
authorAndré Hentschel <nerv@dawncrow.de>
Sun, 20 Dec 2015 16:36:24 +0000 (17:36 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 20 Dec 2015 21:52:44 +0000 (22:52 +0100)
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/gstreamer1/gst1-plugins-bad/Config.in
package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk

index f7714016bcda252821dbecb7379c9bb049d59903..134e1aac7e55d3e6096ab0c1a032a5bf7bc4f004 100644 (file)
@@ -562,6 +562,16 @@ config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_NEON
        help
          lib neon http client src
 
+config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_OPENAL
+       bool "openal"
+       depends on BR2_INSTALL_LIBSTDCPP
+       depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
+       select BR2_PACKAGE_OPENAL
+
+comment "openal plugin needs a toolchain w/ NPTL, C++"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL \
+               || !BR2_INSTALL_LIBSTDCPP
+
 config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_OPENCV
        bool "opencv"
        depends on BR2_PACKAGE_OPENCV
index a707df96f6b724a5392b03c14c850cf2bee330b7..64760a8c454abce3a74408cb6d4fbee4b51c3b2f 100644 (file)
@@ -57,7 +57,6 @@ GST1_PLUGINS_BAD_CONF_OPTS += \
        --disable-mplex \
        --disable-nas \
        --disable-ofa \
-       --disable-openal \
        --disable-openexr \
        --disable-openjpeg \
        --disable-openni2 \
@@ -702,6 +701,13 @@ else
 GST1_PLUGINS_BAD_CONF_OPTS += --disable-neon
 endif
 
+ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_OPENAL),y)
+GST1_PLUGINS_BAD_CONF_OPTS += --enable-openal
+GST1_PLUGINS_BAD_DEPENDENCIES += openal
+else
+GST1_PLUGINS_BAD_CONF_OPTS += --disable-openal
+endif
+
 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_OPENCV),y)
 GST1_PLUGINS_BAD_CONF_OPTS += --enable-opencv
 GST1_PLUGINS_BAD_DEPENDENCIES += opencv