blob: f09097b849388a87997bf1544316eb3b6bd643f2 (
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
# $Id$
# Maintainer : Ionut Biru <ibiru@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Contributor: Paul Mattal <paul@archlinux.org>
# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>
static=false
pkgbase=libav
if [[ $static == true ]] || [[ $static == 1 ]] || [[ $static == enable ]]; then
pkgname=libav-static
pkgflag=-static
staticdesc=', with static library'
elif [[ $static == false ]] || [[ $static == 0 ]] || [[ $static == disable ]]; then
pkgname=libav
fi
pkgver=9.3
pkgrel=1
pkgdesc="Complete and free Internet live audio and video broadcasting solution for GNU/Linux$staticdesc"
arch=(
i686
x86_64
mips64el
)
url="http://$pkgbase.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
libvdpau
)
source=(
http://$pkgbase.org/releases/$pkgbase-$pkgver.tar.gz
)
sha512sums=(
de3aaa571fed67d22ec2a0c53599af56684afa38445cf67fd09d26c23eeded5a184d045f472d414815d17783b421f937fd3d9565637e20f2050aaaf0081164fe
)
build() {
cd $pkgbase-$pkgver
[[ $static == false ]] && sttcv=disable || sttcv=enable
./configure\
--prefix=/opt/$pkgname\
--disable-debug\
--$sttcv-static\
--enable-avresample\
--enable-gpl\
--enable-libfreetype\
--enable-libgsm\
--enable-libmp3lame\
--enable-libopencore_amrnb\
--enable-libopencore_amrwb\
--enable-libopenjpeg\
--enable-libpulse\
--enable-librtmp\
--enable-libschroedinger\
--enable-libspeex\
--enable-libtheora\
--enable-libvorbis\
--enable-libvpx\
--enable-libx264\
--enable-libxvid\
--enable-runtime-cpudetect\
--enable-shared\
--enable-version3\
--enable-x11grab
setarch $CARCH make
setarch $CARCH make tools/qt-faststart
setarch $CARCH make doc/ffmpeg.1
setarch $CARCH make doc/av{play,server}.1
}
package() {
cd $pkgbase-$pkgver
setarch $CARCH make DESTDIR=$pkgdir install install-man
install -m755 -d $pkgdir/etc/ld.so.conf.d
install -m755 -d $pkgdir/usr/bin
install -m755 -d $pkgdir/usr/share/man/man1
install -Dm755 tools/qt-faststart $pkgdir/opt/$pkgname/bin
ln -s /opt/$pkgname/bin/avconv $pkgdir/usr/bin/avconv$pkgflag
ln -s /opt/$pkgname/bin/avplay $pkgdir/usr/bin/avplay$pkgflag
ln -s /opt/$pkgname/bin/avprobe $pkgdir/usr/bin/avprobe$pkgflag
ln -s /opt/$pkgname/bin/avserver $pkgdir/usr/bin/avserver$pkgflag
ln -s /opt/$pkgname/bin/ffmpeg $pkgdir/usr/bin/ffmpeg-$pkgname
ln -s /opt/$pkgname/bin/qt-faststart $pkgdir/usr/bin/qt-faststart-$pkgname
ln -s /opt/$pkgname/share/man/man1/avconv.1 $pkgdir/usr/share/man/man1/avconv$pkgflag.1
ln -s /opt/$pkgname/share/man/man1/avplay.1 $pkgdir/usr/share/man/man1/avplay$pkgflag.1
ln -s /opt/$pkgname/share/man/man1/avprobe.1 $pkgdir/usr/share/man/man1/avprobe$pkgflag.1
ln -s /opt/$pkgname/share/man/man1/avserver.1 $pkgdir/usr/share/man/man1/avserver$pkgflag.1
ln -s /opt/$pkgname/share/man/man1/ffmpeg.1 $pkgdir/usr/share/man/man1/ffmpeg-$pkgname.1
echo /opt/libav$pkgflag/lib > $pkgdir/etc/ld.so.conf.d/libav$pkgflag.conf
}
# vim:set ts=2 sw=2 et:
|