Răsfoiți Sursa

mpd: add twolame support

Now that there's a twolame package we can add support for it in mpd.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Gustavo Zacarias 11 ani în urmă
părinte
comite
325dce5f97
2 a modificat fișierele cu 15 adăugiri și 0 ștergeri
  1. 10 0
      package/mpd/Config.in
  2. 5 0
      package/mpd/mpd.mk

+ 10 - 0
package/mpd/Config.in

@@ -184,6 +184,16 @@ config BR2_PACKAGE_MPD_TREMOR
 	  Enable vorbis input support.
 	  Enable vorbis input support.
 	  Select this if you want to play back OGG files on softfloat targets.
 	  Select this if you want to play back OGG files on softfloat targets.
 
 
+config BR2_PACKAGE_MPD_TWOLAME
+	bool "twolame"
+	depends on BR2_LARGEFILE # twolame -> libsndfile
+	select BR2_PACKAGE_TWOLAME
+	help
+	  Enable TwoLAME mp2 encoding.
+
+comment "twolame support needs a toolchain w/ largefile"
+        depends on !BR2_LARGEFILE
+
 config BR2_PACKAGE_MPD_VORBIS
 config BR2_PACKAGE_MPD_VORBIS
 	bool "vorbis"
 	bool "vorbis"
 	select BR2_PACKAGE_LIBOGG
 	select BR2_PACKAGE_LIBOGG

+ 5 - 0
package/mpd/mpd.mk

@@ -132,6 +132,11 @@ MPD_DEPENDENCIES += tremor
 MPD_CONF_OPT += --with-tremor
 MPD_CONF_OPT += --with-tremor
 endif
 endif
 
 
+ifeq ($(BR2_PACKAGE_MPD_TWOLAME),y)
+MPD_DEPENDENCIES += twolame
+MPD_CONF_OPT += --enable-twolame-encoder
+endif
+
 ifeq ($(BR2_PACKAGE_MPD_WAVPACK),y)
 ifeq ($(BR2_PACKAGE_MPD_WAVPACK),y)
 MPD_DEPENDENCIES += wavpack
 MPD_DEPENDENCIES += wavpack
 else
 else