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 b3a701783..f3061e903 100644
--- a/extra/ffmpeg/PKGBUILD
+++ b/extra/ffmpeg/PKGBUILD
@@ -7,11 +7,15 @@ pkgname=ffmpeg
pkgver=20120317
pkgrel=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 x264 xvidcore zlib)
-makedepends=('yasm' 'git' 'libvdpau')
+depends=(alsa-lib bzip2 gsm lame libpulse libtheora libvorbis libvpx opencore-amr openjpeg rtmpdump schroedinger sdl speex x264 xvidcore zlib)
+makedepends=('git')
+if [ "${CARCH}" != "mips64el" ]; then
+ depends+=('libva')
+ makedepends+=('yasm' 'libvdpau')
+fi
#git clone git://git.videolan.org/ffmpeg.git
source=(ftp://ftp.archlinux.org/other/ffmpeg/$pkgname-$pkgver.tar.xz)
md5sums=('2a2ef83ae73713fcef6bba8c430665ce')
@@ -19,6 +23,14 @@ md5sums=('2a2ef83ae73713fcef6bba8c430665ce')
build() {
cd "$pkgname"
+ 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 \
@@ -41,8 +53,9 @@ build() {
--enable-gpl \
--enable-version3 \
--enable-runtime-cpudetect \
+ --disable-static \
--disable-debug \
- --disable-static
+ $extraconf
make
make tools/qt-faststart