mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-19 15:41:51 +01:00
133 lines
3.4 KiB
Plaintext
133 lines
3.4 KiB
Plaintext
# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
|
|
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
|
|
# Contributor: Jakub Skrzypnik <j.skrzypnik@openmailbox.org>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=ffmpeg
|
|
pkgver=4.1.3
|
|
pkgrel=1
|
|
pkgdesc="Complete and free Internet live audio and video broadcasting solution for Linux/Unix"
|
|
url="https://ffmpeg.org"
|
|
arch="all"
|
|
license="LGPL-2.1-or-later GPL-2.0-or-later"
|
|
options="!check" # tests/data/hls-lists.append.m3u8 fails
|
|
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
|
|
makedepends="gnutls-dev lame-dev libvorbis-dev xvidcore-dev zlib-dev libvdpau-dev
|
|
imlib2-dev x264-dev libtheora-dev coreutils bzip2-dev perl-dev libvpx-dev
|
|
libvpx-dev sdl2-dev libxfixes-dev libva-dev alsa-lib-dev
|
|
v4l-utils-dev yasm opus-dev x265-dev libass-dev"
|
|
checkdepends="rsync"
|
|
source="https://ffmpeg.org/releases/ffmpeg-$pkgver.tar.xz
|
|
0001-libavutil-clean-up-unused-FF_SYMVER-macro.patch
|
|
"
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
|
|
# secfixes:
|
|
# 4.0.2-r0:
|
|
# - CVE-2018-13300
|
|
# - CVE-2018-13301
|
|
# - CVE-2018-13302
|
|
# - CVE-2018-13303
|
|
# - CVE-2018-13304
|
|
# - CVE-2018-14394
|
|
# - CVE-2018-14395
|
|
# 4.0.1-r0:
|
|
# - CVE-2018-12458
|
|
# - CVE-2018-12459
|
|
# - CVE-2018-12460
|
|
# 4.0.0-r0:
|
|
# - CVE-2018-6912
|
|
# - CVE-2018-7751
|
|
# - CVE-2018-7757
|
|
# 3.4.4-r0:
|
|
# - CVE-2018-14395
|
|
# 3.4.3-r0:
|
|
# - CVE-2018-7557
|
|
# - CVE-2018-7751
|
|
# - CVE-2018-10001
|
|
# - CVE-2018-12458
|
|
# - CVE-2018-13300
|
|
# - CVE-2018-13302
|
|
# - CVE-2018-14394
|
|
# 3.3.4-r0:
|
|
# - CVE-2017-14054
|
|
# - CVE-2017-14055
|
|
# - CVE-2017-14056
|
|
# - CVE-2017-14057
|
|
# - CVE-2017-14058
|
|
# - CVE-2017-14059
|
|
# - CVE-2017-14169
|
|
# - CVE-2017-14170
|
|
# - CVE-2017-14171
|
|
# - CVE-2017-14222
|
|
# - CVE-2017-14223
|
|
# - CVE-2017-14225
|
|
|
|
build() {
|
|
local _dbg="--disable-debug"
|
|
local _asm=""
|
|
[ -n "$DEBUG" ] && _dbg="--enable-debug"
|
|
|
|
case "$CARCH" in
|
|
x86 | arm*) _asm="--disable-asm" ;;
|
|
esac
|
|
|
|
cd "$builddir"
|
|
./configure \
|
|
--prefix=/usr \
|
|
--enable-avresample \
|
|
--enable-avfilter \
|
|
--enable-gnutls \
|
|
--enable-gpl \
|
|
--enable-libass \
|
|
--enable-libmp3lame \
|
|
--enable-libvorbis \
|
|
--enable-libvpx \
|
|
--enable-libxvid \
|
|
--enable-libx264 \
|
|
--enable-libx265 \
|
|
--enable-libtheora \
|
|
--enable-libv4l2 \
|
|
--enable-postproc \
|
|
--enable-pic \
|
|
--enable-pthreads \
|
|
--enable-shared \
|
|
--enable-libxcb \
|
|
--disable-stripping \
|
|
--disable-static \
|
|
--disable-librtmp \
|
|
--enable-vaapi \
|
|
--enable-vdpau \
|
|
--enable-libopus \
|
|
$_asm $_dbg
|
|
make
|
|
${CC:-gcc} -o tools/qt-faststart $CFLAGS tools/qt-faststart.c
|
|
make doc/ffmpeg.1 doc/ffplay.1
|
|
}
|
|
|
|
# https://ffmpeg.org/fate.html
|
|
check() {
|
|
cd "$builddir"
|
|
./configure \
|
|
--samples=fate-suite/
|
|
make fate-rsync
|
|
make fate-list
|
|
make fate
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make DESTDIR="$pkgdir" install install-man
|
|
install -D -m755 tools/qt-faststart "$pkgdir/usr/bin/qt-faststart"
|
|
# strip --strip-debug "$pkgdir"/usr/lib/*.a
|
|
}
|
|
|
|
libs() {
|
|
pkgdesc="Libraries for ffmpeg"
|
|
replaces="ffmpeg"
|
|
mkdir -p "$subpkgdir"/usr
|
|
mv "$pkgdir"/usr/lib "$subpkgdir"/usr
|
|
}
|
|
|
|
sha512sums="0a540a0c5395f42c6079bc26d1b3baca453995693da7de21da469ce40b3a548bea14ff46a72c6f4c32256333855f9b86207cb8bf1d0dda33a17ddca54970daa3 ffmpeg-4.1.3.tar.xz
|
|
1047a23eda51b576ac200d5106a1cd318d1d5291643b3a69e025c0a7b6f3dbc9f6eb0e1e6faa231b7e38c8dd4e49a54f7431f87a93664da35825cc2e9e8aedf4 0001-libavutil-clean-up-unused-FF_SYMVER-macro.patch"
|