wok view mplayer-svn/receipt @ rev 8371
Fixed at.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Feb 03 23:41:49 2011 +0000 (2011-02-03) |
parents | 3b92799d0648 |
children | 1d765f8acefe |
line source
1 # SliTaz package receipt.
3 PACKAGE="mplayer-svn"
4 VERSION="32666"
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 x264 libass"
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.lzma
31 if [ -f $TARBALL ]; then
32 unlzma -c $TARBALL | tar xf -
33 else
34 svn checkout -r $VERSION \
35 svn://svn.mplayerhq.hu/mplayer/trunk $PACKAGE-$VERSION &&
36 tar cf - $PACKAGE-$VERSION | lzma e $TARBALL -si
37 fi
38 cd $src
39 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
40 sed -i "s/uname -r/echo $KERNEL_VERSION-slitaz/" configure
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-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 }