summaryrefslogtreecommitdiff
path: root/mplayer-vaapi/Pkgfile
blob: bf345a4c7ad66beb5c5ef4ff870125a0f5fc691c (plain)
    1 # Description:  Versatile media player and encoder/converter
    2 # URL:          https://gitorious.org/vaapi/mplayer/
    3 # Maintainer:   Thomas Penteker, tek at serverop dot de
    4 # Depends on:   freetype glu libva xorg-libxinerama xorg-libxxf86dga yasm
    5 # Optional:     libva-intel libsdl libjpeg-turbo libpng lame zlib libogg libvorbis cdparanoia win32-essential-codecs faac x264 libdvdnav libdca
    6 
    7 name=mplayer-vaapi
    8 version=2013-09-12
    9 release=2
   10 source=(http://crux.nu/~tek/mplayer-vaapi-$version.tar.xz
   11   http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
   12   mplayer.conf)
   13 
   14 build() {
   15   cd mplayer-vaapi-$version
   16 
   17   # Keep in line with mplayer CFLAGS, but allow people to set their own march/mtune values.
   18   export CFLAGS="$(echo $CFLAGS | sed -e 's/-O[s0-3]/-O3/') -ffast-math -fomit-frame-pointer -fno-strict-aliasing"
   19 
   20   rm -f ffmpeg/mp_auto_pull
   21 
   22   ./configure --prefix=/usr \
   23       --codecsdir=/usr/share/codecs \
   24       --confdir=/etc/mplayer \
   25       --enable-vaapi
   26  
   27   make
   28   make DESTDIR=$PKG install
   29 
   30   (cd $PKG/usr/share/man/man1; rm mencoder.1; ln -s mplayer.1.gz mencoder.1.gz)
   31 
   32   # fonts
   33   mkdir -p $PKG/usr/share/mplayer
   34   cp -a $SRC/font-arial-iso-8859-1/font-arial-??-iso-8859-1 \
   35     $PKG/usr/share/mplayer
   36   ln -s font-arial-14-iso-8859-1 $PKG/usr/share/mplayer/font
   37 
   38   # config
   39   mkdir -p $PKG/etc/mplayer
   40   install -m 644 $SRC/mplayer.conf $PKG/etc/mplayer/
   41   install -m 644 etc/input.conf $PKG/etc/mplayer/
   42 
   43   # finish up
   44   rmdir $PKG/usr/lib
   45   find $PKG -name '*.desc' | xargs chmod g-w
   46 }

Generated by cgit