diff options
Diffstat (limited to 'mplayer2/Pkgfile')
-rw-r--r-- | mplayer2/Pkgfile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/mplayer2/Pkgfile b/mplayer2/Pkgfile new file mode 100644 index 000000000..d3aab1cc9 --- /dev/null +++ b/mplayer2/Pkgfile @@ -0,0 +1,39 @@ +# Description: Lecteur vidéo avancé basé sur mplayer. +# URL: http://www.mplayer2.org/ +# Maintainer: piernov <piernov@piernov.org> +# Packager: piernov <piernov@piernov.org> +# 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 +revision=c4093e7d +revision=803dc1fb +version=git-$revision +release=1 +source=(http://git.mplayer2.org/mplayer2/snapshot/mplayer2-$revision.tar.xz) + +build() { + cd $name-$revision + + CFLAGS=`echo $CFLAGS | sed "s/-O[s1-4]//"` + CFLAGS="${CFLAGS} -O4" + + ./configure --prefix=/usr \ + --enable-runtime-cpudetection \ + --disable-musepack \ + --disable-esd \ + --language=all \ + --enable-translation \ + --confdir=/etc/mplayer \ + --extra-cflags="${CFLAGS}" + make + make DESTDIR=$PKG install + + 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/ +} |