wok view mplayer-svn/receipt @ rev 5030

[l-n]*: update depends
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 03 00:03:13 2010 +0100 (2010-03-03)
parents 4315a8ce2206
children ea20cff80fb0
line source
1 # SliTaz package receipt.
3 PACKAGE="mplayer-svn"
4 VERSION="30605"
5 CATEGORY="multimedia"
6 SHORT_DESC="Mplayer SVN version"
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora lame libv4l giflib \
9 xorg-libXss xorg-libXxf86vm enca faac libmng alsa-lib bzlib"
10 BUILD_DEPENDS="gtk+-dev cdparanoia-III-dev libmad-dev xorg-libXv-dev libtheora-dev ffmpeg-dev subversion"
11 SUGGESTED=""
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 }