Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
68 lines (60 sloc) 1.56 KB
#!/bin/bash
needs_tool pkg-config
needs_tool nasm
## ffmpeg is much more useful with these libraries
depends_on libopus
depends_on speex
depends_on libwebp
depends_on x264
depends_on x265
depends_on libvorbis
depends_on libxvid
depends_on libtheora
depends_on lame
[[ $OSTYPE == *linux* ]] && depends_on libasound
depends_on libsdl2
depends_on libfdk-aac
depends_on libvpx
depends_on libaom
depends_on libopenjpeg
depends_on bzip2 ## opportunistic linking, useful for transparent decompression
depends_on xz ## opportunistic linking, useful for transparenet decompression
[[ $OSTYPE == *linux* ]] && depends_on libcrystalhd ## opportunistic linking
fetch_source http://www.ffmpeg.org/releases/ffmpeg-4.0.1.tar.xz dd918d4f7e61608b560537feadb8d2c1d965addf
CONFIGURE=(
--enable-pthreads
--enable-gpl
--enable-version3
--enable-shared
--enable-hardcoded-tables
--enable-avresample
--enable-nonfree
--enable-libx264
--enable-libx265
--enable-libmp3lame
--enable-libxvid
--enable-libtheora
--enable-libvorbis
--enable-sdl2
--enable-libaom
--enable-libspeex
--enable-libopus
--enable-libfdk-aac
--enable-libwebp
--enable-libvpx
--enable-libopenjpeg
--disable-static
--enable-shared
--disable-libxcb
--disable-vaapi
--disable-outdev=xv
--disable-vdpau
)
[[ $OSTYPE == *darwin* ]] && CONFIGURE+=(--enable-videotoolbox --enable-audiotoolbox)
[[ $OSTYPE == *darwin* ]] && CONFIGURE+=(--enable-opencl --enable-appkit --enable-avfoundation --enable-coreimage)
do_unpack
NEEDV1=1 do_compile "${CONFIGURE[@]}"
pushd_src
do_make alltools
install -m755 tools/qt-faststart "$PREFIX/bin"
popd_src