Browse Source

mpd: add option for ffmpeg support

For all the special file formats supported by ffmpeg.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Peter Korsgaard 14 years ago
parent
commit
833724e1b1
2 changed files with 18 additions and 0 deletions
  1. 11 0
      package/multimedia/mpd/Config.in
  2. 7 0
      package/multimedia/mpd/mpd.mk

+ 11 - 0
package/multimedia/mpd/Config.in

@@ -144,6 +144,17 @@ config BR2_PACKAGE_MPD_WAVPACK
 	  Enable wavpack input support.
 	  Select this if you want to play back WV files.
 
+config BR2_PACKAGE_MPD_FFMPEG
+	bool "ffmpeg"
+	select BR2_PACKAGE_FFMPEG
+	depends on BR2_LARGEFILE
+	help
+	  Enable ffmpeg input support.
+	  Select this if you want to play back files supported by ffmpeg.
+
+comment "ffmpeg support requires a toolchain with LARGEFILE support"
+	depends on !BR2_LARGEFILE
+
 endif
 
 comment "mpd requires a toolchain with C++ and WCHAR support"

+ 7 - 0
package/multimedia/mpd/mpd.mk

@@ -107,6 +107,13 @@ else
 MPD_CONF_OPT += --disable-wavpack
 endif
 
+ifeq ($(BR2_PACKAGE_MPD_FFMPEG),y)
+MPD_DEPENDENCIES += ffmpeg
+MPD_CONF_OPT += --enable-ffmpeg
+else
+MPD_CONF_OPT += --disable-ffmpeg
+endif
+
 define MPD_INSTALL_EXTRA_FILES
 	@if [ ! -f $(TARGET_DIR)/etc/mpd.conf ]; then \
 		$(INSTALL) -D package/multimedia/mpd/mpd.conf \