]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
mpd: add option for ffmpeg support
authorPeter Korsgaard <jacmet@sunsite.dk>
Sat, 19 Feb 2011 19:42:02 +0000 (20:42 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 19 Feb 2011 19:42:02 +0000 (20:42 +0100)
For all the special file formats supported by ffmpeg.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/multimedia/mpd/Config.in
package/multimedia/mpd/mpd.mk

index e418d32c19e5eb4a9f5678491972d349fd41221f..2b3bacfbca2f7c6dc586da0c1f18408224388585 100644 (file)
@@ -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"
index 728feaa06f4c918443e584ac761ce57653326bef..3653152f4d801bd4206ae0ed514e1fcc2fa487fd 100644 (file)
@@ -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 \