Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env zsh
- set -e
- srcpath=$(dirname $0)
- CFLAGS="-fomit-frame-pointer -pipe"
- MAKEOPTS=( -j5 )
- git=1
- build_libvpx() {
- pushd $srcpath/webm.libvpx
- make clean
- if ((git))
- then
- git pull || git checkout origin/master
- fi
- ./configure --prefix=$HOME/local --cpu=haswell --disable-runtime-cpu-detect --enable-shared --extra-cflags=$CFLAGS
- make $MAKEOPTS
- make install || :
- popd
- }
- build_ffmpeg() {
- pushd $srcpath/ffmpeg
- make clean || :
- if ((git))
- then
- git pull
- fi
- ./configure --prefix=$HOME/local --enable-libvpx --enable-libass --cpu=haswell --disable-runtime-cpudetect --enable-libopus --enable-postproc --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-gpl --extra-cflags=$CFLAGS
- make -j5
- make install
- }
- build_libvpx
- build_ffmpeg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement