wok-next annotate mplayer-svn/receipt @ rev 4910

xarchive: update suggested
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 13 11:40:45 2010 +0100 (2010-02-13)
parents 3054d8440c5c
children b6c3e05d0802
rev   line source
jozee@2909 1 # SliTaz package receipt.
jozee@2909 2
jozee@2909 3 PACKAGE="mplayer-svn"
pankso@4521 4 VERSION="29969"
jozee@2909 5 CATEGORY="multimedia"
jozee@2909 6 SHORT_DESC="Mplayer SVN version"
jozee@2909 7 MAINTAINER="pankso@slitaz.org"
jozee@4543 8 DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora lame libv4l giflib xorg-libXss xorg-libXxf86vm"
jozee@4543 9 BUILD_DEPENDS="gtk+-dev cdparanoia-III-dev libmad-dev xorg-libXv-dev libtheora-dev ffmpeg-dev subversion"
jozee@4543 10 SUGGESTED="enca faac"
jozee@2909 11 WEB_SITE="http://www.mplayerhq.hu/design7/news.html"
jozee@2909 12 PROVIDES="mplayer"
jozee@2909 13 TAGS="player movie audio video"
jozee@2909 14
jozee@2909 15 # Rules to configure and make the package.
pankso@4521 16 #
pankso@4521 17 # This package is compiled against shared ffmpeg. Compiling with shared ffmpeg
pankso@4521 18 # on svn version is always challenging. Tip: Try to use the same day ffmpeg and
pankso@4521 19 # mplayer versions (use: svn info), very likely to succeed.
pankso@4521 20 #
pankso@4521 21 # To compile with in-built ffmpeg (and double the size of pkg), remove from
pankso@4521 22 # compile options:
pankso@4521 23 # --disable-libavutil_a --disable-libavcodec_a --disable-libavformat_a
pankso@4521 24 # --disable-libpostproc_a --disable-libswscale_a
pankso@4521 25 # --disable-tv --disable-radio-v4l2 --disable-v4l2
jozee@2909 26
jozee@2909 27 compile_rules()
jozee@2909 28 {
pankso@4521 29 [ -d $PACKAGE-$VERSION ] || svn checkout -r $VERSION \
pankso@4521 30 svn://svn.mplayerhq.hu/mplayer/trunk $PACKAGE-$VERSION
jozee@2909 31 cd $src
jozee@2909 32 ./configure \
jozee@2909 33 --prefix=/usr \
jozee@2909 34 --confdir=/etc/mplayer \
jozee@2909 35 --libdir=/usr/lib/mplayer \
jozee@2909 36 --disable-largefiles \
jozee@2909 37 --disable-mmx --disable-mmxext \
jozee@2909 38 --disable-3dnow --disable-3dnowext \
jozee@2909 39 --disable-sse --disable-sse2 --disable-ssse3 \
jozee@2909 40 --disable-fastmemcpy \
jozee@2909 41 --language="en de es fr" \
jozee@2909 42 --disable-gl \
jozee@2909 43 --disable-sdl \
jozee@2909 44 --disable-jack \
jozee@2909 45 --disable-liblzo \
jozee@2909 46 --disable-libdv \
jozee@4467 47 --disable-speex \
jozee@4467 48 --disable-openal \
jozee@4467 49 --disable-faad \
jozee@4467 50 --disable-libavcodec_mpegaudio_hp \
pankso@4521 51 --disable-fribidi \
pankso@4521 52 --target=i386-linux \
pankso@4521 53 --disable-dvdnav \
pankso@4521 54 --disable-esd --disable-mga \
pankso@4521 55 --disable-lirc --disable-lircc \
pankso@4521 56 --disable-smb --disable-nemesi \
pankso@4521 57 --disable-nas --disable-vdpau \
jozee@3337 58 --enable-gui --enable-freetype &&
jozee@2909 59 make &&
pankso@4521 60 make DESTDIR=$PWD/_pkg install
jozee@2909 61 }
jozee@2909 62
jozee@2909 63 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2909 64 genpkg_rules()
jozee@2909 65 {
jozee@2909 66 mkdir -p $fs/usr/share
jozee@2909 67 cp -a $_pkg/usr/bin $fs/usr
jozee@2909 68 # Mencoder goes in a splited package.
jozee@2909 69 rm $fs/usr/bin/mencoder
jozee@2909 70 cp -a $_pkg/usr/share/mplayer $fs/usr/share
jozee@2909 71 cp -a $_pkg/etc $fs
pankso@4521 72 cp $src/etc/example.conf $fs/etc/mplayer
jozee@2909 73 # Config to use Xv by default.
jozee@2909 74 cp stuff/mplayer.conf $fs/etc/mplayer
jozee@2909 75 # default skin
jozee@2909 76 tar xjf stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
jozee@2909 77 cd $fs/usr/share/mplayer/skins && ln -s productive default
jozee@2909 78 # Font
jozee@2909 79 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
jozee@2909 80 }