#!/bin/sh set -e BUILD="$(pwd)" USER_OPTS="$@" if test -f "$BUILD"/ffmpeg_options ; then USER_OPTS="$(cat "$BUILD"/ffmpeg_options) $USER_OPTS" fi OPTIONS="--enable-gpl --enable-avresample --disable-debug --disable-doc $USER_OPTS" echo Using ffmpeg options: $OPTIONS mkdir -p "$BUILD"/ffmpeg_build cd "$BUILD"/ffmpeg_build "$BUILD"/ffmpeg/configure --prefix="$BUILD"/build_libs --enable-static --disable-shared $OPTIONS