wok-4.x view mplayer-svn/receipt @ rev 9003

Fixed openssh-pam.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Mar 03 11:28:21 2011 +0000 (2011-03-03)
parents 1d765f8acefe
children 0613677c02de
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 --prefix=/usr \
39 --confdir=/etc/mplayer \
40 --libdir=/usr/lib/mplayer \
41 --enable-gui --enable-freetype \
42 --language="en de es fr" \
43 --target=i386-linux \
44 --disable-largefiles --disable-dvdnav --disable-pvr --disable-enca --disable-fribidi --disable-maemo \
45 --disable-lirc --disable-lircc \
46 --disable-nemesi --disable-vstream \
47 --disable-smb --disable-live \
48 --disable-speex --disable-mng --disable-liblzo --disable-faad --disable-faad-internal \
49 --disable-libdv --disable-faac --disable-faac-lavc --disable-ladspa --disable-libbs2b \
50 --disable-libdca --disable-musepack \
51 --disable-gl --disable-vdpau --disable-directfb --disable-sdl --disable-mga \
52 --disable-jack --disable-pulse --disable-ossaudio --disable-openal --disable-nas --disable-esd \
53 --disable-mmx --disable-mmxext --disable-3dnow --disable-3dnowext \
54 --disable-sse --disable-sse2 --disable-ssse3 --disable-fastmemcpy &&
55 make -j 4 &&
56 make DESTDIR=$PWD/_pkg install
57 }
59 # Rules to gen a SliTaz package suitable for Tazpkg.
60 genpkg_rules()
61 {
62 mkdir -p $fs/usr/share
63 cp -a $_pkg/usr/bin $fs/usr
64 # Mencoder goes in a splited package.
65 rm $fs/usr/bin/mencoder
66 cp -a $_pkg/usr/share/mplayer $fs/usr/share
67 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
68 cp -a $_pkg/etc $fs
69 cp $src/etc/example.conf $fs/etc/mplayer
70 # Config to use Xv by default.
71 cp stuff/mplayer.conf $fs/etc/mplayer
72 # default skin
73 tar xjf stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
74 cd $fs/usr/share/mplayer/skins && ln -s productive default
75 # Font
76 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
77 }