1 # Contributor: twa022 <twa022 at gmail dot com>
3 pkgname=xine-lib-1.2-hg
6 pkgdesc="A multimedia playback engine"
8 url="http://www.xine-project.org"
10 depends=('libgl' 'libxvmc' 'esound' 'flac' 'libvorbis' 'sdl' 'libmng' 'libtheora'
11 'libxcb' 'wavpack' 'ffmpeg' 'heimdal' 'faad2' 'libvdpau')
12 makedepends=('pkg-config' 'libtool' 'imagemagick' 'smbclient' 'mesa' 'alsa-lib'
13 'vcdimager' 'jack' 'gtk2' 'libpulse' 'speex' 'aalib')
14 optdepends=('imagemagick: for using the imagemagick plugin' 'smbclient: for using the smb plugin' \
15 'jack: for using the jack plugin' 'vcdimager: for using the vcd plugin' \
16 'gtk2: for using the gdk-pixbuf plugin' 'mesa: for using the opengl plugin' \
17 'libpulse: for using the pulseaudio plugin' 'speex: for using the speex plugin' \
18 'aalib: for using the aalib plugin')
19 provides=("xine-lib=1.2")
20 conflicts=('xine-lib')
24 _hgroot=http://hg.debian.org/hg/xine-lib
30 if [ -d ${_hgrepo} ]; then
31 cd ${startdir}/src/${_hgrepo}
34 hg clone ${_hgroot}${_hgrepo} || return 1
35 cd ${startdir}/src/${_hgrepo}
38 msg "Mercurial checkout done or server timeout"
39 msg "Starting make..."
41 cp -R ${startdir}/src/${_hgrepo} ${startdir}/src/${_hgrepo}-build
42 cd ${startdir}/src/${_hgrepo}-build
44 ./autogen.sh --prefix=/usr || return 1
46 ./configure --prefix=/usr --with-w32-path=/usr/lib/codecs \
47 --with-xv-path=/usr/lib --with-xxmc-path=/usr/lib --with-xvmc-path=/usr/lib \
48 --with-libflac --with-wavpack --with-xcb --with-jack --with-speex \
49 --disable-gnomevfs --with-pulseaudio --enable-aalib --disable-modplug \
50 --with-external-ffmpeg --enable-vdpau
52 make DESTDIR="${pkgdir}" install || return 1