LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2143|回复: 6

[arch][PKGBUILD]mplayer

[复制链接]
发表于 2006-4-25 23:56:52 | 显示全部楼层 |阅读模式
软件名:mplayer
版本:1.0pre7-6
软件简介:A movie player for linux
补丁:gcc4和gtk2补丁,支持gcc4编译和中文文件名
编写:
提交日期:2006年4月25日

PKGBUILD

  1. # $Id: PKGBUILD,v 1.64 2006/03/28 18:28:47 arjan Exp $
  2. # Maintainer: dorphell <dorphell@archlinux.org>
  3. # Contributor: bloodmelon <bloodmelon@gmail.com>

  4. pkgname=mplayer
  5. pkgver=1.0pre7
  6. pkgrel=6
  7. pkgdesc="A movie player for linux"
  8. depends=('libmad' 'libungif' 'cdparanoia' 'gtk'
  9.          'codecs' 'sdl' 'libjpeg' 'lame' 'libtheora'
  10.          'esd' 'faad2' 'ttf-bitstream-vera' 'libxxf86dga'
  11.          'fontconfig' 'libxinerama' 'libxv' 'libpng'
  12.          'libxxf86vm' 'xvidcore' 'freetype2')
  13. source=(ftp://ftp.mplayerhq.hu/MPlayer/releases/MPlayer-${pkgver}try2.tar.bz2
  14.         ftp://ftp.mplayerhq.hu/MPlayer/Skin/Blue-1.5.tar.bz2
  15.         http://www.mplayerhq.hu/MPlayer/patches/demuxer_h_fix_20060212.diff
  16.         mplayer-1.0_pre7-gcc4.patch
  17.         mplayer-1.0_pre7-gtk2.patch)
  18. url="http://www.mplayerhq.hu/"
  19. md5sums=('aaca4fd327176c1afb463f0f047ef6f4' '371fa9457f0f23295ddaa93b57d862a0'\
  20.          'ad36895346d36b51005c9f0d0c78effe' '99915b6272bb8ddeda36ce046d8a284a'\
  21.          '54d3aef8749356e3fd1b97291aa86457')

  22. build() {
  23.   cd $startdir/src/MPlayer-${pkgver}try2
  24.   echo "gb18030"> help/help_mp-zh_CN.h.charset
  25.   patch -Np1 -i $startdir/src/mplayer-1.0_pre7-gcc4.patch || return 1
  26.   patch -Np1 -i $startdir/src/mplayer-1.0_pre7-gtk2.patch || return 1
  27.   patch -Np0 -i $startdir/src/demuxer_h_fix_20060212.diff || return 1
  28.   # *hint* next time build mplayer in chroot with only current on
  29.   ./configure --prefix=/usr --enable-gui --disable-arts --enable-x11 \
  30.     --disable-runtime-cpudetection --enable-sdl \
  31.     --enable-theora --with-win32libdir=/usr/lib/win32 --confdir=/etc/mplayer \
  32.     --enable-xvid --enable-gl --enable-tv-v4l --enable-tv-v4l2 \
  33.     --language=zh_CN,en --charset=utf8 --disable-inet6 --with-reallibdir=/usr/lib/win32
  34.   make || return 1
  35.   make DESTDIR=${startdir}/pkg install
  36.   cp etc/{codecs.conf,input.conf,example.conf} ${startdir}/pkg/etc/mplayer/
  37.   ln -s /usr/share/fonts/TTF/Vera.ttf ${startdir}/pkg/usr/share/mplayer/subfont.ttf
  38.   rm -rf ${startdir}/pkg/usr/share/mplayer/font
  39.   mv ${startdir}/src/Blue ${startdir}/pkg/usr/share/mplayer/Skin/default
  40. }
复制代码


根据官方ABS修改的,加入gtk2补丁,支持gcc4编译和中文文件名及utf8
没有配置/etc/makepkg.conf 请把--disable-runtime-cpudetection 改为 --enable-runtime-cpudetection
附件中的patch请解压到PKGBUILD所在目录

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2006-4-26 01:25:40 | 显示全部楼层
dtw的repo有mplayer-cvs的包,不需要自己编译了
[dibble]
Server = http://dtw.jiwe.org/pkgs/dibble
回复 支持 反对

使用道具 举报

发表于 2006-4-26 11:08:08 | 显示全部楼层
Post by fallen
dtw的repo有mplayer-cvs的包,不需要自己编译了
[dibble]
Server = http://dtw.jiwe.org/pkgs/dibble



呵呵,这个CVS的没有加这两个参数吧?

  1. echo "gb18030"> help/help_mp-zh_CN.h.charset
复制代码

  1. --language=zh_CN
复制代码



另外提醒一下,喜欢看HDTV的朋友加上这个参数
  1. --enable-largefiles
复制代码


如果要支持DTS音效,在makepkg之前先pacman -S libdts。
回复 支持 反对

使用道具 举报

发表于 2006-4-26 12:03:15 | 显示全部楼层
如果你需要这两个参数,我建议直接修改mplayer-cvs的PKGBUILD,不要那两个patch。
回复 支持 反对

使用道具 举报

发表于 2006-4-26 14:10:33 | 显示全部楼层
呵呵 ,编译过了
很不错的
回复 支持 反对

使用道具 举报

发表于 2007-3-16 21:44:43 | 显示全部楼层
我怎么打开这俩个附件都是乱马?
请问我该如何操作才能下载这两个附件。
回复 支持 反对

使用道具 举报

发表于 2007-3-16 22:28:42 | 显示全部楼层
现在不需要那两个patch了。除非你用gbk/gb2312/gb18030等locale,可能需要一个中文patch。或者你要播放含中文路径的mms影视。比如mms://xxxxx/中文.asf 就需要另外一个补丁。xine直接支持。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表