116 lines
3.2 KiB
Bash
116 lines
3.2 KiB
Bash
# Maintainer: Martchus <martchus@gmx.net>
|
|
# Contributor: Ben Widawsky <ben@bwidawsk.net>
|
|
# Contributor: Rob McCathie <korrode at gmail>
|
|
# Contributor: Ionut Biru <ibiru@archlinux.org>
|
|
# Contributor: Bartomiej Piotrowski <bpiotrowski@archlinux.org>
|
|
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
|
|
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
|
|
# Contributor: Paul Mattal <paul@archlinux.org>
|
|
|
|
_name=ffmpeg
|
|
pkgname=ffmpeg-omx-rpi
|
|
pkgver=4.1
|
|
pkgrel=1
|
|
epoch=1
|
|
pkgdesc='Complete solution to record, convert and stream audio and video (with libfdk-aac support)'
|
|
arch=('armv6h' 'armv7h' 'aarch64')
|
|
url='https://ffmpeg.org/'
|
|
license=('GPL3' 'custom:libfdk-aac')
|
|
depends=(
|
|
'alsa-lib' 'aom' 'bzip2' 'fontconfig' 'fribidi' 'glibc' 'gmp' 'gnutls' 'gsm'
|
|
'jack' 'lame' 'libavc1394' 'libdrm' 'libiec61883' 'libmodplug'
|
|
'libomxil-bellagio' 'libpulse' 'libraw1394' 'libsoxr' 'libssh'
|
|
'libtheora' 'libvdpau' 'libwebp' 'libx11' 'libxcb' 'libxext' 'libxml2'
|
|
'libxv' 'opencore-amr' 'openjpeg2' 'opus' 'sdl2' 'speex' 'v4l-utils'
|
|
'xz' 'zlib'
|
|
'libass.so' 'libbluray.so' 'libfreetype.so' 'libva-drm.so' 'libva.so'
|
|
'libva-x11.so' 'libvidstab.so' 'libvorbisenc.so' 'libvorbis.so'
|
|
'libvpx.so' 'libx264.so' 'libx265.so' 'libxvidcore.so'
|
|
'libfdk-aac'
|
|
)
|
|
makedepends=('ffnvcodec-headers' 'git' 'ladspa' 'libvdpau' 'yasm')
|
|
optdepends=('ladspa: LADSPA filters')
|
|
provides=(
|
|
'libavcodec.so' 'libavdevice.so' 'libavfilter.so' 'libavformat.so'
|
|
'libavutil.so' 'libpostproc.so' 'libswresample.so' 'libswscale.so'
|
|
"ffmpeg=$pkgver"
|
|
)
|
|
conflicts=("$_name")
|
|
source=("git+https://git.ffmpeg.org/ffmpeg.git#tag=n${pkgver}")
|
|
sha256sums=('SKIP')
|
|
|
|
build() {
|
|
cd $_name
|
|
|
|
[[ $CARCH == "armv7h" || $CARCH == "aarch64" ]] && CONFIG='--host-cflags="-fPIC"'
|
|
|
|
./configure \
|
|
--prefix='/usr' \
|
|
--disable-debug \
|
|
--disable-static \
|
|
--disable-stripping \
|
|
--enable-fontconfig \
|
|
--enable-gmp \
|
|
--enable-gnutls \
|
|
--enable-gpl \
|
|
--enable-ladspa \
|
|
--enable-libaom \
|
|
--enable-libass \
|
|
--enable-libbluray \
|
|
--enable-libfreetype \
|
|
--enable-libfribidi \
|
|
--enable-libiec61883 \
|
|
--enable-libjack \
|
|
--enable-libgsm \
|
|
--enable-libmodplug \
|
|
--enable-libmp3lame \
|
|
--enable-libopencore_amrnb \
|
|
--enable-libopencore_amrwb \
|
|
--enable-libopenjpeg \
|
|
--enable-libopus \
|
|
--enable-libpulse \
|
|
--enable-libsoxr \
|
|
--enable-libspeex \
|
|
--enable-libssh \
|
|
--enable-libtheora \
|
|
--enable-libv4l2 \
|
|
--enable-libvidstab \
|
|
--enable-libvorbis \
|
|
--enable-libvpx \
|
|
--enable-libwebp \
|
|
--enable-libx264 \
|
|
--enable-libx265 \
|
|
--enable-libxcb \
|
|
--enable-libxml2 \
|
|
--enable-libxvid \
|
|
--enable-nvdec \
|
|
--enable-nvenc \
|
|
--enable-omx \
|
|
--enable-shared \
|
|
--enable-version3 \
|
|
\
|
|
--enable-libfdk_aac \
|
|
--enable-omx-rpi \
|
|
--disable-opencl \
|
|
--enable-nonfree
|
|
|
|
#--enable-mmal \
|
|
make V=1
|
|
make tools/qt-faststart
|
|
make doc/ff{mpeg,play}.1
|
|
|
|
cp /usr/share/licenses/libfdk-aac/NOTICE .
|
|
}
|
|
|
|
package() {
|
|
cd $_name
|
|
|
|
make DESTDIR="${pkgdir}" install install-man
|
|
install -Dm 755 tools/qt-faststart "${pkgdir}"/usr/bin/
|
|
|
|
install -d "$pkgdir/usr/share/licenses/$pkgname"
|
|
install -m 0644 NOTICE "$pkgdir/usr/share/licenses/$pkgname/NOTICE"
|
|
}
|
|
|
|
# vim: ts=2 sw=2 et:
|