Chinaunix首页 | 论坛 | 博客
  • 博客访问: 765918
  • 博文数量: 222
  • 博客积分: 10035
  • 博客等级: 上将
  • 技术积分: 2470
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-25 09:40
文章分类

全部博文(222)

文章存档

2010年(1)

2009年(6)

2008年(109)

2007年(106)

我的朋友

分类: LINUX

2008-01-20 18:34:59

  经过实践,使用src2pkg打包MPlayer在make的时候会出现Failure(失败),所以不得已使用SW自带的makepkg来打包。具体步骤如:
  $tar jxf MPlayer-1.0rc2.tar.bz2
  $cd MPlayer-1.0rc2
  $./configure --enable-gui --codecsdir=/usr/lib/codecs --win32codecsdir=/usr/lib/codecs --realcodecsdir=/usr/lib/codecs --xanimcodecsdir=/usr/lib/codecs --disable-inet6 --enable-largefiles --language=zh_CN,en
  $make
  $make install DESTDIR=/home/kanamin/mplayer-1.0rc2-Build
  $cd /home/kanamin/mplayer-1.0rc2-Bulid
  $mkdir install
  $cd install
  $gvim slack-desc
  slack-desc内容如下:
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.  Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in.  You must
# make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':'.

  |-----handy-ruler------------------------------------------------------|
MPlayer: MPlayer (MPEG-4 digital video technology)
MPlayer:
MPlayer: MPlayer is a movie player for LINUX. It plays most MPEG, VOB, AVI,
MPlayer: Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, FLI, RM, NuppelVideo,
MPlayer: YUV4MPEG, FILM, RoQ, PVA files, supported by many native, XAnim,
MPlayer: and Win32 DLL codecs. You can watch VideoCD, SVCD, DVD, 3ivx,
MPlayer: DivX 3/4/5 and even WMV movies, too (without the avifile library).
MPlayer: MPlayer supports 10 types of subtitles formats: VobSub,
MPlayer: MicroDVD, SubRip, SubViewer, Sami, VPlayer, RT, SSA, AQTitle, MPsub.
MPlayer:
MPlayer: Homepage for MPLayer is

  $cd ..
  $makepkg mplayer-1.0rc2-i686-kjs.tgz
  其中回答几个问题,如是否要删除符号链接并创建 doinst.sh 文件以在安装包的时候重新创建这些链接,还会问你是否把文件的权限更为 755等,这样所用的软件包就创建成功了。
  $su
  password:
  #installpkg mplayer-1.0rc2-i686-kjs.tgz

  通过上面的步骤,MPlayer就已安装成功,至于font和Skin按照提示安装就行,如此而已
阅读(1118) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~