name=ffmpeg version=4.0 dlextract "http://ffmpeg.org/releases/$name-$version.tar.bz2" \ 'bf6d0540acb6270fa52fdc53010a1206' _ cd "$name-$version" optional="" for opt in gnutls libvpx libvorbis libass libx264; do lib="$opt" case "$opt" in libvpx) lib=vpx ;; libvorbis) lib=vorbis ;; libx264) lib=x264 ;; esac pkg-config --exists "$lib" && optional+=" --enable-$opt" done ./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: