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

Add: jclic (0.2.0.6)
author Claudinei Pereira <claudinei@slitaz.org>
date Thu Sep 10 00:16:28 2009 +0000 (2009-09-10)
parents 089faf1045bc
children cb468df31fdb
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
30 while read file; do
31 [ -f done.$file ] && continue
32 echo "Apply $file..."
33 cp ../../stuff/$PACKAGE-$VERSION-$file .
34 patch -p0 < $PACKAGE-$VERSION-$file || return 1
35 touch done.$file
36 done <<EOT
37 liba52-gcc44.u
38 EOT
39 #patch -Np0 < $PACKAGE-$VERSION-liba52_gcc44.u || return 1
41 ./configure \
42 --prefix=/usr \
43 --confdir=/etc/mplayer \
44 --libdir=/usr/lib/mplayer \
45 --disable-largefiles \
46 --disable-mmx --disable-mmxext \
47 --disable-3dnow --disable-3dnowext \
48 --disable-sse --disable-sse2 --disable-ssse3 \
49 --disable-fastmemcpy \
50 --language="en de es fr" \
51 --disable-gl \
52 --disable-sdl \
53 --disable-jack \
54 --disable-liblzo \
55 --disable-libdv \
56 --disable-libavcodec_a \
57 --disable-libavformat_a \
58 --disable-libpostproc_a \
59 --disable-libswscale_a \
60 --disable-fribidi --target=i386-linux --disable-libavutil_a \
61 --disable-tv --disable-tv-teletext --disable-radio-v4l2 --disable-v4l2 \
62 --disable-musepack --disable-dvdnav --disable-esd --disable-mga \
63 --disable-libamr_nb --disable-lirc --disable-nas --disable-vdpau \
64 --enable-gui --enable-freetype &&
65 make &&
66 make DESTDIR=$PWD/../_pkg install
67 }
69 # Rules to gen a SliTaz package suitable for Tazpkg.
70 genpkg_rules()
71 {
72 mkdir -p $fs/usr/share
73 cp -a $_pkg/usr/bin $fs/usr
74 # Mencoder goes in a splited package.
75 rm $fs/usr/bin/mencoder
76 cp -a $_pkg/usr/share/mplayer $fs/usr/share
77 cp -a $_pkg/etc $fs
78 cp $src/mplayer/etc/example.conf $fs/etc/mplayer
79 # Config to use Xv by default.
80 cp stuff/mplayer.conf $fs/etc/mplayer
81 # default skin
82 tar xjf stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
83 cd $fs/usr/share/mplayer/skins && ln -s productive default
84 # Font
85 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
86 }