2016-02-03 18:15:24 +01:00
|
|
|
# Maintainer: Ben Widawsky <ben@bwidawsk.net>
|
|
|
|
# Contributor: Rob McCathie <korrode at gmail>
|
|
|
|
# Contributor: Ionut Biru <ibiru@archlinux.org>
|
2016-11-01 16:49:13 +01:00
|
|
|
# Contributor: Bartomiej Piotrowski <bpiotrowski@archlinux.org>
|
2016-02-03 18:15:24 +01:00
|
|
|
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
|
|
|
|
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
|
|
|
|
# Contributor: Paul Mattal <paul@archlinux.org>
|
|
|
|
# Contributor: Martchus <martchus@gmx.net>
|
|
|
|
|
|
|
|
_name=ffmpeg
|
|
|
|
pkgname=ffmpeg-libfdk_aac
|
2020-06-07 00:52:22 +02:00
|
|
|
pkgver=4.2.3
|
|
|
|
pkgrel=1
|
2016-02-03 18:15:24 +01:00
|
|
|
epoch=1
|
2016-07-20 01:10:26 +02:00
|
|
|
pkgdesc='Complete solution to record, convert and stream audio and video (with libfdk-aac support)'
|
2018-07-28 15:12:32 +02:00
|
|
|
arch=('x86_64')
|
2016-04-11 22:25:17 +02:00
|
|
|
url='https://ffmpeg.org/'
|
2016-02-03 18:15:24 +01:00
|
|
|
license=('GPL3' 'custom:libfdk-aac')
|
2018-07-28 15:12:32 +02:00
|
|
|
depends=(
|
2019-02-05 18:04:22 +01:00
|
|
|
alsa-lib
|
|
|
|
aom
|
|
|
|
bzip2
|
|
|
|
fontconfig
|
|
|
|
fribidi
|
|
|
|
gmp
|
|
|
|
gnutls
|
|
|
|
gsm
|
|
|
|
jack
|
|
|
|
lame
|
|
|
|
libass.so
|
|
|
|
libavc1394
|
|
|
|
libbluray.so
|
2019-08-07 19:13:22 +02:00
|
|
|
libdav1d.so
|
2019-02-05 18:04:22 +01:00
|
|
|
libdrm
|
|
|
|
libfreetype.so
|
|
|
|
libiec61883
|
2020-01-23 18:20:29 +01:00
|
|
|
libmfx
|
2019-02-05 18:04:22 +01:00
|
|
|
libmodplug
|
|
|
|
libomxil-bellagio
|
|
|
|
libpulse
|
|
|
|
libraw1394
|
|
|
|
libsoxr
|
|
|
|
libssh
|
|
|
|
libtheora
|
|
|
|
libva-drm.so
|
|
|
|
libva-x11.so
|
|
|
|
libva.so
|
|
|
|
libvdpau
|
|
|
|
libvidstab.so
|
|
|
|
libvorbis.so
|
|
|
|
libvorbisenc.so
|
|
|
|
libvpx.so
|
|
|
|
libwebp
|
|
|
|
libx11
|
|
|
|
libx264.so
|
|
|
|
libx265.so
|
|
|
|
libxcb
|
|
|
|
libxext
|
|
|
|
libxml2
|
|
|
|
libxv
|
|
|
|
libxvidcore.so
|
|
|
|
opencore-amr
|
|
|
|
openjpeg2
|
|
|
|
opus
|
|
|
|
sdl2
|
|
|
|
speex
|
2020-05-09 21:10:13 +02:00
|
|
|
srt
|
2019-02-05 18:04:22 +01:00
|
|
|
v4l-utils
|
2020-05-11 21:18:36 +02:00
|
|
|
vmaf
|
2019-02-05 18:04:22 +01:00
|
|
|
xz
|
|
|
|
zlib
|
|
|
|
|
|
|
|
libfdk-aac
|
|
|
|
)
|
|
|
|
makedepends=(
|
|
|
|
ffnvcodec-headers
|
|
|
|
git
|
|
|
|
ladspa
|
|
|
|
nasm
|
2018-07-28 15:12:32 +02:00
|
|
|
)
|
2020-01-23 18:20:29 +01:00
|
|
|
optdepends=(
|
2020-06-07 00:52:22 +02:00
|
|
|
'avisynthplus: AviSynthPlus support'
|
2020-01-23 18:20:29 +01:00
|
|
|
'intel-media-sdk: Intel QuickSync support'
|
|
|
|
'ladspa: LADSPA filters'
|
2020-04-20 00:12:13 +02:00
|
|
|
'nvidia-utils: Nvidia NVDEC/NVENC support'
|
2020-01-23 18:20:29 +01:00
|
|
|
)
|
2018-07-28 15:12:32 +02:00
|
|
|
provides=(
|
2019-02-05 18:04:22 +01:00
|
|
|
libavcodec.so
|
|
|
|
libavdevice.so
|
|
|
|
libavfilter.so
|
|
|
|
libavformat.so
|
|
|
|
libavutil.so
|
|
|
|
libpostproc.so
|
|
|
|
libswresample.so
|
|
|
|
libswscale.so
|
2018-07-28 15:12:32 +02:00
|
|
|
"ffmpeg=$pkgver"
|
|
|
|
)
|
2016-02-03 18:15:24 +01:00
|
|
|
conflicts=("$_name")
|
2020-05-11 21:18:36 +02:00
|
|
|
|
2020-06-07 00:52:22 +02:00
|
|
|
source=(
|
|
|
|
git+https://git.ffmpeg.org/ffmpeg.git#tag=d3b963cc41824a3c5b2758ac896fb23e20a87875
|
|
|
|
vmaf-model-path.patch
|
|
|
|
)
|
|
|
|
sha256sums=(
|
|
|
|
SKIP
|
|
|
|
8dff51f84a5f7460f8893f0514812f5d2bd668c3276ef7ab7713c99b71d7bd8d
|
|
|
|
)
|
2019-09-15 00:39:13 +02:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd ffmpeg
|
|
|
|
|
|
|
|
git describe --tags | sed 's/^n//'
|
|
|
|
}
|
2016-02-03 18:15:24 +01:00
|
|
|
|
2019-10-25 14:43:05 +02:00
|
|
|
prepare() {
|
|
|
|
cd ffmpeg
|
|
|
|
|
2020-06-07 00:52:22 +02:00
|
|
|
# lavf/mp3dec: don't adjust start time; packets are not adjusted
|
|
|
|
# https://crbug.com/1062037
|
|
|
|
git cherry-pick -n 460132c9980f8a1f501a1f69477bca49e1641233
|
2020-05-11 21:18:36 +02:00
|
|
|
|
2020-06-07 00:52:22 +02:00
|
|
|
patch -Np1 -i "${srcdir}"/vmaf-model-path.patch
|
2019-10-25 14:43:05 +02:00
|
|
|
}
|
|
|
|
|
2016-02-03 18:15:24 +01:00
|
|
|
build() {
|
2018-07-27 12:58:49 +02:00
|
|
|
cd $_name
|
2016-02-03 18:15:24 +01:00
|
|
|
|
|
|
|
./configure \
|
2019-09-15 00:39:13 +02:00
|
|
|
--prefix=/usr \
|
2016-02-03 18:15:24 +01:00
|
|
|
--disable-debug \
|
|
|
|
--disable-static \
|
|
|
|
--disable-stripping \
|
2020-06-07 00:52:22 +02:00
|
|
|
--enable-avisynth \
|
2016-02-03 18:15:24 +01:00
|
|
|
--enable-fontconfig \
|
2016-07-20 01:10:26 +02:00
|
|
|
--enable-gmp \
|
2016-02-03 18:15:24 +01:00
|
|
|
--enable-gnutls \
|
|
|
|
--enable-gpl \
|
|
|
|
--enable-ladspa \
|
2018-07-28 15:12:32 +02:00
|
|
|
--enable-libaom \
|
2016-02-03 18:15:24 +01:00
|
|
|
--enable-libass \
|
|
|
|
--enable-libbluray \
|
2019-08-07 19:13:22 +02:00
|
|
|
--enable-libdav1d \
|
2016-02-03 18:15:24 +01:00
|
|
|
--enable-libfreetype \
|
|
|
|
--enable-libfribidi \
|
2018-07-27 12:58:49 +02:00
|
|
|
--enable-libiec61883 \
|
|
|
|
--enable-libjack \
|
2020-01-04 21:15:06 +01:00
|
|
|
--enable-libmfx \
|
2016-02-03 18:15:24 +01:00
|
|
|
--enable-libgsm \
|
|
|
|
--enable-libmodplug \
|
|
|
|
--enable-libmp3lame \
|
|
|
|
--enable-libopencore_amrnb \
|
|
|
|
--enable-libopencore_amrwb \
|
|
|
|
--enable-libopenjpeg \
|
|
|
|
--enable-libopus \
|
|
|
|
--enable-libpulse \
|
|
|
|
--enable-libsoxr \
|
|
|
|
--enable-libspeex \
|
2020-05-09 21:10:13 +02:00
|
|
|
--enable-libsrt \
|
2016-02-03 18:15:24 +01:00
|
|
|
--enable-libssh \
|
|
|
|
--enable-libtheora \
|
|
|
|
--enable-libv4l2 \
|
|
|
|
--enable-libvidstab \
|
2020-05-11 21:18:36 +02:00
|
|
|
--enable-libvmaf \
|
2016-02-03 18:15:24 +01:00
|
|
|
--enable-libvorbis \
|
|
|
|
--enable-libvpx \
|
|
|
|
--enable-libwebp \
|
|
|
|
--enable-libx264 \
|
|
|
|
--enable-libx265 \
|
2017-04-13 23:40:43 +02:00
|
|
|
--enable-libxcb \
|
2018-01-04 20:24:24 +01:00
|
|
|
--enable-libxml2 \
|
2016-02-03 18:15:24 +01:00
|
|
|
--enable-libxvid \
|
2018-08-29 23:36:23 +02:00
|
|
|
--enable-nvdec \
|
2018-05-13 21:44:57 +02:00
|
|
|
--enable-nvenc \
|
|
|
|
--enable-omx \
|
2016-02-03 18:15:24 +01:00
|
|
|
--enable-shared \
|
|
|
|
--enable-version3 \
|
|
|
|
--enable-libfdk_aac \
|
|
|
|
--enable-nonfree
|
|
|
|
|
|
|
|
make
|
|
|
|
make tools/qt-faststart
|
2018-04-25 22:14:03 +02:00
|
|
|
make doc/ff{mpeg,play}.1
|
2016-02-03 18:15:24 +01:00
|
|
|
|
|
|
|
cp /usr/share/licenses/libfdk-aac/NOTICE .
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2018-07-27 12:58:49 +02:00
|
|
|
cd $_name
|
2016-02-03 18:15:24 +01:00
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install install-man
|
|
|
|
install -Dm 755 tools/qt-faststart "${pkgdir}"/usr/bin/
|
|
|
|
|
|
|
|
install -d "$pkgdir/usr/share/licenses/$pkgname"
|
|
|
|
install -m 0644 NOTICE "$pkgdir/usr/share/licenses/$pkgname/NOTICE"
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim: ts=2 sw=2 et:
|