updated on Wed Jan 18 16:10:53 UTC 2012
[aur-mirror.git] / xine-lib-1.2-vdr-hg / PKGBUILD
blobcc6ddc8080ebb3741c822c3527af16c9434dbe42
1 # Contributor: David Spicer <azleifel at googlemail.com>
3 pkgname=xine-lib-1.2-vdr-hg
4 pkgver=11592
5 pkgrel=1
6 pkgdesc="The xine engine (1.2 development branch) with VDR support"
7 arch=('i686' 'x86_64')
8 url="http://www.xine-project.org"
9 license=('LGPL' 'GPL')
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')
25 options=('!libtool')
27 _hgroot="http://hg.debian.org/hg/xine-lib/"
28 _hgrepo="xine-lib-1.2"
30 build() {
31   cd ${srcdir}
32   msg "Connecting to Mercurial server...."
34   if [ -d ${_hgrepo} ] ; then
35     cd ${_hgrepo}
36     hg pull -u || return 1
37     msg "The local files are updated."
38   else
39     hg clone ${_hgroot}${_hgrepo} || return 1
40   fi
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 \
51     --enable-aalib \
52     --disable-gnomevfs \
53     --enable-vdr \
54     --with-freetype \
55     --with-fontconfig \
56     --without-esound \
57     --without-fusionsound \
58     --with-jack \
59     --with-pulseaudio \
60     --with-xcb \
61     --with-xv-path=/usr/lib --with-xxmc-path=/usr/lib --with-xvmc-path=/usr/lib \
62     --with-w32-path=/usr/lib/codecs \
63     --with-wavpack
64   make
67 package() {
68   cd ${srcdir}/${_hgrepo}-build
69   make DESTDIR=${pkgdir} install
71   rm -rf ${srcdir}/${_hgrepo}-build