blob: b705ace4e3db72bea0a61c9a4df803021f9461fc (
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
# 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-rpi
pkgver="4.0.4"
pkgrel=0
pkgdesc="Complete and free Internet live audio and video broadcasting solution for Linux/Unix - Raspberry Pi"
url="https://ffmpeg.org/"
arch="aarch64"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
options="!check" # tests/data/hls-lists.append.m3u8 fails
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
provides="ffmpeg"
makedepends="
alsa-lib-dev
coreutils
bzip2-dev
gnutls-dev
imlib2-dev
lame-dev
libass-dev
libssh-dev
libtheora-dev
libvorbis-dev
libvpx-dev
libxfixes-dev
perl-dev
sdl2-dev
v4l-utils-dev
x264-dev
x265-dev
xvidcore-dev
yasm
zlib-dev
raspberrypi-dev
"
srcver="4.0.4-Leia-18.4"
source="https://github.com/xbmc/FFmpeg/archive/$srcver.tar.gz
ffmpeg-99.1001-Call-get_format-to-fix-an-issue-with-MMAL-ren.patch
ffmpeg-99.1002-mpeg4video-Signal-unsupported-GMC-with-more-than-one.patch
ffmpeg-99.1003-pfcd_hevc_optimisations.patch
ffmpeg-99.1004-added_upstream_mvc_patches.patch
ffmpeg-99.1008-dav1d-enable-av1.patch
ffmpeg-99.1009-dav1d-fix-multithreaded-av1-sw-decoding.patch
ffmpeg-99.1010-yuv2rgb-logspam.patch
"
# add support for AV1 codec for all archies except armhf and armv7
# as aom is not available on them
_aom="";
unpack() {
default_unpack
mv "FFmpeg-$srcver" "$builddir"
}
build() {
local _dbg="--disable-debug"
[ -n "$DEBUG" ] && _dbg="--enable-debug"
./configure \
--prefix=/usr \
--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 \
--enable-libssh \
--disable-stripping \
--disable-static \
--disable-librtmp \
--disable-vaapi \
--disable-vdpau \
--disable-libopus \
--enable-rpi \
--enable-mmal\
--extra-cflags="-I/opt/vc/include/IL" \
--extra-ldflags="-L/opt/vc/lib" \
--extra-libs="-lbcm_host -lvcos -lvchiq_arm -lmmal -lmmal_core -lmmal_util -lvcsm" \
$_dbg
make
${CC:-gcc} -o tools/qt-faststart $CFLAGS tools/qt-faststart.c
make doc/ffmpeg.1 doc/ffplay.1
}
package() {
make DESTDIR="$pkgdir" install install-man
install -D -m755 tools/qt-faststart "$pkgdir/usr/bin/qt-faststart"
}
libs() {
pkgdesc="Libraries for ffmpeg"
replaces="ffmpeg"
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/lib "$subpkgdir"/usr
}
sha512sums="c6dd75dbff7119adeeda246cfb640b5e8d3b4c242ef83e5ba070207b60f0c715c3fe3cb328d87687b70a133f122a03aba990f0e95f3aac7d5dbcee25bec59078 4.0.4-Leia-18.4.tar.gz
b0d3441b8dcb457254dcb965fbfedcb5bd2bc3bb9b6ae18aacba12d314e01d39a42bc25a4d927413e2783dd9e900a00801a9de254e9fbceb5e6e8b5532fdf31e ffmpeg-99.1001-Call-get_format-to-fix-an-issue-with-MMAL-ren.patch
4ff179c139ec878a9022ebfba69a515bff4c6f8dcfbe1c9b65e7be818a4a4a087589cc33e9164030cff71dda81ce3751038b90f778feba4b7817c5f8341641dd ffmpeg-99.1002-mpeg4video-Signal-unsupported-GMC-with-more-than-one.patch
9c946a401283b7d2b4e4a9691c25a52ca988fba75414f8453a38998747496377f0556994564388ad18453282b003c70bbd11433bf79d65cd12197a213028848e ffmpeg-99.1003-pfcd_hevc_optimisations.patch
5a34fe204e7e488db6b6abca01518a946739c1a57e67e8e56c8fa3c78395f04447780773f7b7f5713a009945b34c6993ac5231073961ae514223c1f351919764 ffmpeg-99.1004-added_upstream_mvc_patches.patch
eb7e71371f395a37c179876f500857132f8b4e5dc3bc8641cbfbd897302808fc31c4fec329fcb1974aba19a5f64fcbf23d6f6a21b9e6fdac5beb94e6aab31c8d ffmpeg-99.1008-dav1d-enable-av1.patch
36c8814d90cff693dbe6a7c6eb50682a0edceef6dfa435e4ef24f42c7d478693bdae9294178ab3e91b7eb2365bed6ef3580d3eec229392d27c83c610eebb3362 ffmpeg-99.1009-dav1d-fix-multithreaded-av1-sw-decoding.patch
19b4d4bbdaa0ed64f37eae87d9b68e593e645569df11692fbbb3d3d2d53f627d3820a28a643e36216ea5780f8c5c18ed24cc66ef6ef1b898716fe57750decfbd ffmpeg-99.1010-yuv2rgb-logspam.patch"
|