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