blob: 894aac0e4d6315a685e77e50c97631ff4271613b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# 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=3.2.4
pkgrel=0
pkgdesc="Complete and free Internet live audio and video broadcasting solution for Linux/Unix"
url="http://ffmpeg.org/"
arch="all"
license="GPL"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
makedepends="gnutls-dev lame-dev libvorbis-dev xvidcore-dev zlib-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 rtmpdump-dev
v4l-utils-dev yasm opus-dev x265-dev"
source="http://ffmpeg.org/releases/ffmpeg-$pkgver.tar.bz2
0001-libavutil-clean-up-unused-FF_SYMVER-macro.patch
cflags-speed-O2.patch
"
# secfixes:
# 3.2.4-r0:
# - CVE-2017-5024
# - CVE-2017-5025
builddir="$srcdir/$pkgname-$pkgver"
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-libmp3lame \
--enable-librtmp \
--enable-libvorbis \
--enable-libvpx \
--enable-libxvid \
--enable-libx264 \
--enable-libx265 \
--enable-libtheora \
--enable-libv4l2 \
--enable-postproc \
--enable-pic \
--enable-pthreads \
--enable-shared \
--enable-x11grab \
--disable-stripping \
--disable-static \
--enable-vaapi \
--enable-libopus \
$_asm $_dbg \
|| return 1
make || return 1
${CC:-gcc} -o tools/qt-faststart $CFLAGS tools/qt-faststart.c || return 1
make doc/ffmpeg.1 doc/ffplay.1 doc/ffserver.1 || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install install-man || return 1
install -D -m755 tools/qt-faststart "$pkgdir/usr/bin/qt-faststart" || return 1
# strip --strip-debug "$pkgdir"/usr/lib/*.a || return 1
}
libs() {
pkgdesc="Libraries for ffmpeg"
replaces="ffmpeg"
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/lib "$subpkgdir"/usr
}
<<<<<<< HEAD
sha512sums="7cb61684081bbe905ef324f60d259fd543e8be1ed2593167beb9324bec8bbc012cccff40a73e8be0ccc6bb0a20acd98a3dbac0d1d39403016cb381c1410b45db ffmpeg-3.2.2.tar.bz2
=======
sha512sums="ba5004d0f2659faa139c7dbf2f0fc6bab1d4e017d919f4ac271a5d2e8e4a3478909176e3a4d1ad33ddf2f62ab28dd9e00ce9be1399efb7cb3276dde79134cdaa ffmpeg-3.2.4.tar.bz2
>>>>>>> main/ffmpeg: security upgrade to 3.2.4 - fixes #6869
32652e18d4eb231a2e32ad1cacffdf33264aac9d459e0e2e6dd91484fced4e1ca5a62886057b1f0b4b1589c014bbe793d17c78adbaffec195f9a75733b5b18cb 0001-libavutil-clean-up-unused-FF_SYMVER-macro.patch
5ff940abb4265401eebb0f2fd486b51a004d62a480c5a64bc279149731b577b5c95f0b7ff2d73429ec10b1f0b76ecf7fa466b02ba3a0bf79d9b7ac2ae87ee5d5 cflags-speed-O2.patch"
|