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, 18 insertions, 4 deletions
diff --git a/extra/ffmpeg/PKGBUILD b/extra/ffmpeg/PKGBUILD
index 559579e14..5608e5531 100644
--- a/extra/ffmpeg/PKGBUILD
+++ b/extra/ffmpeg/PKGBUILD
@@ -8,17 +8,30 @@ pkgver=1.0
pkgrel=1
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 gsm lame libpulse libtheora libva libvorbis libvpx opencore-amr openjpeg rtmpdump schroedinger sdl speex v4l-utils x264 xvidcore zlib)
-makedepends=('yasm' 'git' 'libvdpau')
+depends=(alsa-lib bzip2 gsm lame libpulse libtheora libvorbis libvpx opencore-amr openjpeg rtmpdump schroedinger sdl speex v4l-utils x264 xvidcore zlib libxfixes)
+makedepends=('git')
+if [ "${CARCH}" != "mips64el" ]; then
+ depends+=('libva')
+ makedepends+=('yasm' 'libvdpau')
+fi
source=(http://ffmpeg.org/releases/$pkgname-$pkgver.tar.bz2)
md5sums=('3ed526cea20c1bffb5a37f7730f710bd')
build() {
cd $pkgname-$pkgver
+ if [ "$CARCH" = "mips64el" ] ; then
+# Make video decoding faster and turn all pixels green.
+# patch -Np1 -i $srcdir/ffmpeg-loongson.patch
+ # 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 \
--enable-libmp3lame \
@@ -42,8 +55,9 @@ build() {
--enable-gpl \
--enable-version3 \
--enable-runtime-cpudetect \
+ --disable-static \
--disable-debug \
- --disable-static
+ $extraconf
make
make tools/qt-faststart