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-turbo, libpng, lame, zlib, libogg, libvorbis, cdparanoia, win32-essential-codecs, faac, x264, libdvdnav, libdca
7
8 name=mplayer
9 version=2018-09-08
10 release=1
11 source=(http://distfiles.serverop.de/mplayer-$version.tar.xz
12 http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 mplayer.conf)
13
14 build() {
15 cd mplayer-$version
16
17 # Keep in line with mplayer CFLAGS, but allow people to set their own march/mtune values.
18 export CFLAGS="$(echo $CFLAGS | sed -e 's/-O[s0-3]/-O3/') -ffast-math -fomit-frame-pointer -fno-strict-aliasing"
19
20 rm -f ffmpeg/mp_auto_pull
21
22 ./configure --prefix=/usr \
23 --mandir=/usr/share/man \
24 --codecsdir=/usr/share/codecs \
25 --confdir=/etc/mplayer
26 make
27 make DESTDIR=$PKG install
28
29 (cd $PKG/usr/share/man/man1; rm mencoder.1; ln -s mplayer.1.gz mencoder.1.gz)
30
31 # fonts
32 mkdir -p $PKG/usr/share/mplayer
33 cp -a $SRC/font-arial-iso-8859-1/font-arial-??-iso-8859-1 \
34 $PKG/usr/share/mplayer
35 ln -s font-arial-14-iso-8859-1 $PKG/usr/share/mplayer/font
36
37 # config
38 mkdir -p $PKG/etc/mplayer
39 install -m 644 $SRC/mplayer.conf $PKG/etc/mplayer/
40 install -m 644 etc/input.conf $PKG/etc/mplayer/
41
42 # finish up
43 rmdir $PKG/usr/lib
44 find $PKG -name '*.desc' | xargs chmod g-w
45 }
|