package/alure: add minimp3 decoder option
authorRomain Naour <romain.naour@gmail.com>
Sun, 5 Jan 2020 11:32:04 +0000 (12:32 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 12 Jan 2020 20:21:02 +0000 (21:21 +0100)
Alure doesn't use/need an external minimp3 library.

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 be3f8ebfdddcd1aacf9cc844e9ad349c9be2cc5b..e0064accba0c8a1386b33d71644a6e94ea4d234c 100644 (file)
@@ -23,6 +23,11 @@ config BR2_PACKAGE_ALURE_FLAC_DECODER
        help
          Enables the built-in FLAC decoder.
 
+config BR2_PACKAGE_ALURE_MINIMP3_DECODER
+       bool "minimp3 decoder"
+       help
+         Enables the built-in minimp3 decoder.
+
 config BR2_PACKAGE_ALURE_OPUS_DECODER
        bool "opus decoder"
        select BR2_PACKAGE_LIBOGG
index 3e88e09664e43851fe7e4c807c424be8c17d1aa7..f0eca8a2ee22ca69c7d70d730b0f0ecb109a87ea 100644 (file)
@@ -16,7 +16,6 @@ ALURE_DEPENDENCIES = openal
 # Enable at least one built-in decoder (wave).
 ALURE_CONF_OPTS = -DALURE_INSTALL=ON \
        -DALURE_BUILD_EXAMPLES=OFF \
-       -DALURE_ENABLE_MINIMP3=OFF \
        -DALURE_ENABLE_WAVE=ON
 
 ifeq ($(BR2_PACKAGE_ALURE_FLAC_DECODER),y)
@@ -25,6 +24,12 @@ else
 ALURE_CONF_OPTS += -DALURE_ENABLE_FLAC=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_ALURE_MINIMP3_DECODER),y)
+ALURE_CONF_OPTS += -DALURE_ENABLE_MINIMP3=ON
+else
+ALURE_CONF_OPTS += -DALURE_ENABLE_MINIMP3=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_ALURE_OPUS_DECODER),y)
 ALURE_CONF_OPTS += -DALURE_ENABLE_OPUS=ON
 ALURE_DEPENDENCIES += libogg opus