# Description: Lecteur vidéo avancé basé sur mplayer. # URL: http://www.mplayer2.org/ # Maintainer: piernov # Packager: piernov # Depends on: live, mesa3d, libvdpau, ffmpeg, libdvdcss, libdvdread, libdvdnav, libxvmc, libass, fontconfig, freetype, dejavu-ttf, sdl, aalib, libcaca, faad2, pulseaudio, xorg-libxxf86vm, cdparanoia, libmad, liba52, libdca, xorg-libxxf86dga, git, unzip, yasm # Run on: live,mesa3d,libvdpau,ffmpeg,libdvdcss,libdvdread,libdvdnav,libxvmc,libass,fontconfig,freetype,dejavu-ttf,sdl,aalib,libcaca,faad2,pulseaudio,xorg-libxxf86vm,cdparanoia,libmad,liba52,libdca,xorg-libxxf86dga name=mplayer2 version=2.0 release=f63dbadd-1 source=(http://git.mplayer2.org/mplayer2/snapshot/mplayer2-${release%-*}.tar.xz) build() { cd $name-${release%-*} sed 's/gmplayer/mplayer/g' -i etc/mplayer.desktop CFLAGS=`echo $CFLAGS | sed "s/-O[s1-4]//"` CFLAGS="${CFLAGS} -O4" ./configure --prefix=/usr \ --enable-runtime-cpudetection \ --disable-musepack \ --language=all \ --enable-translation \ --confdir=/etc/mplayer \ --extra-cflags="${CFLAGS}" make make DESTDIR=$PKG install install -Dm644 etc/{codecs.conf,input.conf,example.conf} $PKG/etc/mplayer/ install -dm755 $PKG/usr/share/mplayer/ ln -s /usr/share/fonts/TTF/DejaVuSans.ttf $PKG/usr/share/mplayer/subfont.ttf install -dm755 $PKG/usr/share/applications/ install -m 644 etc/mplayer.desktop $PKG/usr/share/applications/ }