wok-current view mplayer-svn/receipt @ rev 5799

Speedup some builds
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 11 13:55:46 2010 +0200 (2010-07-11)
parents 2f2e0fbc2d56
children 85241294b8f8
line source
1 # SliTaz package receipt.
3 PACKAGE="mplayer-svn"
4 VERSION="31179"
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 TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz
31 if [ -d $PACKAGE-$VERSION ]; then
32 true
33 elif [ -f $TARBALL ]; then
34 tar xzf $TARBALL
35 else
36 svn checkout -r $VERSION \
37 svn://svn.mplayerhq.hu/mplayer/trunk $PACKAGE-$VERSION &&
38 tar czf $TARBALL $PACKAGE-$VERSION
39 fi
40 cd $src
41 # disable unwanted features, remote control, streaming, networking, unwanted codecs,
42 # disable video outputs, audio outputs, some advanced options
43 ./configure \
44 --prefix=/usr \
45 --confdir=/etc/mplayer \
46 --libdir=/usr/lib/mplayer \
47 --enable-gui --enable-freetype \
48 --language="en de es fr" \
49 --target=i386-linux \
50 --disable-largefiles --disable-dvdnav --disable-pvr --disable-enca --disable-fribidi --disable-maemo \
51 --disable-lirc --disable-lircc \
52 --disable-nemesi --disable-vstream \
53 --disable-smb --disable-network --disable-live \
54 --disable-speex --disable-mng --disable-liblzo --disable-faad --disable-faad-internal \
55 --disable-libdv --disable-faac --disable-faac-lavc --disable-ladspa --disable-libbs2b \
56 --disable-libdca --disable-musepack \
57 --disable-gl --disable-vdpau --disable-directfb --disable-sdl --disable-mga \
58 --disable-jack --disable-pulse --disable-ossaudio --disable-openal --disable-nas --disable-esd \
59 --disable-mmx --disable-mmxext --disable-3dnow --disable-3dnowext \
60 --disable-sse --disable-sse2 --disable-ssse3 --disable-fastmemcpy &&
61 make -j 4 &&
62 make DESTDIR=$PWD/_pkg install
63 }
65 # Rules to gen a SliTaz package suitable for Tazpkg.
66 genpkg_rules()
67 {
68 mkdir -p $fs/usr/share
69 cp -a $_pkg/usr/bin $fs/usr
70 # Mencoder goes in a splited package.
71 rm $fs/usr/bin/mencoder
72 cp -a $_pkg/usr/share/mplayer $fs/usr/share
73 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
74 cp -a $_pkg/etc $fs
75 cp $src/etc/example.conf $fs/etc/mplayer
76 # Config to use Xv by default.
77 cp stuff/mplayer.conf $fs/etc/mplayer
78 # default skin
79 tar xjf stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
80 cd $fs/usr/share/mplayer/skins && ln -s productive default
81 # Font
82 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
83 }