PKGBUILDs/extra/mplayer/PKGBUILD

43 lines
1.7 KiB
Bash
Raw Normal View History

2009-10-10 02:23:22 +00:00
# $Id: PKGBUILD 45001 2009-07-06 14:04:36Z hugo $
# Maintainer: Hugo Doria <hugo@archlinux.org>
pkgname=mplayer
pkgver=29411
pkgrel=3
pkgdesc="A movie player for linux"
arch=('i686' 'x86_64')
depends=('libxxf86dga' 'libxv' 'libmad' 'giflib' 'cdparanoia'
'sdl' 'lame' 'libtheora' 'xvidcore' 'zlib' 'libmng' 'libxss'
'libgl' 'smbclient' 'aalib' 'jack-audio-connection-kit' 'libcaca'
'x264>=20090416' 'faac' 'lirc-utils' 'ttf-dejavu' 'libxvmc' 'libjpeg>=7')
license=('GPL')
url="http://www.mplayerhq.hu/"
makedepends=('unzip' 'live-media' 'libdca' 'mesa')
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.bz2 liba52_gcc_bug.patch)
md5sums=('f98798cc793bcd13137cd941963342f7' 'ac53c73dd6f69d91ab0ea0591df4a653')
build() {
# Custom CFLAGS break the mplayer build
unset CFLAGS
# Needed to compile using gcc 4.4.0
patch -p0 < ${srcdir}/liba52_gcc_bug.patch || return 1
cd ${srcdir}/${pkgname}
./configure --prefix=/usr --enable-runtime-cpudetection --disable-gui --disable-arts \
--confdir=/etc/mplayer --disable-liblzo --disable-speex \
--disable-openal --disable-fribidi --disable-libdv --disable-musepack \
--language=all --disable-esd --disable-mga || return 1
[ "$CARCH" = "i686" ] && sed 's|-march=i486|-march=i686|g' -i config.mak
make || return 1
make -j1 DESTDIR=${pkgdir} install || return 1
install -Dm644 etc/{codecs.conf,input.conf,example.conf} ${pkgdir}/etc/mplayer/ || return 1
install -dm755 ${pkgdir}/usr/share/mplayer/
ln -s /usr/share/fonts/TTF/DejaVuSans.ttf ${pkgdir}/usr/share/mplayer/subfont.ttf || return 1
rm -rf ${pkgdir}/usr/share/mplayer/font
}