1 # Contributor: David Spicer <azleifel at googlemail.com>
3 pkgname=xine-lib-1.2-vdr-hg
6 pkgdesc="The xine engine (1.2 development branch) with VDR support"
8 url="http://www.xine-project.org"
10 depends=('a52dec' 'faad2' 'ffmpeg' 'libcaca' 'libdca' 'libgl' 'libmad' 'libmng'
11 'libmpcdec' 'libmodplug' 'libxinerama' 'libxvmc' 'v4l-utils' 'wavpack')
12 makedepends=('mercurial' 'libtool' 'pkg-config' 'librsvg' 'gtk2' 'imagemagick'
13 'jack' 'libpulse' 'mesa' 'smbclient' 'speex' 'aalib' 'vcdimager')
14 optdepends=('aalib: To use the aalib plugin' \
15 'gtk2: To use the gdk-pixbuf plugin' \
16 'imagemagick: To use the imagemagick plugin' \
17 'jack: To use the jack plugin' \
18 'libpulse: To use the pulseaudio plugin' \
19 'mesa: To use the opengl plugin' \
20 'smbclient: To use the smb plugin' \
21 'speex: To use the speex plugin' \
22 'vcdimager: To use the vcd plugin')
23 provides=('xine-lib=1.2' 'xine-lib-vdr')
24 conflicts=('xine-lib' 'xine-lib-vdr')
27 _hgroot="http://hg.debian.org/hg/xine-lib/"
28 _hgrepo="xine-lib-1.2"
32 msg "Connecting to Mercurial server...."
34 if [ -d ${_hgrepo} ] ; then
36 hg pull -u || return 1
37 msg "The local files are updated."
39 hg clone ${_hgroot}${_hgrepo} || return 1
42 msg "Mercurial checkout done or server timeout"
43 msg "Starting make..."
45 rm -rf ${srcdir}/${_hgrepo}-build
46 cp -r ${srcdir}/${_hgrepo} ${srcdir}/${_hgrepo}-build
47 cd ${srcdir}/${_hgrepo}-build
49 ./autogen.sh --prefix=/usr \
50 --enable-antialiasing \
57 --without-fusionsound \
61 --with-xv-path=/usr/lib --with-xxmc-path=/usr/lib --with-xvmc-path=/usr/lib \
62 --with-w32-path=/usr/lib/codecs \
68 cd ${srcdir}/${_hgrepo}-build
69 make DESTDIR=${pkgdir} install
71 rm -rf ${srcdir}/${_hgrepo}-build