1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
3 # Contributor: Ionut Biru <ibiru@archlinux.org>
4 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
5 # Contributor: Paul Mattal <paul@archlinux.org>
10 pkgdesc='Complete solution to record, convert and stream audio and video'
12 url=https://ffmpeg.org/
80 'avisynthplus: AviSynthPlus support'
81 'intel-media-sdk: Intel QuickSync support'
82 'ladspa: LADSPA filters'
83 'nvidia-utils: Nvidia NVDEC/NVENC support'
98 _tag=4bc4cafaef8a55462138d7b6f7579c1522de26dc
99 source=(git+https://git.ffmpeg.org/ffmpeg.git#tag=${_tag})
104 git describe --tags | sed 's/^n//'
109 git cherry-pick -n 988f2e9eb063db7c1a678729f58aab6eba59a55b # fix nvenc on older gpus
117 --incdir=/usr/include/ffmpeg4.4 \
118 --libdir=/usr/lib/ffmpeg4.4 \
123 --disable-stripping \
128 --enable-fontconfig \
138 --enable-libfreetype \
139 --enable-libfribidi \
141 --enable-libiec61883 \
144 --enable-libmodplug \
145 --enable-libmp3lame \
146 --enable-libopencore_amrnb \
147 --enable-libopencore_amrwb \
148 --enable-libopenjpeg \
160 --enable-libvidstab \
176 make tools/qt-faststart
177 make doc/ff{mpeg,play}.1
181 make DESTDIR="${pkgdir}" -C ffmpeg install
185 # Move libs to /usr/lib, except the .so symlinks
187 for f in usr/lib/ffmpeg4.4/*; do
188 if [[ $f == *.so ]]; then
189 ln -srf -- usr/lib/"$(readlink "$f")" "$f"
190 elif [[ ! -d $f ]]; then