|
发表于 2008-11-18 16:23:56
|
显示全部楼层
Post by 沙漠之子;1910124
请把你那个成功的版本传上来 - # Contributor: kofshower(kofshower at gmail dot com)
- pkgname=mplayer
- pkgver=`date +%Y%m%e`
- pkgrel=1
- pkgdesc="A movie player for linux"
- depends=('libmad' 'libungif' 'cdparanoia' 'gtk2' 'codecs' 'sdl' 'xvidcore' \
- 'libjpeg' 'lame' 'libtheora' 'esd' 'faad2' 'faac' 'ttf-bitstream-vera' \
- 'libxxf86dga' 'fontconfig' 'libxinerama' 'libxv' 'libpng' \
- 'libxxf86vm' 'libgl')
- makedepends=('subversion' 'pkgconfig' 'wget')
- conflicts=('mplayer')
- conflicts=('mplayer-svn')
- conflicts=('mplayer-coreavc-svn')
- provides=('mplayer')
- replaces=('mplayer')
- replaces=('mplayer-svn')
- replaces=('mplayer-coreavc-svn')
- url="http://www.mplayerhq.hu/"
- license=("GPL")
- install=coreavc.install
- arch=('i686')
- _svncoreavc=http://coreavc-for-linux.googlecode.com/svn/trunk/
- _svncoreavcmod=coreavc-for-linux
- _svnmod=mplayer
- source=(http://www.mplayerhq.hu/MPlayer/skins/OSX-Brushed-2.3.tar.bz2
- http://920570575756640013-a-1802744773732722657-s-sites.googlegroups.com/site/polarisnotme/linux/ubuntu/mplayer-%E7%BC%96%E8%AF%91%E9%AB%98%E7%BA%A7/CoreAVC1.7.tar.gz
- http://www1.mplayerhq.hu/MPlayer/releases/mplayer-checkout-snapshot.tar.bz2)
- build() {
- cd $startdir/src/$pkgname*
- unset CFLAGS
- ./configure --prefix=/usr --disable-arts --enable-x11 \
- --enable-runtime-cpudetection --confdir=/etc/mplayer --disable-nas \
- --enable-gl --enable-tv-v4l1 --enable-tv-v4l2 --enable-largefiles \
- --disable-liblzo --disable-speex --disable-openal --enable-alsa\
- --disable-fribidi --disable-libdv --disable-musepack \
- --language=zh_CN,en --disable-dvdnav --disable-esd --disable-mga \
- --with-extraincdir=/usr/lib/live-media --disable-win32dll --disable-x264
- patch -p0 -i $startdir/dshowserver.patch || return 1
- make || return 1
- #mkdir -p $pkgdir/usr/share/man/{fr,es,de,cs,ru,pl,it,hu}/man1
- mkdir -p $pkgdir/usr/share/mplayer/skins
- mkdir -p $pkgdir/usr/lib/win32
- make DESTDIR=$startdir/pkg install || return 1
- install -m644 $srcdir/$pkgname*/etc/{input.conf,example.conf} $pkgdir/etc/mplayer
- install -m644 $startdir/codecs.conf $pkgdir/etc/mplayer
- rm -rf $pkgdir/usr/share/mplayer/font
- mv $srcdir/OSX-Brushed $pkgdir/usr/share/mplayer/skins/default
- cd $srcdir
- svn checkout $_svncoreavc $_svncoreavcmod
- cd $_svncoreavcmod
- make -C dshowserver || return 1
- install -m755 $srcdir/$_svncoreavcmod/dshowserver/dshowserver $pkgdir/usr/bin
- install -m755 $srcdir/$_svncoreavcmod/dshowserver/registercodec $pkgdir/usr/bin
- install -m755 $srcdir/CoreAVC1.7/CoreAVCDecoder.ax $pkgdir/usr/lib/win32
- registercodec -r ~/.mplayer/registry32 -k "HKLM\\Software\\CoreCodec\\CoreAVC Pro\\Serial" -v "0OKWX-E83B3-CORE-IQ0UW-3I3B7"
- registercodec -r ~/.mplayer/registry32 -l
- #echo "Testing coreavc decodec..."
- #dshowserver -c CoreAVCDecoder.ax -s 1280x720 -g 09571a4b-f1fe-4c60-9760de6d310c7c31 -b 12 -f 0x34363248 -o 0x30323449
- }
复制代码 大约是这样,自己写了几个patch,
注意编译mplayer的重要原则是unset CFLAGS,由configure来判断优化选项,而不是你自己来优化 |
|