mirror of https://git.ffmpeg.org/ffmpeg.git
Add option to disable ffmpeg build.
Patch taken from the Debian package by Sam Hocevar. Originally committed as revision 6871 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6dc7b6b377
commit
786b30af26
2
Makefile
2
Makefile
|
@ -11,11 +11,13 @@ CFLAGS=$(OPTFLAGS) -I$(BUILD_ROOT) -I$(SRC_PATH) -I$(SRC_PATH)/libavutil \
|
||||||
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
|
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
|
||||||
LDFLAGS+= -g
|
LDFLAGS+= -g
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_FFMPEG),yes)
|
||||||
MANPAGES=doc/ffmpeg.1
|
MANPAGES=doc/ffmpeg.1
|
||||||
PROGS_G+=ffmpeg_g$(EXESUF)
|
PROGS_G+=ffmpeg_g$(EXESUF)
|
||||||
PROGS+=ffmpeg$(EXESUF)
|
PROGS+=ffmpeg$(EXESUF)
|
||||||
PROGTEST=output_example$(EXESUF)
|
PROGTEST=output_example$(EXESUF)
|
||||||
QTFASTSTART=qt-faststart$(EXESUF)
|
QTFASTSTART=qt-faststart$(EXESUF)
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_FFSERVER),yes)
|
ifeq ($(CONFIG_FFSERVER),yes)
|
||||||
MANPAGES+=doc/ffserver.1
|
MANPAGES+=doc/ffserver.1
|
||||||
|
|
|
@ -98,6 +98,7 @@ show_help(){
|
||||||
echo " --disable-mpegaudio-hp faster (but less accurate)"
|
echo " --disable-mpegaudio-hp faster (but less accurate)"
|
||||||
echo " MPEG audio decoding [default=no]"
|
echo " MPEG audio decoding [default=no]"
|
||||||
echo " --disable-protocols disable I/O protocols support [default=no]"
|
echo " --disable-protocols disable I/O protocols support [default=no]"
|
||||||
|
echo " --disable-ffmpeg disable ffmpeg build"
|
||||||
echo " --disable-ffserver disable ffserver build"
|
echo " --disable-ffserver disable ffserver build"
|
||||||
echo " --disable-ffplay disable ffplay build"
|
echo " --disable-ffplay disable ffplay build"
|
||||||
echo " --enable-small optimize for size instead of speed"
|
echo " --enable-small optimize for size instead of speed"
|
||||||
|
@ -455,6 +456,7 @@ VHOOKSHFLAGS='$(SHFLAGS)'
|
||||||
netserver="no"
|
netserver="no"
|
||||||
need_inet_aton="no"
|
need_inet_aton="no"
|
||||||
protocols="yes"
|
protocols="yes"
|
||||||
|
ffmpeg="yes"
|
||||||
ffserver="yes"
|
ffserver="yes"
|
||||||
ffplay="yes"
|
ffplay="yes"
|
||||||
LIBOBJFLAGS=""
|
LIBOBJFLAGS=""
|
||||||
|
@ -810,6 +812,8 @@ for opt do
|
||||||
;;
|
;;
|
||||||
--disable-protocols) protocols="no"; network="no"; ffserver="no"
|
--disable-protocols) protocols="no"; network="no"; ffserver="no"
|
||||||
;;
|
;;
|
||||||
|
--disable-ffmpeg) ffmpeg="no"
|
||||||
|
;;
|
||||||
--disable-ffserver) ffserver="no"
|
--disable-ffserver) ffserver="no"
|
||||||
;;
|
;;
|
||||||
--disable-ffplay) ffplay="no"
|
--disable-ffplay) ffplay="no"
|
||||||
|
@ -2104,6 +2108,11 @@ if test "$protocols" = "yes" ; then
|
||||||
echo "CONFIG_PROTOCOLS=yes" >> config.mak
|
echo "CONFIG_PROTOCOLS=yes" >> config.mak
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$ffmpeg" = "yes" ; then
|
||||||
|
echo "#define CONFIG_FFMPEG 1" >> $TMPH
|
||||||
|
echo "CONFIG_FFMPEG=yes" >> config.mak
|
||||||
|
fi
|
||||||
|
|
||||||
if test "$ffserver" = "yes" ; then
|
if test "$ffserver" = "yes" ; then
|
||||||
echo "#define CONFIG_FFSERVER 1" >> $TMPH
|
echo "#define CONFIG_FFSERVER 1" >> $TMPH
|
||||||
echo "CONFIG_FFSERVER=yes" >> config.mak
|
echo "CONFIG_FFSERVER=yes" >> config.mak
|
||||||
|
|
Loading…
Reference in New Issue