wok-6.x view mplayer-svn/receipt @ rev 4515
Up:hplip; improve receipt
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Thu Nov 26 12:08:28 2009 +0000 (2009-11-26) |
parents | cb468df31fdb |
children | 5a5ab60831dd |
line source
1 # SliTaz package receipt.
3 PACKAGE="mplayer-svn"
4 VERSION="29843"
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 libv4l"
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-libavutil_a --disable-libavcodec_a --disable-libavformat_a --disable-libpostproc_a --disable-libswscale_a
20 # --disable-tv --disable-radio-v4l2 --disable-v4l2
22 compile_rules()
23 {
25 mkdir $src 2> /dev/null
26 cd $src
27 [ -f mplayer/configure ] || svn checkout -r $VERSION \
28 svn://svn.mplayerhq.hu/mplayer/trunk mplayer
29 cd mplayer
31 while read file; do
32 [ -f done.$file ] && continue
33 echo "Apply $file..."
34 cp ../../stuff/$PACKAGE-$VERSION-$file .
35 patch -p0 < $PACKAGE-$VERSION-$file || return 1
36 touch done.$file
37 done <<EOT
38 liba52-gcc44.u
39 EOT
40 #patch -Np0 < $PACKAGE-$VERSION-liba52_gcc44.u || return 1
42 ./configure \
43 --prefix=/usr \
44 --confdir=/etc/mplayer \
45 --libdir=/usr/lib/mplayer \
46 --disable-largefiles \
47 --disable-mmx --disable-mmxext \
48 --disable-3dnow --disable-3dnowext \
49 --disable-sse --disable-sse2 --disable-ssse3 \
50 --disable-fastmemcpy \
51 --language="en de es fr" \
52 --disable-gl \
53 --disable-sdl \
54 --disable-jack \
55 --disable-liblzo \
56 --disable-libdv \
57 --disable-speex \
58 --disable-openal \
59 --disable-faad \
60 --disable-libavcodec_mpegaudio_hp \
61 --disable-fribidi --target=i386-linux \
62 --disable-tv-teletext \
63 --disable-musepack --disable-dvdnav --disable-esd --disable-mga \
64 --disable-lirc --disable-lircc --disable-smb --disable-nemesi --disable-nas --disable-vdpau \
65 --enable-gui --enable-freetype &&
66 make &&
67 make DESTDIR=$PWD/../_pkg install
68 }
70 # Rules to gen a SliTaz package suitable for Tazpkg.
71 genpkg_rules()
72 {
73 mkdir -p $fs/usr/share
74 cp -a $_pkg/usr/bin $fs/usr
75 # Mencoder goes in a splited package.
76 rm $fs/usr/bin/mencoder
77 cp -a $_pkg/usr/share/mplayer $fs/usr/share
78 cp -a $_pkg/etc $fs
79 cp $src/mplayer/etc/example.conf $fs/etc/mplayer
80 # Config to use Xv by default.
81 cp stuff/mplayer.conf $fs/etc/mplayer
82 # default skin
83 tar xjf stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
84 cd $fs/usr/share/mplayer/skins && ln -s productive default
85 # Font
86 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
87 }