CRUX PPC
A lightweight GNU/Linux distribution for PowerPC!
Subversion Repository
Parent Directory
|
Revision Log
Revision 391 -
(hide annotations)
Sun Oct 4 15:03:07 2009 UTC (3 years, 7 months ago) by cjg
File size: 1334 byte(s)
Sun Oct 4 15:03:07 2009 UTC (3 years, 7 months ago) by cjg
File size: 1334 byte(s)
mplayer: updated to 1.0_rc2_p28450
| 1 | cjg | 266 | # Description: Versatile media player and encoder/converter |
| 2 | # URL: http://www.mplayerhq.hu/ | ||
| 3 | # Maintainer: The CRUX PPC Team | ||
| 4 | # Depends on: expat, xorg-libxinerama, xorg-libxv, xorg-libxxf86dga, xorg-libxxf86vm | ||
| 5 | # PPC!=upstream: | ||
| 6 | # | ||
| 7 | # Nice to have: mplayer-ppc-codecs, libsdl, libjpeg, libpng, lame, zlib, libogg, libvorbis, cdparanoia, faac, x264, libdvdnav | ||
| 8 | |||
| 9 | name=mplayer | ||
| 10 | cjg | 391 | version=1.0_rc2_p28450 |
| 11 | release=1 | ||
| 12 | source=(http://distfiles.gentoo.org/distfiles/$name-$version.tar.bz2 \ | ||
| 13 | cjg | 266 | http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 \ |
| 14 | mplayer.conf) | ||
| 15 | |||
| 16 | build() { | ||
| 17 | cjg | 391 | cd $name-$version |
| 18 | cjg | 266 | |
| 19 | # mplayer decides optimizations at configure time | ||
| 20 | export CFLAGS="$(echo $CFLAGS | sed -e 's/-O[s0-3]/-O3/') -ffast-math -fomit-frame-pointer" | ||
| 21 | |||
| 22 | ./configure --prefix=/usr --mandir=/usr/man \ | ||
| 23 | --codecsdir=/usr/share/$name/codecs --enable-largefiles | ||
| 24 | |||
| 25 | make | ||
| 26 | make DESTDIR=$PKG install | ||
| 27 | |||
| 28 | (cd $PKG/usr/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 | cp $SRC/mplayer.conf $PKG/usr/etc/$name/ | ||
| 38 | cp etc/input.conf $PKG/usr/etc/$name/ | ||
| 39 | |||
| 40 | # finish up | ||
| 41 | cjg | 391 | rmdir $PKG/usr/lib |
| 42 | cjg | 266 | chown -R root:root $PKG |
| 43 | } |