Advertisement
Guest User

updateffmpeg.zsh

a guest
Oct 6th, 2014
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.85 KB | None | 0 0
  1. #!/usr/bin/env zsh
  2. set -e
  3. srcpath=$(dirname $0)
  4. CFLAGS="-fomit-frame-pointer -pipe"
  5. MAKEOPTS=( -j5 )
  6.  
  7. git=1
  8.  
  9. build_libvpx() {
  10.     pushd $srcpath/webm.libvpx
  11.     make clean
  12.     if ((git))
  13.     then
  14.         git pull || git checkout origin/master
  15.     fi
  16.     ./configure --prefix=$HOME/local  --cpu=haswell --disable-runtime-cpu-detect  --enable-shared --extra-cflags=$CFLAGS
  17.     make $MAKEOPTS
  18.     make install || :
  19.     popd
  20. }
  21.  
  22. build_ffmpeg() {
  23.     pushd $srcpath/ffmpeg
  24.     make clean || :
  25.     if ((git))
  26.     then
  27.         git pull
  28.     fi
  29.     ./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
  30.     make -j5
  31.     make install
  32. }
  33. build_libvpx
  34. build_ffmpeg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement