summaryrefslogtreecommitdiff
path: root/extra/ffmpeg/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/ffmpeg/PKGBUILD')
-rw-r--r--extra/ffmpeg/PKGBUILD21
1 files changed, 17 insertions, 4 deletions
diff --git a/extra/ffmpeg/PKGBUILD b/extra/ffmpeg/PKGBUILD
index a0285273d..3e34718c9 100644
--- a/extra/ffmpeg/PKGBUILD
+++ b/extra/ffmpeg/PKGBUILD
@@ -8,17 +8,29 @@ pkgver=0.11.1
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=('ff8cb914f657e164dd60ea1008b555a8')
build() {
cd $pkgname-$pkgver
+ if [ "$CARCH" = "mips64el" ] ; then
+# Make video decoding faster and turn all pixels green.
+# patch -Np1 -i $srcdir/ffmpeg-loongson.patch
+ extraconf="--disable-runtime-cpudetect --disable-vdpau --disable-vaapi"
+ else
+ extraconf=""
+ fi
+
./configure \
--prefix=/usr \
--enable-libmp3lame \
@@ -42,8 +54,9 @@ build() {
--enable-gpl \
--enable-version3 \
--enable-runtime-cpudetect \
+ --disable-static \
--disable-debug \
- --disable-static
+ $extraconf
make
make tools/qt-faststart