wok-current diff mplayer-svn/receipt @ rev 2909
Add: mplayern from svn; built with shared ffmpeg; small size
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Wed May 06 13:11:57 2009 +0000 (2009-05-06) |
parents | |
children | 089faf1045bc |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mplayer-svn/receipt Wed May 06 13:11:57 2009 +0000 1.3 @@ -0,0 +1,74 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="mplayer-svn" 1.7 +VERSION="29268" 1.8 +CATEGORY="multimedia" 1.9 +SHORT_DESC="Mplayer SVN version" 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora ffmpeg" 1.12 +BUILD_DEPENDS="gtk+-dev cdparanoia-III-dev libmad-dev xorg-libXv-dev 1.13 + libtheora-dev ffmpeg-dev subversion" 1.14 +WEB_SITE="http://www.mplayerhq.hu/design7/news.html" 1.15 +PROVIDES="mplayer" 1.16 +TAGS="player movie audio video" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +# This package is compiled against shared ffmpeg. Compiling with shared ffmpeg on svn version is always challenging. 1.20 +# Tip: Try to use the same day ffmpeg and mplayer versions (use: svn info), very likely to succeed 1.21 +# To compile with in-built ffmpeg (and double the size of pkg), remove from compile options: 1.22 +# --disable-libavcodec_a --disable-libavformat_a --disable-libpostproc_a --disable-libswscale_a 1.23 + 1.24 +compile_rules() 1.25 +{ 1.26 + 1.27 + mkdir $src 2> /dev/null 1.28 + cd $src 1.29 + [ -f mplayer/configure ] || svn checkout -r $VERSION \ 1.30 + svn://svn.mplayerhq.hu/mplayer/trunk mplayer 1.31 + cd mplayer 1.32 + ./configure \ 1.33 + --prefix=/usr \ 1.34 + --confdir=/etc/mplayer \ 1.35 + --libdir=/usr/lib/mplayer \ 1.36 + --disable-largefiles \ 1.37 + --disable-mmx --disable-mmxext \ 1.38 + --disable-3dnow --disable-3dnowext \ 1.39 + --disable-sse --disable-sse2 --disable-ssse3 \ 1.40 + --disable-fastmemcpy \ 1.41 + --language="en de es fr" \ 1.42 + --disable-gl \ 1.43 + --disable-sdl \ 1.44 + --disable-jack \ 1.45 + --disable-liblzo \ 1.46 + --disable-libdv \ 1.47 + --disable-libavcodec_a \ 1.48 + --disable-libavformat_a \ 1.49 + --disable-libpostproc_a \ 1.50 + --disable-libswscale_a \ 1.51 + --disable-fribidi --target=i386-linux --disable-libavutil_a \ 1.52 + --disable-tv --disable-tv-teletext --disable-radio-v4l2 --disable-v4l2 \ 1.53 + --disable-musepack --disable-dvdnav --disable-esd --disable-mga \ 1.54 + --disable-libamr_nb --disable-lirc --disable-nas --enable-gui && 1.55 + make && 1.56 + make DESTDIR=$PWD/../_pkg install 1.57 +} 1.58 + 1.59 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.60 +genpkg_rules() 1.61 +{ 1.62 + mkdir -p $fs/usr/share 1.63 + cp -a $_pkg/usr/bin $fs/usr 1.64 + # Mencoder goes in a splited package. 1.65 + rm $fs/usr/bin/mencoder 1.66 + cp -a $_pkg/usr/share/mplayer $fs/usr/share 1.67 + cp -a $_pkg/etc $fs 1.68 + cp $src/mplayer/etc/example.conf $fs/etc/mplayer 1.69 + # Config to use Xv by default. 1.70 + cp stuff/mplayer.conf $fs/etc/mplayer 1.71 + # default skin 1.72 + tar xjf stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins 1.73 + cd $fs/usr/share/mplayer/skins && ln -s productive default 1.74 + # Font 1.75 + cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf 1.76 +} 1.77 +