summaryrefslogtreecommitdiffstats
path: root/scripts/ffmpeg-config
blob: d82d6383711316f8a50f11856b0db67417cdff65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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 --disable-debug --disable-doc"

if "$BUILD"/scripts/test-libmpv ; then
    OPTIONS="$OPTIONS --enable-pic"
fi

OPTIONS="$OPTIONS $USER_OPTS"

echo Using ffmpeg options: $OPTIONS

mkdir -p "$BUILD"/ffmpeg_build
cd "$BUILD"/ffmpeg_build
PKG_CONFIG_PATH="$BUILD"/build_libs/lib/pkgconfig "$BUILD"/ffmpeg/configure --prefix="$BUILD"/build_libs --enable-static --disable-shared $OPTIONS