diff options
Diffstat (limited to 'repo/ffmpeg4/ffmpeg4.xibuild')
-rw-r--r-- | repo/ffmpeg4/ffmpeg4.xibuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/repo/ffmpeg4/ffmpeg4.xibuild b/repo/ffmpeg4/ffmpeg4.xibuild new file mode 100644 index 0000000..f17b0ef --- /dev/null +++ b/repo/ffmpeg4/ffmpeg4.xibuild @@ -0,0 +1,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 +} |