Was supposed to be a linux distribution, now just a collection of build scripts for packages on top of (ideally) any distribution.
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.

43 lines
1.9 KiB

name=ffmpeg
8 years ago
version=3.3.2
update_url='https://ffmpeg.org/download.html'
8 years ago
# 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
define_option "!$opt: Enable support for $opt"
done
dlextract "http://ffmpeg.org/releases/$name-$version.tar.bz2" \
8 years ago
'e6e3b5f85eb5cb5448501fe4d8ca5bd0'
_
cd "$name-$version"
optional=""
for opt in $optional_libraries; do
option $opt && optional="$optional --enable-$opt"
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: