updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / xine-lib_for_enigma2 / PKGBUILD_git
blobabf20f0d05b40583462ece23ae92b1b8a5faa2a4
1 # Contributor: Stas Bourakov <sbourakov(at)gmail.com>
2 pkgname=xine-lib_for_enigma2
3 pkgver=20111002
4 _commit='df-osd-handling+alter-vdpau-h264-decoder'
5 pkgrel=1
6 pkgdesc="Xine-lib, version, created only for Enigma2 project."
7 arch=('i686' 'x86_64')
8 url="http://www.xine-project.org/home"
9 license=('GPL2')
10 depends=('gcc-libs' 'pulseaudio' 'ffmpeg')
11 makedepends=('git' 'make')
12 conflicts=()
13 source=('https://raw.github.com/cougar-enigma/Enigma2PC/new_xine_plugin/patches/0001-Changes-for-enigma-branch-new_xine_plugin.patch' 'https://raw.github.com/cougar-enigma/Enigma2PC/new_xine_plugin/patches/0002-Patch-for-SD-HD-deinterlacing.patch')
15 _gitroot='git://projects.vdr-developer.org/xine-lib.git'
16 _gitname='xine-lib'
18 build() {
19     cd "${srcdir}"
20     msg "Connecting to GIT server...."
22     if [ -d "${_gitname}" ] ; then
23         cd "${_gitname}" && git checkout "${_commit}" && git pull origin 
24         [[ "${_commit}" ]] && git checkout "${_commit}"
25         msg "The local files are updated."
26     else
27         git clone "${_gitroot}" "${_gitname}" -b "${_commit}"
28         cd "${_gitname}"
29         [[ "${_commit}" ]] && git checkout "${_commit}"
30         fi
32     if [ -d "$srcdir/$_gitname-build" ]; then
33       rm -r "$srcdir/$_gitname-build"
34     fi
35     cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36     cd "$srcdir/$_gitname-build"
38 patch -p1 -i ${srcdir}/0001-Changes-for-enigma-branch-new_xine_plugin.patch || return 1
39 patch -p1 -i ${srcdir}/0002-Patch-for-SD-HD-deinterlacing.patch || return 1
41   ./autogen.sh --prefix=/usr \
42                --disable-fb \
43                --disable-vidix \
44                --disable-dxr3 \
45                --disable-sdl \
46                --disable-xvmc \
47                --disable-oss \
48                --disable-syncfb \
49                --disable-w32dll \
50                --disable-musepack \
51                --disable-samba \
52                --disable-gdkpixbuf \
53                --disable-modplug \
54                --disable-real-codecs \
55                --disable-gnomevfs \
56                --disable-aalib \
57                --disable-nosefart \
58                --disable-modplug \
59                --disable-vcd \
60                --disable-vidix \
61                --disable-xinerama \
62                --disable-v4l \
63                --disable-v4l2 \
64                --disable-libv4l \
65                --without-esound \
66                --without-xcb \
67                --without-imagemagick \
68                --without-jack \
69                --with-pulseaudio \
70                --without-sdl \
71                --without-speex \
72                --without-wavpack \
73                --without-caca \
74                --enable-dvb \
75                --enable-vdpau \
76                --enable-vdr \
77                --enable-fb \
78                --enable-oss \
79                --disable-dxr3 \
80                --with-x \
81                --with-alsa
82                #--enable-debug
84     make || return 1
85     make install DESTDIR=$pkgdir || return 1
89 md5sums=('defbe8342dd5a6a4d21b177b9e7e7550'
90          'e75969baea3726e814fd9e24d5aab5f5')