updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mplayer-nosmb / PKGBUILD
blob6d85a531eea741ce922da17272a4060a6b925450
1 # Maintainer: Hilton Medeiros <medeiros.hilton at gmail dot com>
2 # Contributor : Ionut Biru <ibiru@archlinux.org>
3 # Contributor: Hugo Doria <hugo@archlinux.org>
5 pkgname=mplayer-nosmb
6 _pkgname=mplayer
7 pkgver=32492
8 pkgrel=1
9 pkgdesc="A movie player for linux (without samba support)."
10 arch=('i686' 'x86_64')
11 depends=('libxxf86dga' 'libxxf86vm' 'libmad' 'cdparanoia' 'libxinerama' 'sdl' 'lame' 'libtheora' 'xvidcore' 'libmng' 'libxss'
12          'libgl' 'aalib' 'jack' 'libcaca' 'x264' 'faac' 'lirc-utils' 'ttf-dejavu' 'libxvmc' 'libvdpau>=0.4'
13          'opencore-amr' 'libdca' 'a52dec' 'nas' 'libass' 'openjpeg' 'schroedinger' 'libvpx')
14 license=('GPL')
15 url="http://www.mplayerhq.hu/"
16 makedepends=('unzip' 'mesa' 'live-media>=2010.01.13' 'yasm')
17 backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
18 conflicts=('mplayer')
19 provides=("mplayer=$pkgver")
20 source=(ftp://ftp.archlinux.org/other/${_pkgname}/${_pkgname}-${pkgver}.tar.xz mplayer.desktop mplayer.png)
21 md5sums=('01beb068608d3977fbb84b0b28935cee'
22          '647b9f4ab5284a7fef3f84f992214e77'
23          'd00874ccc644b7f43d6ef1c942fcef28')
25 build() {
26   # Custom CFLAGS break the mplayer build
27   unset CFLAGS LDFLAGS
29   cd ${srcdir}/${_pkgname}
31   ./configure --prefix=/usr \
32       --enable-runtime-cpudetection \
33       --disable-gui \
34       --disable-arts \
35       --disable-liblzo \
36       --disable-speex \
37       --disable-openal \
38       --disable-fribidi \
39       --disable-libdv \
40       --disable-musepack \
41       --disable-esd \
42       --disable-mga \
43       --disable-smb \
44       --enable-xvmc \
45       --language=all \
46       --confdir=/etc/mplayer
48   [ "$CARCH" = "i686" ] &&  sed 's|-march=i486|-march=i686|g' -i config.mak
50   make
53 package() {
54   unset CFLAGS LDFLAGS
55   cd ${srcdir}/${_pkgname}
57   make -j1 DESTDIR=${pkgdir} install
59   install -Dm644 etc/{codecs.conf,input.conf,example.conf} ${pkgdir}/etc/mplayer/
60   install -dm755 ${pkgdir}/usr/share/mplayer/
62   ln -s /usr/share/fonts/TTF/DejaVuSans.ttf ${pkgdir}/usr/share/mplayer/subfont.ttf
63   rm -rf ${pkgdir}/usr/share/mplayer/font
65   install -Dm644 ${srcdir}/mplayer.desktop ${pkgdir}/usr/share/applications/mplayer.desktop
66   install -Dm644 ${srcdir}/mplayer.png ${pkgdir}/usr/share/pixmaps/mplayer.png