|
软件名:mplayer
版本:1.0pre7-6
软件简介:A movie player for linux
补丁:gcc4和gtk2补丁,支持gcc4编译和中文文件名
编写:
提交日期:2006年4月25日
PKGBUILD
- # $Id: PKGBUILD,v 1.64 2006/03/28 18:28:47 arjan Exp $
- # Maintainer: dorphell <dorphell@archlinux.org>
- # Contributor: bloodmelon <bloodmelon@gmail.com>
- pkgname=mplayer
- pkgver=1.0pre7
- pkgrel=6
- pkgdesc="A movie player for linux"
- depends=('libmad' 'libungif' 'cdparanoia' 'gtk'
- 'codecs' 'sdl' 'libjpeg' 'lame' 'libtheora'
- 'esd' 'faad2' 'ttf-bitstream-vera' 'libxxf86dga'
- 'fontconfig' 'libxinerama' 'libxv' 'libpng'
- 'libxxf86vm' 'xvidcore' 'freetype2')
- source=(ftp://ftp.mplayerhq.hu/MPlayer/releases/MPlayer-${pkgver}try2.tar.bz2
- ftp://ftp.mplayerhq.hu/MPlayer/Skin/Blue-1.5.tar.bz2
- http://www.mplayerhq.hu/MPlayer/patches/demuxer_h_fix_20060212.diff
- mplayer-1.0_pre7-gcc4.patch
- mplayer-1.0_pre7-gtk2.patch)
- url="http://www.mplayerhq.hu/"
- md5sums=('aaca4fd327176c1afb463f0f047ef6f4' '371fa9457f0f23295ddaa93b57d862a0'\
- 'ad36895346d36b51005c9f0d0c78effe' '99915b6272bb8ddeda36ce046d8a284a'\
- '54d3aef8749356e3fd1b97291aa86457')
- build() {
- cd $startdir/src/MPlayer-${pkgver}try2
- echo "gb18030"> help/help_mp-zh_CN.h.charset
- patch -Np1 -i $startdir/src/mplayer-1.0_pre7-gcc4.patch || return 1
- patch -Np1 -i $startdir/src/mplayer-1.0_pre7-gtk2.patch || return 1
- patch -Np0 -i $startdir/src/demuxer_h_fix_20060212.diff || return 1
- # *hint* next time build mplayer in chroot with only current on
- ./configure --prefix=/usr --enable-gui --disable-arts --enable-x11 \
- --disable-runtime-cpudetection --enable-sdl \
- --enable-theora --with-win32libdir=/usr/lib/win32 --confdir=/etc/mplayer \
- --enable-xvid --enable-gl --enable-tv-v4l --enable-tv-v4l2 \
- --language=zh_CN,en --charset=utf8 --disable-inet6 --with-reallibdir=/usr/lib/win32
- make || return 1
- make DESTDIR=${startdir}/pkg install
- cp etc/{codecs.conf,input.conf,example.conf} ${startdir}/pkg/etc/mplayer/
- ln -s /usr/share/fonts/TTF/Vera.ttf ${startdir}/pkg/usr/share/mplayer/subfont.ttf
- rm -rf ${startdir}/pkg/usr/share/mplayer/font
- mv ${startdir}/src/Blue ${startdir}/pkg/usr/share/mplayer/Skin/default
- }
复制代码
根据官方ABS修改的,加入gtk2补丁,支持gcc4编译和中文文件名及utf8
没有配置/etc/makepkg.conf 请把--disable-runtime-cpudetection 改为 --enable-runtime-cpudetection
附件中的patch请解压到PKGBUILD所在目录 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|