Commit 62509dfe authored by Jan Gerber's avatar Jan Gerber
Browse files

split build and checkout of ffmpeg

parent 03bbb8ee
......@@ -28,6 +28,7 @@ opts = Variables()
opts.AddVariables(
BoolVariable('static', 'Set to 1 for static linking', 0),
BoolVariable('debug', 'Set to 1 to enable debugging', 0),
BoolVariable('build_ffmpeg', 'Set to 1 to build local copy of ffmpeg', 0),
('prefix', 'install files in', '/usr/local'),
('bindir', 'user executables', 'PREFIX/bin'),
('mandir', 'man documentation', 'PREFIX/man'),
......@@ -109,6 +110,12 @@ conf = Configure(env, custom_tests = {
'CheckPKG' : CheckPKG,
})
if env["build_ffmpeg"]:
if env.GetOption('clean'):
TryAction("cd ffmpeg;make distclean")
else:
TryAction("./build_ffmpeg.sh")
if not env.GetOption('clean'):
pkgconfig_version='0.15.0'
if not conf.CheckPKGConfig(pkgconfig_version):
......
#!/bin/sh
. ./ffmpegrev
common="--enable-version2 --enable-gpl --enable-postproc --disable-muxers --disable-encoders --enable-libvorbis"
common="$common --disable-avconv --disable-ffmpeg --disable-ffplay --disable-ffserver --disable-ffprobe --disable-doc"
#optional, if you have those libs installed(requires GPL3):
#extra="$extra --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb"
#apt-get install liba52-dev libgsm1-dev
#extra="$extra --enable-libgsm"
#optional, if you have libvpx installed:
#extra="$extra --enable-libvpx"
#linux
options="$common --enable-pthreads $extra"
#mingw32
uname | grep MINGW && options="$common --enable-memalign-hack --enable-mingw32 --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib $extra"
#configure and build ffmpeg
cd $FFMPEG_CO_DIR && ./configure $options && make
#!/bin/sh
common="--enable-version2 --enable-gpl --enable-postproc --disable-muxers --disable-encoders --enable-libvorbis"
common="$common --disable-avconv --disable-ffmpeg --disable-ffplay --disable-ffserver --disable-ffprobe --disable-doc"
#optional, if you have those libs installed(requires GPL3):
#extra="$extra --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb"
#apt-get install liba52-dev libgsm1-dev
#extra="$extra --enable-libgsm"
#optional, if you have libvpx installed:
#extra="$extra --enable-libvpx"
#linux
options="$common --enable-pthreads $extra"
#mingw32
uname | grep MINGW && options="$common --enable-memalign-hack --enable-mingw32 --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib $extra"
cd `dirname $0`
# load FFMPEG specific properties
. ./ffmpegrev
......@@ -38,7 +21,5 @@ apply_patches() {
cd ..
}
#test -e $FFMPEG_CO_DIR/.ffmpeg2theora_patched || apply_patches
#configure and build ffmpeg
cd $FFMPEG_CO_DIR && ./configure $options && make
./build_ffmpeg.sh
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment