2006-02-26 07:32:07 +01:00
|
|
|
# Description: Versatile media player and encoder/converter
|
2006-02-23 16:26:10 +01:00
|
|
|
# URL: http://www.mplayerhq.hu/
|
2008-02-03 22:33:50 +01:00
|
|
|
# Packager: Matt Housh, jaeger at morpheus dot net
|
2008-06-19 14:46:02 +02:00
|
|
|
# Maintainer: Lucas Hazel, lucas at die dot net dot au
|
2007-04-27 20:32:55 +02:00
|
|
|
# Depends on: expat, xorg-libxinerama, xorg-libxv, xorg-libxxf86dga, xorg-libxxf86vm
|
2006-02-23 16:26:10 +01:00
|
|
|
|
2006-10-24 15:24:08 +02:00
|
|
|
# Nice to have: libsdl, libjpeg, libpng, lame, zlib, libogg, libvorbis,
|
2008-03-07 13:07:39 +01:00
|
|
|
# cdparanoia, win32-essential-codecs, faac, x264, libdvdnav
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
# More information can be found at http://www.mplayerhq.hu/DOCS/codecs.html and
|
|
|
|
# http://www.mplayerhq.hu/DOCS/HTML/en/index.html
|
|
|
|
|
|
|
|
name=mplayer
|
2009-03-15 01:14:52 +01:00
|
|
|
version=20090226.28734
|
2008-12-02 15:08:54 +01:00
|
|
|
release=1
|
2008-10-26 00:27:12 +02:00
|
|
|
source=(http://distfiles.gentoo.org/distfiles/$name-$version.tar.bz2
|
2008-12-02 15:08:54 +01:00
|
|
|
http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
|
2006-06-13 15:27:41 +02:00
|
|
|
mplayer.conf)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
build() {
|
2008-04-20 21:34:16 +02:00
|
|
|
cd $name-$version
|
2008-02-05 17:24:18 +01:00
|
|
|
|
2008-03-23 02:01:12 +01:00
|
|
|
# Keep in line with mplayer CFLAGS, but allow people to set their own march/mtune values.
|
|
|
|
export CFLAGS="$(echo $CFLAGS | sed -e 's/-O[s0-3]/-O3/') -ffast-math -fomit-frame-pointer"
|
2006-02-23 16:26:10 +01:00
|
|
|
./configure --prefix=/usr \
|
2007-10-08 21:07:58 +02:00
|
|
|
--mandir=/usr/man \
|
2008-02-08 17:14:17 +01:00
|
|
|
--win32codecsdir=/usr/lib/win32 \
|
|
|
|
--enable-largefiles
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
(cd $PKG/usr/man/man1; rm mencoder.1; ln -s mplayer.1.gz mencoder.1.gz)
|
|
|
|
|
|
|
|
# fonts
|
2008-06-07 07:25:44 +02:00
|
|
|
mkdir -p $PKG/usr/share/mplayer
|
2006-02-23 16:26:10 +01:00
|
|
|
cp -a $SRC/font-arial-iso-8859-1/font-arial-??-iso-8859-1 \
|
2008-06-07 07:25:44 +02:00
|
|
|
$PKG/usr/share/mplayer
|
|
|
|
ln -s font-arial-14-iso-8859-1 $PKG/usr/share/mplayer/font
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
# config
|
|
|
|
cp $SRC/mplayer.conf $PKG/usr/etc/mplayer/
|
|
|
|
cp etc/input.conf $PKG/usr/etc/mplayer/
|
|
|
|
|
|
|
|
# finish up
|
2008-12-02 15:08:54 +01:00
|
|
|
rmdir $PKG/usr/lib
|
2006-02-23 16:26:10 +01:00
|
|
|
chown -R root:root $PKG
|
|
|
|
}
|