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