summaryrefslogtreecommitdiff
path: root/extra/ffmpeg
diff options
context:
space:
mode:
Diffstat (limited to 'extra/ffmpeg')
-rw-r--r--extra/ffmpeg/PKGBUILD54
-rw-r--r--extra/ffmpeg/avutils-make-aes-and-sha-public.patch37
2 files changed, 91 insertions, 0 deletions
diff --git a/extra/ffmpeg/PKGBUILD b/extra/ffmpeg/PKGBUILD
new file mode 100644
index 000000000..466fe6629
--- /dev/null
+++ b/extra/ffmpeg/PKGBUILD
@@ -0,0 +1,54 @@
+# $Id: PKGBUILD 122938 2011-05-07 11:51:04Z ibiru $
+# Maintainer : Ionut Biru <ibiru@archlinux.org>
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+# Contributor: Paul Mattal <paul@archlinux.org>
+
+pkgname=ffmpeg
+pkgver=20110330
+pkgrel=2
+pkgdesc="Complete and free Internet live audio and video broadcasting solution for Linux/Unix"
+arch=('i686' 'x86_64')
+url="http://ffmpeg.org/"
+license=('GPL')
+depends=('bzip2' 'lame' 'sdl' 'libvorbis' 'xvidcore' 'zlib' 'x264' 'libtheora' 'opencore-amr' 'alsa-lib' 'libvdpau' 'libxfixes' 'schroedinger' 'libvpx' 'libva' 'openjpeg')
+makedepends=('yasm' 'git')
+#git clone git://git.videolan.org/ffmpeg.git
+source=(ftp://ftp.archlinux.org/other/ffmpeg/${pkgname}-${pkgver}.tar.xz
+ avutils-make-aes-and-sha-public.patch)
+md5sums=('dd682a876a496b9f9ae8afb3b3b70389'
+ '06eb45335669cb742fdcbea48f0605ce')
+
+build() {
+ cd "$srcdir/$pkgname"
+
+ patch -Np1 -i "$srcdir/avutils-make-aes-and-sha-public.patch"
+
+ ./configure \
+ --prefix=/usr \
+ --enable-libmp3lame \
+ --enable-libvorbis \
+ --enable-libxvid \
+ --enable-libx264 \
+ --enable-libvpx \
+ --enable-libtheora \
+ --enable-postproc \
+ --enable-shared \
+ --enable-x11grab \
+ --enable-libopencore_amrnb \
+ --enable-libopencore_amrwb \
+ --enable-libschroedinger \
+ --enable-libopenjpeg \
+ --enable-gpl \
+ --enable-version3 \
+ --enable-runtime-cpudetect \
+ --disable-debug
+
+ make
+ make tools/qt-faststart
+ make doc/ff{mpeg,play,server}.1
+
+ make DESTDIR="$pkgdir" install install-man
+ install -D -m755 tools/qt-faststart "$pkgdir/usr/bin/qt-faststart"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/extra/ffmpeg/avutils-make-aes-and-sha-public.patch b/extra/ffmpeg/avutils-make-aes-and-sha-public.patch
new file mode 100644
index 000000000..ac10e4f4a
--- /dev/null
+++ b/extra/ffmpeg/avutils-make-aes-and-sha-public.patch
@@ -0,0 +1,37 @@
+From a3a0af4fb1237bed0af75868073f9a63db8b1864 Mon Sep 17 00:00:00 2001
+From: Alexis Ballier <aballier@gentoo.org>
+Date: Thu, 7 Apr 2011 10:19:23 -0300
+Subject: [PATCH] avutil: make aes and sha api public
+
+The functions are already av_ prefixed and sha1 header is already provided.
+Install libavutil/{aes,sha}.h
+
+Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
+Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
+---
+ libavutil/Makefile | 2 ++
+ 1 files changed, 2 insertions(+), 0 deletions(-)
+
+diff --git a/libavutil/Makefile b/libavutil/Makefile
+index 300acb1..baee496 100644
+--- a/libavutil/Makefile
++++ b/libavutil/Makefile
+@@ -3,6 +3,7 @@ include $(SUBDIR)../config.mak
+ NAME = avutil
+
+ HEADERS = adler32.h \
++ aes.h \
+ attributes.h \
+ audioconvert.h \
+ avassert.h \
+@@ -33,6 +34,7 @@ HEADERS = adler32.h \
+ random_seed.h \
+ rational.h \
+ samplefmt.h \
++ sha.h \
+ sha1.h \
+
+ BUILT_HEADERS = avconfig.h
+--
+1.7.2.5
+