2009-09-19 01:01:25 +02:00
|
|
|
# Description: Versatile media player and encoder/converter
|
|
|
|
# URL: http://www.mplayerhq.hu/
|
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
|
|
|
# Packager: Matt Housh, jaeger at morpheus dot net
|
2010-09-27 20:58:12 +02:00
|
|
|
# Depends on: expat, freetype, xorg-libxinerama, xorg-libxv, xorg-libxxf86dga, xorg-libxxf86vm, yasm
|
2009-10-11 23:14:46 +02:00
|
|
|
# Nice to have: libsdl, libjpeg, libpng, lame, zlib, libogg, libvorbis, cdparanoia, win32-essential-codecs, faac, x264, libdvdnav, libdca
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=mplayer
|
2013-09-12 20:51:59 +02:00
|
|
|
version=2013-09-12
|
2010-08-11 01:06:23 +02:00
|
|
|
release=1
|
2013-09-12 20:51:59 +02:00
|
|
|
source=(http://crux.nu/~tek/mplayer-$version.tar.bz2
|
2009-09-19 01:01:25 +02:00
|
|
|
http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
|
|
|
|
mplayer.conf)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
build() {
|
2013-09-12 20:51:59 +02:00
|
|
|
cd mplayer-$version
|
2008-02-05 17:24:18 +01:00
|
|
|
|
2009-09-19 01:01:25 +02:00
|
|
|
# Keep in line with mplayer CFLAGS, but allow people to set their own march/mtune values.
|
2009-10-11 23:14:46 +02:00
|
|
|
export CFLAGS="$(echo $CFLAGS | sed -e 's/-O[s0-3]/-O3/') -ffast-math -fomit-frame-pointer -fno-strict-aliasing"
|
2011-08-16 22:11:43 +02:00
|
|
|
|
|
|
|
rm -f ffmpeg/mp_auto_pull
|
|
|
|
|
2009-09-19 01:01:25 +02:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--mandir=/usr/man \
|
2009-12-30 22:01:42 +01:00
|
|
|
--codecsdir=/usr/share/codecs \
|
2011-06-03 09:49:16 +02:00
|
|
|
--confdir=/etc/mplayer
|
2013-03-22 10:45:17 +01:00
|
|
|
make
|
2009-09-19 01:01:25 +02:00
|
|
|
make DESTDIR=$PKG install
|
2006-02-23 16:26:10 +01:00
|
|
|
|
2009-09-19 01:01:25 +02:00
|
|
|
(cd $PKG/usr/man/man1; rm mencoder.1; ln -s mplayer.1.gz mencoder.1.gz)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
2009-09-19 01:01:25 +02:00
|
|
|
# fonts
|
|
|
|
mkdir -p $PKG/usr/share/mplayer
|
|
|
|
cp -a $SRC/font-arial-iso-8859-1/font-arial-??-iso-8859-1 \
|
|
|
|
$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
|
|
|
|
2009-09-19 01:01:25 +02:00
|
|
|
# config
|
2009-12-30 15:53:08 +01:00
|
|
|
mkdir -p $PKG/etc/mplayer
|
|
|
|
install -m 644 $SRC/mplayer.conf $PKG/etc/mplayer/
|
|
|
|
install -m 644 etc/input.conf $PKG/etc/mplayer/
|
2006-02-23 16:26:10 +01:00
|
|
|
|
2009-09-19 01:01:25 +02:00
|
|
|
# finish up
|
|
|
|
rmdir $PKG/usr/lib
|
|
|
|
find $PKG -name '*.desc' | xargs chmod g-w
|
2006-02-23 16:26:10 +01:00
|
|
|
}
|