summaryrefslogtreecommitdiffstats
path: root/mplayer-vdpau-nogui/PKGBUILD
blob: f5197224582ddb587432f0e81cc5e94f671fcc76 (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: Reiser <metal@pop3.ru>

pkgname=mplayer-vdpau-nogui
pkgver=29794
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' 'opencore-amr' 'libdvdnav>=4.1.3' 'lame' 'xvidcore')
makedepends=('subversion')
conflicts=('mplayer')
provides=(mplayer=$pkgver)
source=('no_segfault_configure.diff')
md5sums=(ed962f7642ffcf2411ec6465fdc8c132)

_svntrunk=svn://svn.mplayerhq.hu/mplayer/trunk
_svnmod=mplayer-vdpau

build() {

		export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"

		cd $srcdir
		svn co $_svntrunk $_svnmod
		cp -R $_svnmod $_svnmod-build
		cd $_svnmod-build
		patch -p1 < ../no_segfault_configure.diff

#     svn checkout svn://svn.ffmpeg.org/soc/wmapro wmapro 
#     cp wmapro/wma* libavcodec 
#     patch -p0 <wmapro/audioframesize.patch 
#     patch -p0 <wmapro/mplayer.patch 
#     patch -p0 <wmapro/wmapro_ffmpeg.patch 
#  
#     cp -v wmapro/wma3dec.c wmapro/wma3data.h wmapro/wma3.h libavcodec 
    
    ./configure --prefix=/usr --confdir=/etc/mplayer --disable-gui \
    --enable-ossaudio --disable-alsa --disable-pulse --enable-pthreads \
    --enable-runtime-cpudetection --enable-largefiles --enable-menu \
    --disable-libdv --disable-aa --disable-liblzo --disable-speex \
    --disable-fribidi --disable-arts --disable-esd --disable-smb --enable-dvdnav \
    --disable-openal --disable-faad-internal --disable-directfb \
    --disable-musepack --enable-libopencore_amrnb --enable-libopencore_amrwb \
    --enable-vdpau --disable-libbs2b

		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

		cd ../
		rm -rf ./$_svnmod-build
}