mpd: add option for ffmpeg support

For all the special file formats supported by ffmpeg.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Peter Korsgaard 2011-02-19 20:42:02 +01:00
parent a1c787ea6a
commit 833724e1b1
2 changed files with 18 additions and 0 deletions

View File

@ -144,6 +144,17 @@ config BR2_PACKAGE_MPD_WAVPACK
Enable wavpack input support. Enable wavpack input support.
Select this if you want to play back WV files. 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 endif
comment "mpd requires a toolchain with C++ and WCHAR support" comment "mpd requires a toolchain with C++ and WCHAR support"

View File

@ -107,6 +107,13 @@ else
MPD_CONF_OPT += --disable-wavpack MPD_CONF_OPT += --disable-wavpack
endif 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 define MPD_INSTALL_EXTRA_FILES
@if [ ! -f $(TARGET_DIR)/etc/mpd.conf ]; then \ @if [ ! -f $(TARGET_DIR)/etc/mpd.conf ]; then \
$(INSTALL) -D package/multimedia/mpd/mpd.conf \ $(INSTALL) -D package/multimedia/mpd/mpd.conf \