2010-05-17 15:50:50 +08:00
|
|
|
# $Id: PKGBUILD 79976 2010-05-09 20:33:34Z ibiru $
|
|
|
|
# Maintainer : Ionut Biru <ibiru@archlinux.org>
|
2010-03-14 23:48:48 +08:00
|
|
|
# Contributor: Hugo Doria <hugo@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=mplayer
|
2010-05-17 15:50:50 +08:00
|
|
|
pkgver=31147
|
2010-03-14 23:48:48 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A movie player for linux"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
depends=('libxxf86dga' 'libxv' 'libmad' 'giflib' 'cdparanoia' 'libxinerama'
|
|
|
|
'sdl' 'lame' 'libtheora' 'xvidcore' 'zlib' 'libmng' 'libxss'
|
|
|
|
'libgl' 'smbclient' 'aalib' 'jack' 'libcaca'
|
2010-05-17 15:50:50 +08:00
|
|
|
'x264>=20100410' 'faac' 'lirc-utils' 'ttf-dejavu' 'libxvmc' 'libjpeg>=8'
|
2010-08-20 11:11:12 +08:00
|
|
|
'enca' 'libvdpau>=0.4' 'opencore-amr' 'libdca' 'a52dec' 'schroedinger>=1.0.9'
|
2010-08-20 11:11:47 +08:00
|
|
|
'openjpeg')
|
2010-03-14 23:48:48 +08:00
|
|
|
license=('GPL')
|
|
|
|
url="http://www.mplayerhq.hu/"
|
|
|
|
makedepends=('unzip' 'mesa' 'live-media>=2010.01.13')
|
|
|
|
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
|
2010-05-17 15:50:50 +08:00
|
|
|
source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.xz mplayer.desktop mplayer.png)
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
# Custom CFLAGS break the mplayer build
|
|
|
|
unset CFLAGS LDFLAGS
|
|
|
|
|
|
|
|
cd ${srcdir}/${pkgname}
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--enable-runtime-cpudetection \
|
|
|
|
--disable-gui \
|
|
|
|
--disable-arts \
|
|
|
|
--disable-liblzo \
|
|
|
|
--disable-speex \
|
|
|
|
--disable-openal \
|
|
|
|
--disable-fribidi \
|
|
|
|
--disable-libdv \
|
|
|
|
--disable-musepack \
|
|
|
|
--disable-esd \
|
|
|
|
--disable-mga \
|
|
|
|
--enable-xvmc \
|
|
|
|
--language=all \
|
2010-05-17 15:50:50 +08:00
|
|
|
--confdir=/etc/mplayer || return 1
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
[ "$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
|
|
|
|
#desktop file FS#14770
|
|
|
|
install -Dm644 ${srcdir}/mplayer.desktop ${pkgdir}/usr/share/applications/mplayer.desktop || return 1
|
|
|
|
install -Dm644 ${srcdir}/mplayer.png ${pkgdir}/usr/share/pixmaps/mplayer.png || return 1
|
|
|
|
}
|
2010-05-17 15:50:50 +08:00
|
|
|
md5sums=('9829e6bcf159464a97acbff739268e75'
|
|
|
|
'c0d6ef795cf6de48e3b87ff7c23f0319'
|
2010-03-14 23:48:48 +08:00
|
|
|
'd00874ccc644b7f43d6ef1c942fcef28')
|
2010-05-17 15:50:50 +08:00
|
|
|
sha256sums=('55659cd4517ce38bdbe536de9ee1e663526b7c1babc1b21e431f8a46e0fc53e6'
|
|
|
|
'cff7e885d39999267efbb6e500bea5648b982a8a24ec25ca4ccdbd060eee488c'
|
|
|
|
'061739a8cc267748ad58f168034cc39785d949a5262772535e1b347c7842af48')
|