wok-current view mplayer-svn/receipt @ rev 10411
libksba: fix bdeps
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 24 13:07:06 2011 +0200 (2011-05-24) |
parents | ad786a87b22e |
children | a8d8d895ebe7 |
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 yasm"
12 SUGGESTED=""
13 WEB_SITE="http://www.mplayerhq.hu/design7/news.html"
14 PROVIDES="mplayer"
15 TAGS="player movie audio video"
16 WGET_URL="subversion|svn://svn.mplayerhq.hu/mplayer/trunk"
17 BRANCH="$VERSION"
19 # Rules to configure and make the package.
20 #
21 # This package is compiled against shared ffmpeg. Compiling with shared ffmpeg
22 # on svn version is always challenging. Tip: Try to use the same day ffmpeg and
23 # mplayer versions (use: svn info), very likely to succeed.
24 #
25 # To compile with in-built ffmpeg (and double the size of pkg), remove from
26 # compile options:
27 # --disable-libavutil_a --disable-libavcodec_a --disable-libavformat_a
28 # --disable-libpostproc_a --disable-libswscale_a --disable-libavcodec_mpegaudio_hp
30 compile_rules()
31 {
32 cd $src
33 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
34 sed -i "s/uname -r/echo $KERNEL_VERSION-slitaz/" configure
35 # disable unwanted features, remote control, streaming, networking, unwanted codecs,
36 # disable video outputs, audio outputs, some advanced options
37 ./configure \
38 --extra-cflags=-DHAVE_MMAP \
39 --prefix=/usr \
40 --confdir=/etc/mplayer \
41 --libdir=/usr/lib/mplayer \
42 --enable-gui --enable-freetype \
43 --language="en de es fr" \
44 --target=i386-linux \
45 --disable-largefiles --disable-dvdnav --disable-pvr --disable-enca --disable-fribidi --disable-maemo \
46 --disable-lirc --disable-lircc \
47 --disable-nemesi --disable-vstream \
48 --disable-smb --disable-live \
49 --disable-speex --disable-mng --disable-liblzo --disable-faad --disable-faad-internal \
50 --disable-libdv --disable-faac --disable-faac-lavc --disable-ladspa --disable-libbs2b \
51 --disable-libdca --disable-musepack \
52 --disable-gl --disable-vdpau --disable-directfb --disable-sdl --disable-mga \
53 --disable-jack --disable-pulse --disable-ossaudio --disable-openal --disable-nas --disable-esd \
54 --disable-mmx --disable-mmxext --disable-3dnow --disable-3dnowext \
55 --disable-sse --disable-sse2 --disable-ssse3 --disable-fastmemcpy &&
56 make -j 4 &&
57 make DESTDIR=$PWD/_pkg install
58 }
60 # Rules to gen a SliTaz package suitable for Tazpkg.
61 genpkg_rules()
62 {
63 mkdir -p $fs/usr/share
64 cp -a $_pkg/usr/bin $fs/usr
65 # Mencoder goes in a splited package.
66 rm $fs/usr/bin/mencoder
67 cp -a $_pkg/usr/share/mplayer $fs/usr/share
68 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
69 cp -a $_pkg/etc $fs
70 cp $src/etc/example.conf $fs/etc/mplayer
71 # Config to use Xv by default.
72 cp stuff/mplayer.conf $fs/etc/mplayer
73 # default skin
74 tar xjf stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
75 cd $fs/usr/share/mplayer/skins && ln -s productive default
76 # Font
77 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
78 }