You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
2.1 KiB
54 lines
2.1 KiB
name=ffmpeg
|
|
version=3.3
|
|
update_url='https://ffmpeg.org/download.html'
|
|
|
|
# Extract from EXTERNAL_LIBRARY_LIST in the configure script, except EXTERNAL_AUTODETECT_LIBRARY_LIST and
|
|
# 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" \
|
|
'7432155db3103cf0de8eb7d4ee304452'
|
|
header_end
|
|
|
|
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_bindir" \
|
|
--datadir="/$dir_prefix/$dir_datadir/$name" \
|
|
--docdir="/$dir_prefix/$dir_docdir/$name" \
|
|
--libdir="/$dir_prefix/$dir_libdir" \
|
|
--incdir="/$dir_prefix/$dir_includedir" \
|
|
--mandir="/$dir_prefix/$dir_mandir" \
|
|
--enable-gpl \
|
|
--enable-version3 \
|
|
$optional
|
|
|
|
make
|
|
make DESTDIR="$dir_install" install
|
|
|
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab:
|
|
|