48 lines
1.5 KiB
Plaintext
48 lines
1.5 KiB
Plaintext
# Description: Versatile media player and encoder/converter
|
|
# URL: https://gitorious.org/vaapi/mplayer/
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
|
# Packager: Matt Housh, jaeger at morpheus dot net
|
|
# Depends on: freetype glu libva xorg-libxinerama xorg-libxxf86dga yasm
|
|
# Optional: libva-intel libsdl libjpeg-turbo libpng lame zlib libogg libvorbis cdparanoia win32-essential-codecs faac x264 libdvdnav libdca
|
|
|
|
name=mplayer-vaapi
|
|
version=2013-09-12
|
|
release=2
|
|
source=(http://crux.nu/~tek/mplayer-vaapi-$version.tar.xz
|
|
http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
|
|
mplayer.conf)
|
|
|
|
build() {
|
|
cd mplayer-vaapi-$version
|
|
|
|
# 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"
|
|
|
|
rm -f ffmpeg/mp_auto_pull
|
|
|
|
./configure --prefix=/usr \
|
|
--codecsdir=/usr/share/codecs \
|
|
--confdir=/etc/mplayer \
|
|
--enable-vaapi
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
(cd $PKG/usr/share/man/man1; rm mencoder.1; ln -s mplayer.1.gz mencoder.1.gz)
|
|
|
|
# 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
|
|
|
|
# config
|
|
mkdir -p $PKG/etc/mplayer
|
|
install -m 644 $SRC/mplayer.conf $PKG/etc/mplayer/
|
|
install -m 644 etc/input.conf $PKG/etc/mplayer/
|
|
|
|
# finish up
|
|
rmdir $PKG/usr/lib
|
|
find $PKG -name '*.desc' | xargs chmod g-w
|
|
}
|