wok-next view mplayer-svn/receipt @ rev 3320
Up: module-init-tools (3.9)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 08 19:12:04 2009 +0200 (2009-06-08) |
parents | 2931a476349d |
children | 6842cfbcc0ca |
line source
1 # SliTaz package receipt.
3 PACKAGE="mplayer-svn"
4 VERSION="29268"
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"
9 BUILD_DEPENDS="gtk+-dev cdparanoia-III-dev libmad-dev xorg-libXv-dev
10 libtheora-dev ffmpeg-dev subversion"
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 # This package is compiled against shared ffmpeg. Compiling with shared ffmpeg on svn version is always challenging.
17 # Tip: Try to use the same day ffmpeg and mplayer versions (use: svn info), very likely to succeed
18 # To compile with in-built ffmpeg (and double the size of pkg), remove from compile options:
19 # --disable-libavcodec_a --disable-libavformat_a --disable-libpostproc_a --disable-libswscale_a
21 compile_rules()
22 {
24 mkdir $src 2> /dev/null
25 cd $src
26 [ -f mplayer/configure ] || svn checkout -r $VERSION \
27 svn://svn.mplayerhq.hu/mplayer/trunk mplayer
28 cd mplayer
29 ./configure \
30 --prefix=/usr \
31 --confdir=/etc/mplayer \
32 --libdir=/usr/lib/mplayer \
33 --disable-largefiles \
34 --disable-mmx --disable-mmxext \
35 --disable-3dnow --disable-3dnowext \
36 --disable-sse --disable-sse2 --disable-ssse3 \
37 --disable-fastmemcpy \
38 --language="en de es fr" \
39 --disable-gl \
40 --disable-sdl \
41 --disable-jack \
42 --disable-liblzo \
43 --disable-libdv \
44 --disable-libavcodec_a \
45 --disable-libavformat_a \
46 --disable-libpostproc_a \
47 --disable-libswscale_a \
48 --disable-fribidi --target=i386-linux --disable-libavutil_a \
49 --disable-tv --disable-tv-teletext --disable-radio-v4l2 --disable-v4l2 \
50 --disable-musepack --disable-dvdnav --disable-esd --disable-mga \
51 --disable-libamr_nb --disable-lirc --disable-nas --enable-gui &&
52 make &&
53 make DESTDIR=$PWD/../_pkg install
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr/share
60 cp -a $_pkg/usr/bin $fs/usr
61 # Mencoder goes in a splited package.
62 rm $fs/usr/bin/mencoder
63 cp -a $_pkg/usr/share/mplayer $fs/usr/share
64 cp -a $_pkg/etc $fs
65 cp $src/mplayer/etc/example.conf $fs/etc/mplayer
66 # Config to use Xv by default.
67 cp stuff/mplayer.conf $fs/etc/mplayer
68 # default skin
69 tar xjf stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
70 cd $fs/usr/share/mplayer/skins && ln -s productive default
71 # Font
72 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
73 }