51 lines
1.4 KiB
Plaintext
51 lines
1.4 KiB
Plaintext
# Description: Versatile media player and encoder/converter
|
|
# URL: http://www.mplayerhq.hu/
|
|
# Maintainer: Matt Housh, jaeger at morpheus dot net
|
|
# Depends on: expat, xorg-libxinerama, xorg-libxv, xorg-libxxf86dga, xorg-libxxf86vm
|
|
|
|
# Nice to have: libsdl, libjpeg, libpng, lame, zlib, libogg, libvorbis,
|
|
# cdparanoia, win32-essential-codecs, faac, x264
|
|
|
|
# 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
|
|
version=1.0rc2
|
|
release=1
|
|
source=(http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-$version.tar.bz2 \
|
|
http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 \
|
|
mplayer.conf)
|
|
|
|
build() {
|
|
cd MPlayer-$version
|
|
|
|
# mplayer decides optimizations at configure time, don't use CRUX's
|
|
unset CFLAGS
|
|
./configure --prefix=/usr \
|
|
--mandir=/usr/man \
|
|
--win32codecsdir=/usr/lib/win32
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
(cd $PKG/usr/man/man1; rm mencoder.1; ln -s mplayer.1.gz mencoder.1.gz)
|
|
|
|
# fonts
|
|
mkdir -p $PKG/usr/share/mplayer/font
|
|
cp -a $SRC/font-arial-iso-8859-1/font-arial-??-iso-8859-1 \
|
|
$PKG/usr/share/mplayer/font
|
|
(cd $PKG/usr/share/mplayer/font
|
|
for i in font-arial-14-iso-8859-1/*
|
|
do
|
|
ln -s $i
|
|
done)
|
|
chmod 644 $PKG/usr/share/mplayer/font/font-arial-??-iso-8859-1/*
|
|
|
|
# config
|
|
cp $SRC/mplayer.conf $PKG/usr/etc/mplayer/
|
|
cp etc/input.conf $PKG/usr/etc/mplayer/
|
|
|
|
# finish up
|
|
chown -R root:root $PKG
|
|
}
|