CRUX PPC
A lightweight GNU/Linux distribution for PowerPC!
Subversion Repository
Parent Directory | Revision Log
Revision 1934 - (show annotations)
Wed Aug 11 14:58:06 2010 UTC (3 months, 2 weeks ago) by acrux
File size: 1492 byte(s)
Wed Aug 11 14:58:06 2010 UTC (3 months, 2 weeks ago) by acrux
File size: 1492 byte(s)
mplayer: updated to export-2010-08-11
1 | # Description: Versatile media player and encoder/converter |
2 | # URL: http://www.mplayerhq.hu/ |
3 | # Maintainer: The CRUX PPC Team |
4 | # Packager: Matt Housh, jaeger at morpheus dot net |
5 | # Depends on: expat, freetype, xorg-libxinerama, xorg-libxv, xorg-libxxf86dga, xorg-libxxf86vm |
6 | # PPC!=upstream: |
7 | # |
8 | # Nice to have: mplayer-ppc-codecs, libsdl, libjpeg, libpng, lame, zlib, libogg, libvorbis, cdparanoia, faac, x264, libdvdnav |
9 | |
10 | name=mplayer |
11 | version=export-2010-08-11 |
12 | release=1 |
13 | source=(ftp://ftp.cruxppc.org/cruxppc/distfiles/$name-$version.tar.bz2 \ |
14 | http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 \ |
15 | mplayer.conf) |
16 | |
17 | build() { |
18 | cd $name-$version |
19 | |
20 | # mplayer decides optimizations at configure time |
21 | export CFLAGS="$(echo $CFLAGS | sed -e 's/-O[s0-3]/-O3/') -ffast-math -fomit-frame-pointer -fno-strict-aliasing" |
22 | |
23 | ./configure --prefix=/usr --mandir=/usr/man \ |
24 | --codecsdir=/usr/share/$name/codecs --enable-largefiles |
25 | |
26 | make |
27 | make DESTDIR=$PKG install |
28 | |
29 | (cd $PKG/usr/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 | } |