name=ffmpeg version=3.3.2 update_url='https://ffmpeg.org/download.html' # Extract from EXTERNAL_LIBRARY_LIST in the configure script, except EXTERNAL_AUTODETECT_LIBRARY_LIST and EXTERNAL_LIBRARY_NONFREE_LIST # Last update: 3.3 # NOTE: Not everything has been tested. optional_libraries='avisynth frei0r libcdio librubberband libvidstab libx264 libx265 libxavs libxvid gmp libopencore_amrnb libopencore_amrwb libvo_amrwbenc libsmbclient chromaprint crystalhd gcrypt gnutls jni ladspa libass libbluray libbs2b libcaca libcelt libdc1394 libflite libfontconfig libfreetype libfribidi libgme libgsm libiec61883 libilbc libkvazaar libmodplug libmp3lame libnut libopencv libopenh264 libopenjpeg libopenmpt libopus libpulse librtmp libschroedinger libshine libsmbclient libsnappy libsoxr libspeex libssh libtesseract libtheora libtwolame libv4l2 libvorbis libvpx libwavpack libwebp libzimg libzmq libzvbi mediacodec netcdf openal opencl opengl videotoolbox' for opt in $optional_libraries; do # Rename some options case "$opt" in libpulse) opt=pulseaudio ;; esac define_option "!$opt: Enable support for $opt" done dlextract "http://ffmpeg.org/releases/$name-$version.tar.bz2" \ 'e6e3b5f85eb5cb5448501fe4d8ca5bd0' _ cd "$name-$version" optional="" for opt in $optional_libraries; do flag="$opt" # Rename some options case "$opt" in libpulse) opt=pulseaudio ;; esac option $opt && optional="$optional --enable-$flag" done # ffmpeg uses it's own configure script with arguably differing options to the # regular GNU autotools configure scripts. # Not using compile_configure due to that. ./configure --disable-static --enable-shared \ --prefix="/$dir_prefix" \ --bindir="/$dir_prefix/$dir_bin" \ --datadir="/$dir_prefix/$dir_data/$name" \ --docdir="/$dir_prefix/$dir_doc/$name" \ --libdir="/$dir_prefix/$dir_lib" \ --incdir="/$dir_prefix/$dir_include" \ --mandir="/$dir_prefix/$dir_man" \ --enable-gpl \ --enable-version3 \ $optional make make DESTDIR="$dir_install" install # vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: