wok-current view mplayer-svn/receipt @ rev 4540
mplayer-svn: update depends
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Tue Dec 01 20:29:22 2009 +0000 (2009-12-01) |
parents | 5a5ab60831dd |
children | 8b287c42c709 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mplayer-svn"
4 VERSION="29969"
5 CATEGORY="multimedia"
6 SHORT_DESC="Mplayer SVN version"
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora ffmpeg lame libv4l
9 giflib enca xorg-libXss xorg-libXxf86vm faac"
10 BUILD_DEPENDS="gtk+-dev cdparanoia-III-dev libmad-dev xorg-libXv-dev
11 libtheora-dev ffmpeg-dev subversion"
12 WEB_SITE="http://www.mplayerhq.hu/design7/news.html"
13 PROVIDES="mplayer"
14 TAGS="player movie audio video"
16 # Rules to configure and make the package.
17 #
18 # This package is compiled against shared ffmpeg. Compiling with shared ffmpeg
19 # on svn version is always challenging. Tip: Try to use the same day ffmpeg and
20 # mplayer versions (use: svn info), very likely to succeed.
21 #
22 # To compile with in-built ffmpeg (and double the size of pkg), remove from
23 # compile options:
24 # --disable-libavutil_a --disable-libavcodec_a --disable-libavformat_a
25 # --disable-libpostproc_a --disable-libswscale_a
26 # --disable-tv --disable-radio-v4l2 --disable-v4l2
28 compile_rules()
29 {
30 [ -d $PACKAGE-$VERSION ] || svn checkout -r $VERSION \
31 svn://svn.mplayerhq.hu/mplayer/trunk $PACKAGE-$VERSION
32 cd $src
33 ./configure \
34 --prefix=/usr \
35 --confdir=/etc/mplayer \
36 --libdir=/usr/lib/mplayer \
37 --disable-largefiles \
38 --disable-mmx --disable-mmxext \
39 --disable-3dnow --disable-3dnowext \
40 --disable-sse --disable-sse2 --disable-ssse3 \
41 --disable-fastmemcpy \
42 --language="en de es fr" \
43 --disable-gl \
44 --disable-sdl \
45 --disable-jack \
46 --disable-liblzo \
47 --disable-libdv \
48 --disable-speex \
49 --disable-openal \
50 --disable-faad \
51 --disable-libavcodec_mpegaudio_hp \
52 --disable-fribidi \
53 --target=i386-linux \
54 --disable-dvdnav \
55 --disable-esd --disable-mga \
56 --disable-lirc --disable-lircc \
57 --disable-smb --disable-nemesi \
58 --disable-nas --disable-vdpau \
59 --enable-gui --enable-freetype &&
60 make &&
61 make DESTDIR=$PWD/_pkg install
62 }
64 # Rules to gen a SliTaz package suitable for Tazpkg.
65 genpkg_rules()
66 {
67 mkdir -p $fs/usr/share
68 cp -a $_pkg/usr/bin $fs/usr
69 # Mencoder goes in a splited package.
70 rm $fs/usr/bin/mencoder
71 cp -a $_pkg/usr/share/mplayer $fs/usr/share
72 cp -a $_pkg/etc $fs
73 cp $src/etc/example.conf $fs/etc/mplayer
74 # Config to use Xv by default.
75 cp stuff/mplayer.conf $fs/etc/mplayer
76 # default skin
77 tar xjf stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
78 cd $fs/usr/share/mplayer/skins && ln -s productive default
79 # Font
80 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
81 }