Web lists-archives.com

[MPlayer-dev-eng] [PATCH] Drop the requirement for FFmpeg when just building the docs




Hello,

This trivial patch allows one to build the documentation without
having to install:
 libavcodec-dev
 libavformat-dev
 libavutil-dev
 libswscale-dev

by just doing:

./configure --disable-ffmpeg_a --disable-mencoder --disable-mplayer
--yasm='' --language=all
make html-chunked

If you use --disable-mencoder --disable-mplayer then FFmpeg is not
needed and there is no reason to error out. The --disable-ffmpeg_a is
needed to avoid a "exit 1" when it tries to use git to download
ffmpeg.

Cheers,
Miguel
--- a/configure
+++ b/configure
@@ -7119,9 +7119,11 @@
   def_ffmpeg_a='#undef CONFIG_FFMPEG_A'
   def_ffmpeg_so='#undef CONFIG_FFMPEG_SO'
   nocodecmodules="ffmpeg $nocodecmodules"
-  echo "Compiling without FFmpeg is currently not supported/working."
-  echo "Please contact us if that is an issue for you."
-  die "both internal and external FFmpeg missing"
+  if test "$_mplayer" = yes || test "$_mencoder" = yes ; then
+    echo "Compiling without FFmpeg is currently not supported/working."
+    echo "Please contact us if that is an issue for you."
+    die "both internal and external FFmpeg missing"
+  fi
 fi
 test "$_vf_lavfi" = yes && def_vf_lavfi='#define CONFIG_VF_LAVFI 1'|| libavfilters=''
 test "$_libavcodec_mpegaudio_hp" = yes &&
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng