wok-next view mplayer-svn/receipt @ rev 5194

Up: slitaz-base-files (3.2) Wok have now a 3.0 version string
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 28 15:43:04 2010 +0200 (2010-03-28)
parents 5b44af8c1257
children 9f947f5876b2
line source
1 # SliTaz package receipt.
3 PACKAGE="mplayer-svn"
4 VERSION="30817"
5 CATEGORY="multimedia"
6 SHORT_DESC="Mplayer SVN version"
7 MAINTAINER="jozee@slitaz.org"
8 DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora lame giflib \
9 xorg-libXss xorg-libXxf86vm alsa-lib bzlib"
10 SUGGESTED="libv4l"
11 BUILD_DEPENDS="gtk+-dev cdparanoia-III-dev libmad-dev xorg-libXv-dev libtheora-dev subversion"
12 SUGGESTED=""
13 WEB_SITE="http://www.mplayerhq.hu/design7/news.html"
14 PROVIDES="mplayer"
15 TAGS="player movie audio video"
17 # Rules to configure and make the package.
18 #
19 # This package is compiled against shared ffmpeg. Compiling with shared ffmpeg
20 # on svn version is always challenging. Tip: Try to use the same day ffmpeg and
21 # mplayer versions (use: svn info), very likely to succeed.
22 #
23 # To compile with in-built ffmpeg (and double the size of pkg), remove from
24 # compile options:
25 # --disable-libavutil_a --disable-libavcodec_a --disable-libavformat_a
26 # --disable-libpostproc_a --disable-libswscale_a --disable-libavcodec_mpegaudio_hp
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 # disable unwanted features, remote control, streaming, networking, unwanted codecs,
34 # disable video outputs, audio outputs, some advanced options
35 ./configure \
36 --prefix=/usr \
37 --confdir=/etc/mplayer \
38 --libdir=/usr/lib/mplayer \
39 --enable-gui --enable-freetype \
40 --language="en de es fr" \
41 --target=i386-linux \
42 --disable-largefiles --disable-dvdnav --disable-pvr --disable-enca --disable-fribidi --disable-maemo \
43 --disable-lirc --disable-lircc \
44 --disable-nemesi --disable-vstream \
45 --disable-smb --disable-network --disable-live \
46 --disable-speex --disable-mng --disable-liblzo --disable-faad --disable-faad-internal \
47 --disable-libdv --disable-faac --disable-faac-lavc --disable-ladspa --disable-libbs2b \
48 --disable-libdca --disable-musepack \
49 --disable-gl --disable-vdpau --disable-directfb --disable-sdl --disable-mga \
50 --disable-jack --disable-pulse --disable-ossaudio --disable-openal --disable-nas --disable-esd \
51 --disable-mmx --disable-mmxext --disable-3dnow --disable-3dnowext \
52 --disable-sse --disable-sse2 --disable-ssse3 --disable-fastmemcpy &&
53 make &&
54 make DESTDIR=$PWD/_pkg install
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 mkdir -p $fs/usr/share
61 cp -a $_pkg/usr/bin $fs/usr
62 # Mencoder goes in a splited package.
63 rm $fs/usr/bin/mencoder
64 cp -a $_pkg/usr/share/mplayer $fs/usr/share
65 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
66 cp -a $_pkg/etc $fs
67 cp $src/etc/example.conf $fs/etc/mplayer
68 # Config to use Xv by default.
69 cp stuff/mplayer.conf $fs/etc/mplayer
70 # default skin
71 tar xjf stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
72 cd $fs/usr/share/mplayer/skins && ln -s productive default
73 # Font
74 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
75 }