1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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/
}
|