package/alure: add libsndfile decoder option
authorRomain Naour <romain.naour@gmail.com>
Sun, 5 Jan 2020 11:32:03 +0000 (12:32 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 12 Jan 2020 20:21:02 +0000 (21:21 +0100)
Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/alure/Config.in
package/alure/alure.mk

index 4e26ca4f3971f40203934c5e0f98d06df0e5869d..be3f8ebfdddcd1aacf9cc844e9ad349c9be2cc5b 100644 (file)
@@ -30,6 +30,12 @@ config BR2_PACKAGE_ALURE_OPUS_DECODER
        help
          Enables the built-in libopusfile decoder.
 
+config BR2_PACKAGE_ALURE_SNDFILE_DECODER
+       bool "sndfile decoder"
+       select BR2_PACKAGE_LIBSNDFILE
+       help
+         Enables the built-in libsndfile decoder.
+
 config BR2_PACKAGE_ALURE_VORBIS_DECODER
        bool "vorbis decoder"
        select BR2_PACKAGE_LIBOGG
index 954990df08f20d9cfbbd8d315e265b8288262954..3e88e09664e43851fe7e4c807c424be8c17d1aa7 100644 (file)
@@ -17,7 +17,6 @@ ALURE_DEPENDENCIES = openal
 ALURE_CONF_OPTS = -DALURE_INSTALL=ON \
        -DALURE_BUILD_EXAMPLES=OFF \
        -DALURE_ENABLE_MINIMP3=OFF \
-       -DALURE_ENABLE_SNDFILE=OFF \
        -DALURE_ENABLE_WAVE=ON
 
 ifeq ($(BR2_PACKAGE_ALURE_FLAC_DECODER),y)
@@ -33,6 +32,13 @@ else
 ALURE_CONF_OPTS += -DALURE_ENABLE_OPUS=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_ALURE_SNDFILE_DECODER),y)
+ALURE_CONF_OPTS += -DALURE_ENABLE_SNDFILE=ON
+ALURE_DEPENDENCIES += libsndfile
+else
+ALURE_CONF_OPTS += -DALURE_ENABLE_SNDFILE=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_ALURE_VORBIS_DECODER),y)
 ALURE_CONF_OPTS += -DALURE_ENABLE_VORBIS=ON
 ALURE_DEPENDENCIES += libogg libvorbis