summaryrefslogtreecommitdiff
path: root/extra/ffmpeg/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/ffmpeg/PKGBUILD')
-rw-r--r--extra/ffmpeg/PKGBUILD29
1 files changed, 21 insertions, 8 deletions
diff --git a/extra/ffmpeg/PKGBUILD b/extra/ffmpeg/PKGBUILD
index c8c5e77c8..a9ffd7fae 100644
--- a/extra/ffmpeg/PKGBUILD
+++ b/extra/ffmpeg/PKGBUILD
@@ -7,20 +7,32 @@ pkgname=ffmpeg
pkgver=20120111
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')
+if [ "${CARCH}" = "mips64el" ] ; then
+ depends=(alsa-lib bzip2 gsm lame libpulse libtheora libvorbis libvpx opencore-amr openjpeg rtmpdump schroedinger sdl speex x264 xvidcore zlib)
+ makedepends=('git')
+else
+ 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')
+fi
#git clone git://git.videolan.org/ffmpeg.git
-source=(ftp://ftp.archlinux.org/other/ffmpeg/$pkgname-$pkgver.tar.xz
- revert-enabling-threads.patch)
-md5sums=('7a54b2b1af86a746696d1c0b2a79979c'
- '79cc22bc2ac3e67d96c340cb7061e64d')
+source=(ftp://ftp.archlinux.org/other/ffmpeg/${pkgname}-${pkgver}.tar.xz
+ revert-enabling-threads.patch
+ ffmpeg-loongson.patch)
build() {
cd "$srcdir/$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
+
patch -Np1 -R -i "$srcdir/revert-enabling-threads.patch"
./configure \
@@ -45,8 +57,9 @@ build() {
--enable-gpl \
--enable-version3 \
--enable-runtime-cpudetect \
+ --disable-static \
--disable-debug \
- --disable-static
+ $extraconf
make
make tools/qt-faststart