1 # Maintainer: Yuval Hager <yhager@yhager.com>
3 pkgname=mplayer-fribidi
6 pkgdesc="A movie player for linux with fribidi support"
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')
14 provides=("mplayer=${pkgver}")
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')
25 # Custom CFLAGS break the mplayer build
30 ./configure --prefix=/usr \
31 --enable-runtime-cpudetection \
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
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