wok view mplayer-svn/receipt @ rev 6479

Up: awesome to 3.4.7.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Sep 30 02:22:53 2010 +0000 (2010-09-30)
parents 8806a69fb967
children 1d279fc90686
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 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
42 sed -i "s/uname -r/echo $KERNEL_VERSION-slitaz/" configure
43 # disable unwanted features, remote control, streaming, networking, unwanted codecs,
44 # disable video outputs, audio outputs, some advanced options
45 ./configure \
46 --prefix=/usr \
47 --confdir=/etc/mplayer \
48 --libdir=/usr/lib/mplayer \
49 --enable-gui --enable-freetype \
50 --language="en de es fr" \
51 --target=i386-linux \
52 --disable-largefiles --disable-dvdnav --disable-pvr --disable-enca --disable-fribidi --disable-maemo \
53 --disable-lirc --disable-lircc \
54 --disable-nemesi --disable-vstream \
55 --disable-smb --disable-network --disable-live \
56 --disable-speex --disable-mng --disable-liblzo --disable-faad --disable-faad-internal \
57 --disable-libdv --disable-faac --disable-faac-lavc --disable-ladspa --disable-libbs2b \
58 --disable-libdca --disable-musepack \
59 --disable-gl --disable-vdpau --disable-directfb --disable-sdl --disable-mga \
60 --disable-jack --disable-pulse --disable-ossaudio --disable-openal --disable-nas --disable-esd \
61 --disable-mmx --disable-mmxext --disable-3dnow --disable-3dnowext \
62 --disable-sse --disable-sse2 --disable-ssse3 --disable-fastmemcpy &&
63 make -j 4 &&
64 make DESTDIR=$PWD/_pkg install
65 }
67 # Rules to gen a SliTaz package suitable for Tazpkg.
68 genpkg_rules()
69 {
70 mkdir -p $fs/usr/share
71 cp -a $_pkg/usr/bin $fs/usr
72 # Mencoder goes in a splited package.
73 rm $fs/usr/bin/mencoder
74 cp -a $_pkg/usr/share/mplayer $fs/usr/share
75 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
76 cp -a $_pkg/etc $fs
77 cp $src/etc/example.conf $fs/etc/mplayer
78 # Config to use Xv by default.
79 cp stuff/mplayer.conf $fs/etc/mplayer
80 # default skin
81 tar xjf stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
82 cd $fs/usr/share/mplayer/skins && ln -s productive default
83 # Font
84 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
85 }