summaryrefslogtreecommitdiff
path: root/data/_ffmpeg/make.sh
diff options
context:
space:
mode:
Diffstat (limited to 'data/_ffmpeg/make.sh')
-rw-r--r--data/_ffmpeg/make.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/data/_ffmpeg/make.sh b/data/_ffmpeg/make.sh
new file mode 100644
index 000000000..a61fdbefd
--- /dev/null
+++ b/data/_ffmpeg/make.sh
@@ -0,0 +1,22 @@
+pkg:setup
+ARCH=$(echo ${PKG_TARG} | sed -e s/'-.*'//)
+
+# Arguments taken from:
+# https://github.com/Homebrew/homebrew-core/blob/master/Formula/ffmpeg.rb
+
+# Xz and gnutls included since they are default dependencies.
+
+# WARNING: --enable-gpl and --enable-nonfree can make ffmpeg not legally redistributable.
+# --enable-gpl includes code with the gpl license.
+
+
+./configure --arch=${ARCH} --pkg-config="$(realpath "${PKG_BASE}/util/pkg-config.sh")" \
+ --prefix="$(cat "${PKG_BASE}/arch/${PKG_ARCH}/${PKG_CFTARG}/prefix")" --enable-cross-compile \
+ --cross-prefix="${PKG_TARG}-" --target-os=darwin \
+ --disable-static --enable-shared --disable-debug --disable-stripping \
+ --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-gnutls \
+ --enable-gpl --enable-libmp3lame --enable-libopus --enable-libtheora \
+ --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 \
+ --enable-libxvid --enable-lzma # --enable-nonfree
+make -j16
+pkg:install