From 53b7a6e4a180ddf1baaed8c3393229eb4ffa86f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 29 Jan 2020 23:39:59 +0100 Subject: ffmpeg-rpi: try to port from LibreELEC --- ffmpeg-rpi/APKBUILD | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 ffmpeg-rpi/APKBUILD (limited to 'ffmpeg-rpi/APKBUILD') diff --git a/ffmpeg-rpi/APKBUILD b/ffmpeg-rpi/APKBUILD new file mode 100644 index 0000000..65bc4cc --- /dev/null +++ b/ffmpeg-rpi/APKBUILD @@ -0,0 +1,114 @@ +# Contributor: Sergei Lukin +# Contributor: Ɓukasz Jendrysik +# Contributor: Jakub Skrzypnik +# Maintainer: Natanael Copa +pkgname=ffmpeg-rpi +pkgver="4.0.4-Leia-18.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 + opus-dev + perl-dev + sdl2-dev + v4l-utils-dev + x264-dev + x265-dev + xvidcore-dev + yasm + zlib-dev + raspberrypi-dev + " +checkdepends="rsync" +source="https://github.com/xbmc/FFmpeg/archive/$pkgver.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=""; + +build() { + local _dbg="--disable-debug" + [ -n "$DEBUG" ] && _dbg="--enable-debug" + + ./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 \ + --enable-libssh \ + --disable-stripping \ + --disable-static \ + --disable-librtmp \ + --disable-vaapi \ + --disable-vdpau \ + --disable-libopus \ + --enable-rpi \ + --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" -- cgit v1.2.3