wok view mplayer-svn/receipt @ rev 4947

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