summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/community/xine-lib-vdpau-svn/PKGBUILD
blob: 881b63612e9e67a6c4a45eada5d0246e5ea34f95 (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
# Contributor: Dennis Brendel <buddabrod@gmail.com>

pkgname=xine-lib-vdpau-svn
pkgver=240
pkgrel=1
pkgdesc="A free video player library for Unix with support for vdpau"
arch=('i686' 'x86_64')
url="http://xinehq.de/"
license=('GPL')
depends=('libxvmc' 'esound' 'flac>=1.1.4' 'libvorbis' 'sdl' 'libmng' 'libtheora' 'libxcb' 'wavpack' 'ffmpeg>=20080715' 'heimdal>=1.2.1' 'nvidia-utils-beta>=180.16' 'nvidia-beta>=180.16')
optdepends=('codecs')
makedepends=('subversion' 'pkgconfig' 'libtool' 'imagemagick' 'smbclient' 'mesa' 'alsa-lib' 'vcdimager' 'jack-audio-connection-kit' 'cvs')
conflicts=('xine-lib')
provides=('xine-lib=1.1.4' 'xine-lib')

_svntrunk=svn://jusst.de/xine-vdpau
_svnmod=xine-vdpau

build() {

  cd ${srcdir}

  if [ -d $_svnmod/.svn ]; then
    (cd $_svnmod && svn up -r $pkgver)
  else
    svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
  fi

  msg "SVN checkout done or server timeout"
  msg "Starting make..."

  cp -r $_svnmod $_svnmod-build
  cd $_svnmod-build

  unset CFLAGS

  ./autogen.sh --prefix=/usr --with-w32-path=/usr/lib/codecs \
    --with-xv-path=/usr/lib --with-xxmc-path=/usr/lib --with-xvmc-path=/usr/lib \
    --with-libflac --with-wavpack --with-xcb \
    --without-arts --with-jack --without-speex \
    --disable-gnomevfs --without-pulseaudio --disable-aalib \
    --disable-modplug --with-external-ffmpeg || return 1

  make || return 1
  make DESTDIR=$pkgdir install || return 1

  rm -rf ${srcdir}/${_svnmod}-build
}