|
发表于 2009-9-5 16:54:56
|
显示全部楼层
ls不要误导人家, 那个半年前的帖子已经过时了
PKGBUILD- # $Id$
- # 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'
- 'libass' 'libdvdnav' 'libdvdread' 'libdvdcss')
- 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' 'c00f5d6cf7fb2a840e5eea9c1da568da')
- build() {
- # Custom CFLAGS break the mplayer build
- unset CFLAGS
- # Needed to compile using gcc 4.4.1
- patch -p0 < ${srcdir}/liba52_gcc_bug.patch || return 1
- cd ${srcdir}/${pkgname}
- ./configure --prefix=/usr --disable-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 --enable-ass --enable-freetype --enable-largefiles || 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
- }
复制代码
liba52_gcc_bug.patch:- --- mplayer/configure.old 2009-04-16 12:02:10.000000000 +0200
- +++ mplayer/configure 2009-05-22 15:23:38.000000000 +0200
- @@ -6410,6 +6410,7 @@
- def_liba52='#undef CONFIG_LIBA52'
- def_liba52_internal="#undef CONFIG_LIBA52_INTERNAL"
- if test "$_liba52_internal" = yes ; then
- + test "$cc_vendor" = gnu && test "$cc_version" = 4.4.1 && CFLAGS=$(echo $CFLAGS|sed "s/ *-O4 */ -O2 /")
- _liba52=yes
- def_liba52_internal="#define CONFIG_LIBA52_INTERNAL 1"
- _res_comment="internal"
复制代码
上述两个文件放到同一个文件夹, 然后makepkg. mplayer编译过程会自动侦测系统环境, 给你加上vdpau支持.
编译好后,pacman -Rd mplayer卸载, pacman -U *.pkg.tar.gz安装.
在~/.mplayer/config中加入- vo=vdpau,xv
- vc=ffh264vdpau,ffmpeg12vdpau,ffwmv3vdpau,
复制代码
请楼主以后多用用google, 试过了没有办法再来问问题!
记得贴上错误信息大家好帮忙. |
|