summaryrefslogtreecommitdiff
path: root/data/ffmpeg/make.sh
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-03 04:55:57 +0000
committerSam Bingner <sam@bingner.com>2019-04-09 23:20:34 -1000
commitd45ac09ba213985705f64b3043d81e17b30d60ca (patch)
treee08685c58575dd70f3428ff4fe276bbc6fc10180 /data/ffmpeg/make.sh
parent785794570aa7eb714f9a0349dff56fdffdbf276a (diff)
ffmpeg
Diffstat (limited to 'data/ffmpeg/make.sh')
-rw-r--r--data/ffmpeg/make.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/data/ffmpeg/make.sh b/data/ffmpeg/make.sh
new file mode 100644
index 000000000..7b3acf690
--- /dev/null
+++ b/data/ffmpeg/make.sh
@@ -0,0 +1,23 @@
+pkg:setup
+ARCH=$(echo ${PKG_TARG} | sed -e s/'-.*'//)
+
+_args='--enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-gnutls '
+_args+='--enable-gpl --enable-libmp3lame --enable-libopus --enable-libtheora '
+_args+='--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 '
+_args+='--enable-libxvid --enable-lzma'
+
+# 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=/usr --enable-cross-compile --cross-prefix=${PKG_TARG}- --target-os=darwin \
+ --disable-static --enable-shared --disable-debug --disable-stripping \
+ ${_args} # --enable-nonfree
+make
+pkg:install