summaryrefslogtreecommitdiff
path: root/extra/ffmpeg/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/ffmpeg/PKGBUILD')
-rw-r--r--extra/ffmpeg/PKGBUILD32
1 files changed, 25 insertions, 7 deletions
diff --git a/extra/ffmpeg/PKGBUILD b/extra/ffmpeg/PKGBUILD
index 34f78179e..098929b0c 100644
--- a/extra/ffmpeg/PKGBUILD
+++ b/extra/ffmpeg/PKGBUILD
@@ -9,22 +9,39 @@ pkgver=2.1.3
pkgrel=1
epoch=1
pkgdesc='Complete and free Internet live audio and video broadcasting solution'
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url='http://ffmpeg.org/'
license=('GPL')
depends=(
'alsa-lib' 'bzip2' 'fontconfig' 'gnutls' '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')
-source=(http://ffmpeg.org/releases/$pkgname-$pkgver.tar.bz2)
-md5sums=('711b795bbc7b527c0f4a1828f324fd5a')
+if [ "${CARCH}" != "mips64el" ]; then
+ depends+=('libva')
+ makedepends=('yasm' 'libvdpau')
+fi
+source=(http://ffmpeg.org/releases/$pkgname-$pkgver.tar.bz2
+ ffmpeg-2.1.1-freetype2.patch)
+md5sums=('711b795bbc7b527c0f4a1828f324fd5a'
+ '4b5dd079a40f44f4e0d00cdbc9d52ec3')
+
+prepare() {
+ cd $pkgname-$pkgver
+ patch -p1 -i ../ffmpeg-2.1.1-freetype2.patch
+}
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 \
@@ -61,7 +78,8 @@ build() {
--enable-swresample \
--enable-vdpau \
--enable-version3 \
- --enable-x11grab
+ --enable-x11grab \
+ $extraconf
make
make tools/qt-faststart