# $Id: PKGBUILD 117246 2011-03-30 14:23:30Z ibiru $ # Maintainer: Kai Uwe Jesussek # Contributor: Ionut Biru # Contributor: Hugo Doria plugrel=1 pkgname=mplayer-z2 pkgver=1.0rc4 pkgrel=1 pkgdesc="A movie player for linux" arch=('i686' 'x86_64' 'arm') depends=('libmad' 'cdparanoia' 'libxinerama' 'sdl' 'lame' 'libtheora' 'xvidcore' 'libmng' 'libxss' 'smbclient' 'aalib' 'libcaca' 'x264' 'faac' 'ttf-dejavu' 'libxvmc' 'enca' 'mpg123-arm' 'opencore-amr' 'libdca' 'a52dec') license=('GPL') url="http://www.mplayerhq.hu/" makedepends=('unzip' 'yasm') backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf') source=('mplayer-1.0rc4-pxa-wejp.patch' 'mplayer.conf' 'http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc4.tar.bz2' ) conflicts=('mplayer') provides=('mplayer') md5sums=('480d11daa4962629e6fb26bd61993a0f' '6e960e87b4aee28889f0ea5c65f711fb' '1699c94de39da9c4c5d34e8f58e418f0') build() { # Custom CFLAGS break the mplayer build unset CFLAGS LDFLAGS cd ${srcdir}/MPlayer-1.0rc4 patch -p1 < ${srcdir}/mplayer-1.0rc4-pxa-wejp.patch ./configure --enable-armv5te --enable-iwmmxt --enable-pxa \ --enable-faad-fixed --enable-tremor-low \ --disable-mp3lib --disable-libvorbis --disable-vidix \ --extra-cflags="-march=iwmmxt" \ --disable-runtime-cpudetection --disable-sighandler \ --disable-live --enable-alsa --enable-mpg123 \ --extra-ldflags="-lmpg123" \ --confdir=/etc/mplayer [ "$CARCH" = "i686" ] && sed 's|-march=i486|-march=i686|g' -i config.mak #make make -j1 DESTDIR=${pkgdir} install install -Dm644 etc/{codecs.conf,input.conf,example.conf} ${pkgdir}/etc/mplayer/ mkdir -p ${pkgdir}/etc/mplayer/ cp ${srcdir}/mplayer.conf ${pkgdir}/etc/mplayer/ install -dm755 ${pkgdir}/usr/share/mplayer/ ln -s /usr/share/fonts/TTF/DejaVuSans.ttf ${pkgdir}/usr/share/mplayer/subfont.ttf rm -rf ${pkgdir}/usr/share/mplayer/font }