summaryrefslogtreecommitdiff
path: root/extra/ffmpeg/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/ffmpeg/PKGBUILD')
-rw-r--r--extra/ffmpeg/PKGBUILD22
1 files changed, 16 insertions, 6 deletions
diff --git a/extra/ffmpeg/PKGBUILD b/extra/ffmpeg/PKGBUILD
index d036a3e32..0e6efae5f 100644
--- a/extra/ffmpeg/PKGBUILD
+++ b/extra/ffmpeg/PKGBUILD
@@ -8,22 +8,32 @@ pkgver=1.2
pkgrel=2
epoch=1
pkgdesc="Complete and free Internet live audio and video broadcasting solution for Linux/Unix"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://ffmpeg.org/"
license=('GPL')
depends=(
'alsa-lib' 'bzip2' 'fontconfig' 'gsm' 'lame' 'libass'
- 'libbluray' 'libmodplug' 'libpulse' 'libtheora' 'libva' 'libvorbis' 'libvpx'
+ 'libbluray' 'libmodplug' 'libpulse' 'libtheora' 'libvorbis' 'libvpx'
'opencore-amr' 'openjpeg' 'opus' 'rtmpdump' 'schroedinger' 'sdl' 'speex'
- 'v4l-utils' 'x264' 'xvidcore' 'zlib'
+ 'v4l-utils' 'x264' 'xvidcore' 'zlib' 'libxfixes'
)
-makedepends=('libvdpau' 'yasm')
+if [ "${CARCH}" != "mips64el" ]; then
+ depends+=('libva')
+ makedepends=('yasm' 'libvdpau')
+fi
source=(http://ffmpeg.org/releases/$pkgname-$pkgver.tar.bz2)
sha256sums=('9a39fbc07dae0c893059e07491bcfb1e2409cc220f72b41eed23a04becea5aaf')
build() {
cd $pkgname-$pkgver
+ if [ "$CARCH" = "mips64el" ] ; then
+ # Disable runtime CPU detection, video acceleration APIs our hardware doesn't support and ISAs our CPUs don't support.
+ extraconf="--disable-runtime-cpudetect --disable-vdpau --disable-vaapi --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2"
+ else
+ extraconf=""
+ fi
+
./configure \
--prefix=/usr \
--disable-debug \
@@ -57,9 +67,9 @@ build() {
--enable-shared \
--enable-vdpau \
--enable-version3 \
- --enable-x11grab
+ --enable-x11grab \
+ $extraconf
-
make
make tools/qt-faststart
make doc/ff{mpeg,play,server}.1