1 # Contributor: Stas Bourakov <sbourakov(at)gmail.com>
2 pkgname=xine-lib_for_enigma2
4 _commit='df-osd-handling+alter-vdpau-h264-decoder'
6 pkgdesc="Xine-lib, version, created only for Enigma2 project."
8 url="http://www.xine-project.org/home"
10 depends=('gcc-libs' 'pulseaudio' 'ffmpeg')
11 makedepends=('git' 'make')
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'
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."
27 git clone "${_gitroot}" "${_gitname}" -b "${_commit}"
29 [[ "${_commit}" ]] && git checkout "${_commit}"
32 if [ -d "$srcdir/$_gitname-build" ]; then
33 rm -r "$srcdir/$_gitname-build"
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 \
54 --disable-real-codecs \
67 --without-imagemagick \
85 make install DESTDIR=$pkgdir || return 1
89 md5sums=('defbe8342dd5a6a4d21b177b9e7e7550'
90 'e75969baea3726e814fd9e24d5aab5f5')