1DOLLY 82PACKAGE ffmpeg3REQUIRES HOST runtime@04REQUIRES HOST threads@056# FFmpeg from upstream's release archive, unchanged, configured by its own7# configure script under Slop and built by its Makefiles: ffmpeg, ffprobe,8# and the libraries with their headers for programs the cc package builds.9# The LGPL build: FFmpeg's own codecs, formats, devices and filters, zlib10# from amy and no other library (--disable-autodetect). configure is told:11# - --target-os=none: it knows no Dolly (uname -s) and stops naming it; none12#   is its OS without settings of its own, so every feature is probed;13# - --arch=wasm, which uname -m gives, and --disable-asm: no simd128 code;14# - the cc package's compiler for target and host (its defaults are gcc and15#   g++); ar s to index an archive, as there is no ranlib; nothing to strip16#   with; no documentation (its manual pages below);17# - pthreads, required: every program linked with these needs threads@0.18# It knows Clang by the banner of cc -v and compresses its resources with the19# gzip package, which also unpacks the archive here.20FROM /Dollyfile-system-tools 7dc08859cff6c590c9bf42278822be15b530cc9d18438481449469995c2bf8fe21USE /Dollyfile-gzip cef69a22c3b9f73889f4c819fcfaee2fb4487474ea4efa364117b8796465d1a422INSTALL /Dollyfile-zlib acf8f8daaba24468b5b521bbb4d4ba3e034fe28d7a2d92fc680d2e39a1cea9712324REQUIRES HEADER libc25REQUIRES HEADER zlib26REQUIRES LIB    z27REQUIRES TOOL   ar28REQUIRES TOOL   cc29REQUIRES TOOL   cp30REQUIRES TOOL   gzip31REQUIRES TOOL   make32REQUIRES TOOL   mkdir33REQUIRES TOOL   tar34REQUIRES TOOL   test3536SOURCE /dist/static/ffmpeg/ffmpeg-9.0.2.tar.gz 84960df915059e8754fef2cd7c9afeb614062b1b5458ec471eecee619ee04e98 /tmp/ffmpeg.tar.gz37SLOP gzip -dc /tmp/ffmpeg.tar.gz | tar -xf - -C /tmp38SLOP mkdir /tmp/ffmpeg-build39SLOP CWD /tmp/ffmpeg-build time /tmp/ffmpeg-9.0.2/configure --prefix=/usr --target-os=none --arch=wasm --disable-asm \40  --cc=cc --cxx=c++ --host-cc=cc --ar=ar --ranlib='ar s' --disable-stripping --disable-doc --disable-debug \41  --disable-autodetect --enable-pthreads --enable-zlib42SLOP CWD /tmp/ffmpeg-build time make -j443SLOP CWD /tmp/ffmpeg-build make install4445# Two seconds of test pattern and tone, encoded by FFmpeg's own MPEG-4 and46# FLAC encoders and read back.47SLOP ffmpeg -hide_banner -loglevel error -f lavfi -i testsrc2=size=160x120:rate=10:duration=2 \48  -f lavfi -i sine=frequency=440:duration=2 -c:v mpeg4 -c:a flac /tmp/ffmpeg-check.mkv49SLOP test "$(ffprobe -v error -show_entries stream=codec_name -of csv=p=0 /tmp/ffmpeg-check.mkv)" = "$(printf 'mpeg4\nflac')"5051EXPORTS TOOL   ffmpeg52EXPORTS TOOL   ffprobe53EXPORTS LIB    avcodec     /usr/lib/libavcodec.a54EXPORTS LIB    avdevice    /usr/lib/libavdevice.a55EXPORTS LIB    avfilter    /usr/lib/libavfilter.a56EXPORTS LIB    avformat    /usr/lib/libavformat.a57EXPORTS LIB    avutil      /usr/lib/libavutil.a58EXPORTS LIB    swresample  /usr/lib/libswresample.a59EXPORTS LIB    swscale     /usr/lib/libswscale.a60EXPORTS HEADER libavcodec    /usr/include/libavcodec61EXPORTS HEADER libavdevice   /usr/include/libavdevice62EXPORTS HEADER libavfilter   /usr/include/libavfilter63EXPORTS HEADER libavformat   /usr/include/libavformat64EXPORTS HEADER libavutil     /usr/include/libavutil65EXPORTS HEADER libswresample /usr/include/libswresample66EXPORTS HEADER libswscale    /usr/include/libswscale67FILE /usr/lib/pkgconfig/libavcodec.pc68FILE /usr/lib/pkgconfig/libavdevice.pc69FILE /usr/lib/pkgconfig/libavfilter.pc70FILE /usr/lib/pkgconfig/libavformat.pc71FILE /usr/lib/pkgconfig/libavutil.pc72FILE /usr/lib/pkgconfig/libswresample.pc73FILE /usr/lib/pkgconfig/libswscale.pc74FOLDER /usr/share/ffmpeg75# The manual pages are Texinfo, which needs makeinfo and Perl: each command's76# page is its own help.77SLOP ffmpeg -hide_banner -h > /usr/share/man/cat1/ffmpeg.178SLOP ffprobe -hide_banner -h > /usr/share/man/cat1/ffprobe.179FILE /usr/share/man/cat1/ffmpeg.180FILE /usr/share/man/cat1/ffprobe.181SLOP mkdir -p /usr/share/licenses/ffmpeg82SLOP cp /tmp/ffmpeg-9.0.2/LICENSE.md /tmp/ffmpeg-9.0.2/COPYING.LGPLv2.1 /usr/share/licenses/ffmpeg83FILE /usr/share/licenses/ffmpeg/LICENSE.md84FILE /usr/share/licenses/ffmpeg/COPYING.LGPLv2.185