1 # Maintainer: Hilton Medeiros <medeiros.hilton at gmail dot com>
2 # Contributor : Ionut Biru <ibiru@archlinux.org>
3 # Contributor: Hugo Doria <hugo@archlinux.org>
9 pkgdesc="A movie player for linux (without samba support)."
10 arch=('i686' 'x86_64')
11 depends=('libxxf86dga' 'libxxf86vm' 'libmad' 'cdparanoia' 'libxinerama' 'sdl' 'lame' 'libtheora' 'xvidcore' 'libmng' 'libxss'
12 'libgl' 'aalib' 'jack' 'libcaca' 'x264' 'faac' 'lirc-utils' 'ttf-dejavu' 'libxvmc' 'libvdpau>=0.4'
13 'opencore-amr' 'libdca' 'a52dec' 'nas' 'libass' 'openjpeg' 'schroedinger' 'libvpx')
15 url="http://www.mplayerhq.hu/"
16 makedepends=('unzip' 'mesa' 'live-media>=2010.01.13' 'yasm')
17 backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
19 provides=("mplayer=$pkgver")
20 source=(ftp://ftp.archlinux.org/other/${_pkgname}/${_pkgname}-${pkgver}.tar.xz mplayer.desktop mplayer.png)
21 md5sums=('01beb068608d3977fbb84b0b28935cee'
22 '647b9f4ab5284a7fef3f84f992214e77'
23 'd00874ccc644b7f43d6ef1c942fcef28')
26 # Custom CFLAGS break the mplayer build
29 cd ${srcdir}/${_pkgname}
31 ./configure --prefix=/usr \
32 --enable-runtime-cpudetection \
46 --confdir=/etc/mplayer
48 [ "$CARCH" = "i686" ] && sed 's|-march=i486|-march=i686|g' -i config.mak
55 cd ${srcdir}/${_pkgname}
57 make -j1 DESTDIR=${pkgdir} install
59 install -Dm644 etc/{codecs.conf,input.conf,example.conf} ${pkgdir}/etc/mplayer/
60 install -dm755 ${pkgdir}/usr/share/mplayer/
62 ln -s /usr/share/fonts/TTF/DejaVuSans.ttf ${pkgdir}/usr/share/mplayer/subfont.ttf
63 rm -rf ${pkgdir}/usr/share/mplayer/font
65 install -Dm644 ${srcdir}/mplayer.desktop ${pkgdir}/usr/share/applications/mplayer.desktop
66 install -Dm644 ${srcdir}/mplayer.png ${pkgdir}/usr/share/pixmaps/mplayer.png