1 # $Id: PKGBUILD 56021 2009-10-17 23:55:02Z giovanni $
2 # Maintainer: Hugo Doria <hugo@archlinux.org>
7 pkgdesc="A movie player for linux with nas support"
9 depends=('libxxf86dga' 'libxv' 'libmad' 'giflib' 'cdparanoia' 'libxinerama'
10 'sdl' 'lame' 'libtheora' 'xvidcore' 'zlib' 'libmng' 'libxss' 'live-media'
11 'libgl' 'smbclient' 'aalib' 'jack-audio-connection-kit' 'libcaca' 'nas'
12 'x264>=20090416' 'faac' 'lirc-utils' 'ttf-dejavu' 'libxvmc' 'libjpeg>=7')
14 url="http://www.mplayerhq.hu/"
15 makedepends=('unzip' 'live-media' 'libdca' 'mesa')
16 backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
17 source=(ftp://ftp.archlinux.org/other/mplayer/mplayer-${pkgver}.tar.bz2 liba52_gcc_bug.patch)
18 md5sums=('3d78ec46b011da9866b4e6cffd092bc0' 'ac53c73dd6f69d91ab0ea0591df4a653')
21 # Custom CFLAGS break the mplayer build
24 # Needed to compile using gcc 4.4.0
25 patch -p0 < ${srcdir}/liba52_gcc_bug.patch || return 1
29 ./configure --prefix=/usr --enable-runtime-cpudetection --disable-gui --disable-arts \
30 --confdir=/etc/mplayer --disable-liblzo --disable-speex --enable-nas \
31 --disable-openal --disable-fribidi --disable-libdv --disable-musepack \
32 --language=all --disable-esd --disable-mga --extra-cflags=-fno-strict-aliasing || return 1
34 [ "$CARCH" = "i686" ] && sed 's|-march=i486|-march=i686|g' -i config.mak
37 make -j1 DESTDIR=${pkgdir} install || return 1
38 install -Dm644 etc/{codecs.conf,input.conf,example.conf} ${pkgdir}/etc/mplayer/ || return 1
39 install -dm755 ${pkgdir}/usr/share/mplayer/
40 ln -s /usr/share/fonts/TTF/DejaVuSans.ttf ${pkgdir}/usr/share/mplayer/subfont.ttf || return 1
41 rm -rf ${pkgdir}/usr/share/mplayer/font