summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/community/mplayer-vdpau-nogui/PKGBUILD
blob: 0beb3e553e7141533a17f58cc5fd31b108972e33 (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
49
50
51
52
53
54
55
56
#Contributor: Vincent Kriek [Vintendo] <vincent@vincentkriek.nl>
#Contributor: Reiser <metal@pop3.ru>

pkgname=mplayer-vdpau-nogui
pkgver=28348
pkgrel=1
pkgdesc="Famous multimedia player, dev. version, without its GUI and support for nvidia VDPAU"
arch=('i686' 'x86_64')
url="http://www.mplayerhq.hu/"
license=('GPL')
depends=('ttf-dejavu' 'nvidia-beta')
makedepends=('subversion')
conflicts=('mplayer')
provides=('mplayer')
source=('ftp://download.nvidia.com/XFree86/vdpau/mplayer-vdpau-3482714.tar.bz2'
																'no_segfault_configure.diff')
md5sums=(60547e0d950c414fe72ede79cf801327
				ed962f7642ffcf2411ec6465fdc8c132)

build() {
#				if [ "${CFLAGS}" != *"-fpic"* ]; then
#								CFLAGS=$CFLAGS' -fpic'
#				fi
	unset CFLAGS

				cd $srcdir/mplayer-vdpau-3482714

				co_dir=mplayer-vdpau
				svn co --ignore-externals -r 28348 svn://svn.mplayerhq.hu/mplayer/trunk ${co_dir}
				cd ${co_dir}
				svn co -r 16724 svn://svn.mplayerhq.hu/ffmpeg/trunk/libpostproc
				svn co -r 16724 svn://svn.mplayerhq.hu/ffmpeg/trunk/libavformat
				svn co -r 16724 svn://svn.mplayerhq.hu/ffmpeg/trunk/libavcodec
				svn co -r 16724 svn://svn.mplayerhq.hu/ffmpeg/trunk/libavutil
				svn co -r 1166 svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdread/src libdvdread4
				svn co -r 1166 svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdnav/src libdvdnav

				patch -p0 < ../mplayer-vdpau-mplayer.patch 
				patch -p0 < ../mplayer-vdpau-libavcodec.patch 
				
				patch -p1 < ../../no_segfault_configure.diff
				./configure --prefix=/usr --confdir=/etc/mplayer --disable-gui \
    --disable-runtime-cpudetection --enable-largefiles --enable-menu \
    --disable-libdv --disable-aa --disable-liblzo --disable-speex \
    --disable-fribidi --disable-arts --disable-smb --disable-dvdnav \
    --disable-openal --disable-faad-internal --disable-jack \
    --disable-musepack --disable-libamr_nb --disable-libamr_wb --disable-lirc \
    --disable-lircc --disable-x264 --disable-x264-lavc --enable-vdpau

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

				install -m0644 etc/{codecs.conf,input.conf,example.conf} $pkgdir/etc/mplayer
				install -d $pkgdir/usr/share/mplayer/
				ln -s /usr/share/fonts/TTF/DejaVuSans.ttf $pkgdir/usr/share/mplayer/subfont.ttf
}