blob: 6d3a132546c611a3179898e0dc275c4a47fb2152 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# $Id: PKGBUILD 98250 2010-11-05 15:59:39Z ibiru $
# Maintainer : Ionut Biru <ibiru@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Contributor: Paul Mattal <paul@archlinux.org>
pkgname=ffmpeg-svn
pkgver=26402
pkgrel=1
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' 'libtheora' 'libvorbis' 'faac' 'xvidcore' 'zlib' 'x264' 'libtheora' 'opencore-amr' 'alsa-lib' 'libvdpau' 'libxfixes' 'schroedinger' 'libvpx' 'libva>=1.0.4' 'openjpeg' 'rtmpdump')
makedepends=('yasm' 'subversion')
#epoch=1
provides=("ffmpeg=`date +%Y%m%d`")
conflicts=('ffmpeg')
_svntrunk=svn://svn.ffmpeg.org/ffmpeg/trunk
_svnmod=ffmpeg
build() {
cd "${srcdir}"
if [ -d ${_svnmod}/.svn ]; then
(cd ${_svnmod} && svn up -r ${pkgver})
else
svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod} && cd ${_svnmod}
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
rm -rf "${srcdir}/${_svnmod}/{$_svnmod}-build"
mkdir -p "${srcdir}/${_svnmod}/${_svnmod}-build"
cd "${srcdir}/${_svnmod}/${_svnmod}-build"
"${srcdir}/${_svnmod}/configure" \
--prefix=/usr \
--enable-gpl \
--enable-libmp3lame \
--enable-libvorbis \
--enable-libfaac \
--enable-libxvid \
--enable-libx264 \
--enable-libvpx \
--enable-libtheora \
--enable-postproc \
--enable-shared \
--enable-pthreads \
--enable-x11grab \
--enable-libopencore_amrnb \
--enable-libopencore_amrwb \
--enable-libschroedinger \
--enable-libopenjpeg \
--enable-librtmp \
--enable-version3 \
--enable-nonfree \
--enable-runtime-cpudetect \
--disable-debug # libfaac is nonfree
make || return 1
make doc/ff{mpeg,play,server}.1 || return 1
}
package() {
cd "${srcdir}/${_svnmod}/${_svnmod}-build"
make DESTDIR="${pkgdir}" install || return 1
make DESTDIR="${pkgdir}" install-man || return 1
}
# vim:set ts=2 sw=2 et:
md5sums=()
|