1 # Description: Versatile media player and encoder/converter
2 # URL: http://www.mplayerhq.hu/
3 # Maintainer: Thomas Penteker, tek at serverop dot de
4 # Packager: Matt Housh, jaeger at morpheus dot net
5 # Depends on: expat, freetype, xorg-libxinerama, xorg-libxv, xorg-libxxf86dga, xorg-libxxf86vm, yasm
6 # Nice to have: libsdl, libjpeg, libpng, lame, zlib, libogg, libvorbis, cdparanoia, win32-essential-codecs, faac, x264, libdvdnav, libdca
7
8 name=mplayer
9 version=2014-02-06
10 release=1
11 source=(http://crux.nu/~tek/mplayer-$version.tar.xz
12 http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
13 mplayer.conf)
14
15 build() {
16 cd mplayer-$version
17
18 # Keep in line with mplayer CFLAGS, but allow people to set their own march/mtune values.
19 export CFLAGS="$(echo $CFLAGS | sed -e 's/-O[s0-3]/-O3/') -ffast-math -fomit-frame-pointer -fno-strict-aliasing"
20
21 rm -f ffmpeg/mp_auto_pull
22
23 ./configure --prefix=/usr \
24 --mandir=/usr/man \
25 --codecsdir=/usr/share/codecs \
26 --confdir=/etc/mplayer
27 make
28 make DESTDIR=$PKG install
29
30 (cd $PKG/usr/man/man1; rm mencoder.1; ln -s mplayer.1.gz mencoder.1.gz)
31
32 # fonts
33 mkdir -p $PKG/usr/share/mplayer
34 cp -a $SRC/font-arial-iso-8859-1/font-arial-??-iso-8859-1 \
35 $PKG/usr/share/mplayer
36 ln -s font-arial-14-iso-8859-1 $PKG/usr/share/mplayer/font
37
38 # config
39 mkdir -p $PKG/etc/mplayer
40 install -m 644 $SRC/mplayer.conf $PKG/etc/mplayer/
41 install -m 644 etc/input.conf $PKG/etc/mplayer/
42
43 # finish up
44 rmdir $PKG/usr/lib
45 find $PKG -name '*.desc' | xargs chmod g-w
46 }
|