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