updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / mplayer-fribidi / PKGBUILD
blob418871ad44ad749a3f9b6d2c422696e1aa033473
1 # Maintainer: Yuval Hager <yhager@yhager.com>
3 pkgname=mplayer-fribidi
4 pkgver=32492
5 pkgrel=1
6 pkgdesc="A movie player for linux with fribidi support"
7 arch=('i686' 'x86_64')
8 depends=('libxxf86dga' 'libxv' 'libmad' 'giflib' 'cdparanoia' 'libxinerama'
9          'sdl' 'lame' 'libtheora' 'xvidcore' 'zlib' 'libmng' 'libxss'
10          'libgl' 'smbclient' 'aalib' 'jack-audio-connection-kit' 'libcaca'
11          'x264>=20100107' 'faac' 'lirc-utils' 'ttf-dejavu' 'libxvmc' 'libjpeg>=8'
12          'enca' 'libvdpau>=0.3' 'opencore-amr' 'a52dec' 'libdca' 'fribidi')
13 conflicts=('mplayer')
14 provides=("mplayer=${pkgver}")
15 license=('GPL')
16 url="http://www.mplayerhq.hu/"
17 makedepends=('unzip' 'mesa' 'live-media>=2010.01.13')
18 backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
19 source=(ftp://ftp.archlinux.org/other/mplayer/mplayer-${pkgver}.tar.xz mplayer.desktop mplayer.png)
20 md5sums=('01beb068608d3977fbb84b0b28935cee'
21          'f91b1be03ed301cc15142f49455c1b88'
22          'd00874ccc644b7f43d6ef1c942fcef28')
24 build() {
25   # Custom CFLAGS break the mplayer build
26   unset CFLAGS LDFLAGS
28   cd ${srcdir}/mplayer
30   ./configure --prefix=/usr \
31         --enable-runtime-cpudetection \
32         --disable-gui \
33         --disable-arts \
34         --disable-liblzo \
35         --disable-speex \
36   --disable-openal \
37         --disable-libdv \
38         --disable-musepack \
39         --disable-esd \
40         --disable-mga \
41         --enable-xvmc \
42         --language=all \
43   --confdir=/etc/mplayer \
44         --extra-cflags="-fno-strict-aliasing" || return 1
46   [ "$CARCH" = "i686" ] &&  sed 's|-march=i486|-march=i686|g' -i config.mak
48   make || return 1
49   make -j1 DESTDIR=${pkgdir} install || return 1
50   install -Dm644 etc/{codecs.conf,input.conf,example.conf} ${pkgdir}/etc/mplayer/ || return 1
51   install -dm755 ${pkgdir}/usr/share/mplayer/
52   ln -s /usr/share/fonts/TTF/DejaVuSans.ttf ${pkgdir}/usr/share/mplayer/subfont.ttf || return 1
53   rm -rf ${pkgdir}/usr/share/mplayer/font
54   #desktop file  FS#14770
55   install -Dm644 ${srcdir}/mplayer.desktop ${pkgdir}/usr/share/applications/mplayer.desktop || return 1
56   install -Dm644 ${srcdir}/mplayer.png ${pkgdir}/usr/share/pixmaps/mplayer.png || return 1