package/libsndfile: add external libs support
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 23 May 2021 10:11:20 +0000 (12:11 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Mon, 24 May 2021 12:22:53 +0000 (14:22 +0200)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[yann.morin.1998@free.fr: dependencies fit on a single line]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/libsndfile/libsndfile.mk

index 2505e8d17f03223a0135fbf6ffcf7fffa8ce3ace..69530c98ededac77a3e266fa522a3ebb31ce8056 100644 (file)
@@ -18,7 +18,13 @@ LIBSNDFILE_IGNORE_CVES += CVE-2018-13419
 LIBSNDFILE_CONF_OPTS = \
        --disable-sqlite \
        --disable-alsa \
-       --disable-external-libs \
        --disable-full-suite
 
+ifeq ($(BR2_PACKAGE_FLAC)$(BR2_PACKAGE_LIBVORBIS)$(BR2_PACKAGE_OPUS),yyy)
+LIBSNDFILE_DEPENDENCIES += flac host-pkgconf libvorbis opus
+LIBSNDFILE_CONF_OPTS += --enable-external-libs
+else
+LIBSNDFILE_CONF_OPTS += --disable-external-libs
+endif
+
 $(eval $(autotools-package))