aboutsummaryrefslogtreecommitdiff
path: root/extra/ffmpeg/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/ffmpeg/build')
-rwxr-xr-xextra/ffmpeg/build25
1 files changed, 25 insertions, 0 deletions
diff --git a/extra/ffmpeg/build b/extra/ffmpeg/build
new file mode 100755
index 00000000..db997201
--- /dev/null
+++ b/extra/ffmpeg/build
@@ -0,0 +1,25 @@
+#!/bin/sh -e
+
+./configure \
+ --prefix=/usr \
+ --enable-shared \
+ --enable-gpl \
+ --enable-version3 \
+ --enable-libass \
+ --enable-libmp3lame \
+ --enable-libopus \
+ --enable-libvorbis \
+ --enable-libtheora \
+ --enable-libvpx \
+ --enable-libx264 \
+ --enable-libx265 \
+ --enable-libxvid \
+ --enable-libwebp \
+ --enable-libdrm \
+ --disable-debug
+
+make CC="${CC:-gcc}"
+make DESTDIR="$1" install
+
+# Remove examples.
+rm -rf "$1/usr/share/ffmpeg/examples"