1 # Description: Versatile media player and encoder/converter
2 # URL: http://www.mplayerhq.hu/
3 # Packager: Matt Housh, jaeger at morpheus dot net
4 # Maintainer: Brett Goulder, predatorfreak at dcaf-security dot org
5 # Depends on: expat, xorg-libxinerama, xorg-libxv, xorg-libxxf86dga, xorg-libxxf86vm
6
7 # Nice to have: libsdl, libjpeg, libpng, lame, zlib, libogg, libvorbis,
8 # cdparanoia, win32-essential-codecs, faac, x264, libdvdnav
9
10 # More information can be found at http://www.mplayerhq.hu/DOCS/codecs.html and
11 # http://www.mplayerhq.hu/DOCS/HTML/en/index.html
12
13 name=mplayer
14 version=1.0_rc2_p26450
15 release=1
16 source=(http://gentoo.chem.wisc.edu/gentoo/distfiles/$name-$version.tar.bz2 \
17 http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 \
18 mplayer.conf)
19
20 build() {
21 cd $name-$version
22
23 # Keep in line with mplayer CFLAGS, but allow people to set their own march/mtune values.
24 export CFLAGS="$(echo $CFLAGS | sed -e 's/-O[s0-3]/-O3/') -ffast-math -fomit-frame-pointer"
25 ./configure --prefix=/usr \
26 --mandir=/usr/man \
27 --win32codecsdir=/usr/lib/win32 \
28 --enable-largefiles
29
30 make
31 make DESTDIR=$PKG install
32
33 (cd $PKG/usr/man/man1; rm mencoder.1; ln -s mplayer.1.gz mencoder.1.gz)
34
35 # fonts
36 mkdir -p $PKG/usr/share/mplayer/font
37 cp -a $SRC/font-arial-iso-8859-1/font-arial-??-iso-8859-1 \
38 $PKG/usr/share/mplayer/font
39 (cd $PKG/usr/share/mplayer/font
40 for i in font-arial-14-iso-8859-1/*
41 do
42 ln -s $i
43 done)
44 chmod 644 $PKG/usr/share/mplayer/font/font-arial-??-iso-8859-1/*
45
46 # config
47 cp $SRC/mplayer.conf $PKG/usr/etc/mplayer/
48 cp etc/input.conf $PKG/usr/etc/mplayer/
49
50 # finish up
51 chown -R root:root $PKG
52 }
|