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
|
2014-07-20 20:54:28 +10:00
|
|
|
# Nice to have: libsdl, libjpeg-turbo, libpng, lame, zlib, libogg, libvorbis, cdparanoia, win32-essential-codecs, faac, x264, libdvdnav, libdca
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=mplayer
|
2017-04-30 00:38:05 +02:00
|
|
|
version=2017-04-29
|
2018-03-30 12:10:53 +11:00
|
|
|
release=2
|
2017-04-30 00:38:05 +02:00
|
|
|
source=(http://distfiles.serverop.de/mplayer-$version.tar.xz
|
2015-01-20 21:47:37 +01:00
|
|
|
http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 mplayer.conf)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
2013-09-12 20:51:59 +02:00
|
|
|
cd mplayer-$version
|
2008-02-05 11:24:18 -05: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 \
|
2018-03-30 12:10:53 +11:00
|
|
|
--mandir=/usr/share/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 15:26:10 +00:00
|
|
|
|
2018-03-30 12:10:53 +11:00
|
|
|
(cd $PKG/usr/share/man/man1; rm mencoder.1; ln -s mplayer.1.gz mencoder.1.gz)
|
2006-02-23 15:26:10 +00: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 15:26:10 +00: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 15:26:10 +00: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 15:26:10 +00:00
|
|
|
}
|