package/twolame: libsndfile is optional
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 22 Dec 2019 22:37:21 +0000 (23:37 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 23 Dec 2019 20:04:09 +0000 (21:04 +0100)
libsndfile is optional not mandatory since version 0.4.0 and
https://github.com/njh/twolame/commit/fe2770bffb9da10b7a26c82a340c81299ff82c76

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/twolame/Config.in
package/twolame/twolame.mk

index 95b148b8156b1101d17c54c9a7ea2a973fdd7ba1..588afa4826d655e1caa2febd996fb4a4eb99f1f6 100644 (file)
@@ -1,6 +1,5 @@
 config BR2_PACKAGE_TWOLAME
        bool "twolame"
-       select BR2_PACKAGE_LIBSNDFILE
        help
          TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder
          based on tooLAME by Mike Cheng, which in turn is based upon
index 5837b80a56e4dd443cc25e64d7733c10fa2f2f22..b1abf077b59d16803c64fc4588ef90c084437ea3 100644 (file)
@@ -6,9 +6,15 @@
 
 TWOLAME_VERSION = 0.4.0
 TWOLAME_SITE = http://downloads.sourceforge.net/project/twolame/twolame/$(TWOLAME_VERSION)
-TWOLAME_DEPENDENCIES = host-pkgconf libsndfile
 TWOLAME_INSTALL_STAGING = YES
 TWOLAME_LICENSE = LGPL-2.1+
 TWOLAME_LICENSE_FILES = COPYING
 
+ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
+TWOLAME_DEPENDENCIES += host-pkgconf libsndfile
+TWOLAME_CONF_OPTS += --enable-sndfile
+else
+TWOLAME_CONF_OPTS += --disable-sndfile
+endif
+
 $(eval $(autotools-package))