opt/mplayer/Pkgfile

46 lines
1.5 KiB
Plaintext
Raw Normal View History

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
# Nice to have: libsdl, libjpeg-turbo, libpng, lame, zlib, libogg, libvorbis, cdparanoia, win32-essential-codecs, faac, x264, libdvdnav, libdca
2006-02-23 16:26:10 +01:00
name=mplayer
2017-04-30 00:38:05 +02:00
version=2017-04-29
2010-08-11 01:06:23 +02:00
release=1
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 16:26:10 +01:00
build() {
2013-09-12 20:51:59 +02:00
cd mplayer-$version
2009-09-19 01:01:25 +02: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 -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 \
2017-08-20 22:17:53 +02:00
--mandir=/usr/share \
--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
2017-08-20 22:17:53 +02:00
(cd $PKG/usr/share/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
}