summaryrefslogtreecommitdiff
path: root/repo/media/ffmpeg4.xibuild
blob: f17b0ef3feb57bc798f3ef7acee4e0f7d84ca68f (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
#!/bin/sh

NAME="ffmpeg4"
DESC="Complete and free Internet live audio and video broadcasting solution for Linux/Unix"

MAKEDEPS="make "
DEPS="alsa-lib aom gnutls libass bzip2 dav1d libdrm pulseaudio librist libsrt libtheora libva libvorbis libvpx libwebp libx11 libxcb musl opus sdl2 v4l-utils vidstab x264 x265 xvidcore zlib lame soxr"

PKG_VER=4.4.1
SOURCE="https://ffmpeg.org/releases/ffmpeg-$PKG_VER.tar.xz"
ADDITIONAL="
0001-ffbuild-libversion.sh-add-shebang.patch
0001-libavutil-clean-up-unused-FF_SYMVER-macro.patch
"

prepare () {
    apply_patches
}

build () {
    ./configure \
        --prefix=/usr \
        --enable-avresample \
        --enable-avfilter \
        --enable-gnutls \
        --enable-gpl \
        --enable-libass \
        --enable-libmp3lame \
        --enable-libpulse \
        --enable-libvorbis \
        --enable-libvpx \
        --enable-libxvid \
        --enable-libx264 \
        --enable-libx265 \
        --enable-libtheora \
        --enable-libv4l2 \
        --enable-libdav1d \
        --enable-lto \
        --enable-postproc \
        --enable-pic \
        --enable-pthreads \
        --enable-shared \
        --enable-libxcb \
        --enable-libsrt \
        --enable-libvidstab \
        --disable-stripping \
        --disable-static \
        --disable-librtmp \
        --enable-libaom \
        --enable-libopus \
        --enable-libsoxr \
        --enable-libwebp \
        --enable-vaapi \
        --enable-vdpau \
        --enable-libdrm

    make
}

package () {
    make DESTDIR=$PKG_DEST install
    rm -rf $PKG_DEST/usr/bin
    rm -rf $PKG_DEST/usr/share
}