免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1164 | 回复: 0
打印 上一主题 下一主题

arch中自己修改的mplayer的PKGBUILD [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-03-11 22:11 |只看该作者 |倒序浏览

                                                版本为1.0rc1,与官方版本相比有一下更改:
- 去掉IPV6支持;
- 去掉lirc远程控制支持;
- 去掉samba支持;
- 去掉3pg格式的支持(arch官方是通过补丁形式实现的);
- 音频方面去掉jack-audio的支持;
- 去掉/etc/mplayer的backup;
* 更改默认皮肤为new-age;
* 更改界面字体为简体中文.
# $Id: PKGBUILD,v 1.7.20 2007/03/11 $
# Maintainer: dream dream7180@gmail.com>
pkgname=mplayer
pkgver=1.0rc1
pkgrel=20
pkgdesc="A movie player for linux"
arch=(i686 x86_64)
depends=('libxxf86dga' 'libxv' 'libmad' 'libungif' 'cdparanoia' 'gtk2'\
         'codecs' 'sdl' 'lame' 'libtheora' 'ttf-bitstream-vera' 'xvidcore'\
         'libgl' 'aalib' 'dbus-glib')
makedepends=('libcaca')
#backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
source=(ftp://ftp.mplayerhq.hu/MPlayer/releases/MPlayer-${pkgver}.tar.bz2 \
        http://www.mplayerhq.hu/MPlayer/skins/new-age-1.0.tar.bz2 \
        aalib-configure.patch \
        http://www.mplayerhq.hu/MPlayer/patches/asmrules_fix_20061231.diff)
#install=$pkgname.install
url="http://www.mplayerhq.hu/"
build() {
  cd $startdir/src/MPlayer-${pkgver}
  # Custom CFLAGS break the mplayer build
  unset CFLAGS
  # Fix potential buffer overflow
  patch -p0 -i ../asmrules_fix_20061231.diff || return 1
  # Fix aalib
  patch -p1 -i ../aalib-configure.patch || return 1
  
  cd $startdir/src/MPlayer-${pkgver}
  # i686 extra options
  [ "$CARCH" = "i686" ] && EXTRAOPTS="--with-win32libdir=/usr/lib/win32"
  ./configure --prefix=/usr --enable-gui --disable-arts --enable-x11 \
      --enable-runtime-cpudetection --enable-sdl \
      --enable-theora --confdir=/etc/mplayer \
      --enable-xvid --enable-gl --enable-tv-v4l1 --enable-tv-v4l2 --enable-largefiles --disable-jack \
      --disable-liblzo --disable-speex --disable-openal --disable-faac --disable-inet6 \
      --disable-smb --enable-aa --disable-fribidi --disable-libdv --disable-musepack \
      --language=zh_CN --disable-lirc --disable-dvdnav --disable-esd $EXTRAOPTS
  [ "$CARCH" = "i686" ] &&  sed 's|-march=i486|-march=i686|g' -i config.mak
  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/new-age ${startdir}/pkg/usr/share/mplayer/skins/default
}
aalib-configure.patch的内容为:
--- MPlayer-1.0rc1.orig/configure    2006-10-28 22:32:11.000000000 +0200
+++ MPlayer-1.0rc1/configure    2006-10-28 22:30:04.000000000 +0200
@@ -4193,6 +4193,8 @@
   _def_aa='#define HAVE_AA 1'
   if cygwin ; then
     _ld_aa=`aalib-config --libs | cut -d " " -f 2,5,6`
+  else
+    _ld_aa=`aalib-config --libs`
   fi
   _vosrc="$_vosrc vo_aa.c"
   _vomodules="aa $_vomodules"
               
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/24647/showart_257091.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP