wok-4.x annotate 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 |
rev | line source |
---|---|
jozee@2909 | 1 # SliTaz package receipt. |
jozee@2909 | 2 |
jozee@2909 | 3 PACKAGE="mplayer-svn" |
jozee@2909 | 4 VERSION="29268" |
jozee@2909 | 5 CATEGORY="multimedia" |
jozee@2909 | 6 SHORT_DESC="Mplayer SVN version" |
jozee@2909 | 7 MAINTAINER="pankso@slitaz.org" |
jozee@2909 | 8 DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora ffmpeg" |
jozee@2909 | 9 BUILD_DEPENDS="gtk+-dev cdparanoia-III-dev libmad-dev xorg-libXv-dev |
jozee@2909 | 10 libtheora-dev ffmpeg-dev subversion" |
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. |
jozee@2909 | 16 # This package is compiled against shared ffmpeg. Compiling with shared ffmpeg on svn version is always challenging. |
jozee@2909 | 17 # Tip: Try to use the same day ffmpeg and mplayer versions (use: svn info), very likely to succeed |
jozee@2909 | 18 # To compile with in-built ffmpeg (and double the size of pkg), remove from compile options: |
jozee@2909 | 19 # --disable-libavcodec_a --disable-libavformat_a --disable-libpostproc_a --disable-libswscale_a |
jozee@2909 | 20 |
jozee@2909 | 21 compile_rules() |
jozee@2909 | 22 { |
jozee@2909 | 23 |
jozee@2909 | 24 mkdir $src 2> /dev/null |
jozee@2909 | 25 cd $src |
jozee@2909 | 26 [ -f mplayer/configure ] || svn checkout -r $VERSION \ |
jozee@2909 | 27 svn://svn.mplayerhq.hu/mplayer/trunk mplayer |
jozee@2909 | 28 cd mplayer |
jozee@2909 | 29 ./configure \ |
jozee@2909 | 30 --prefix=/usr \ |
jozee@2909 | 31 --confdir=/etc/mplayer \ |
jozee@2909 | 32 --libdir=/usr/lib/mplayer \ |
jozee@2909 | 33 --disable-largefiles \ |
jozee@2909 | 34 --disable-mmx --disable-mmxext \ |
jozee@2909 | 35 --disable-3dnow --disable-3dnowext \ |
jozee@2909 | 36 --disable-sse --disable-sse2 --disable-ssse3 \ |
jozee@2909 | 37 --disable-fastmemcpy \ |
jozee@2909 | 38 --language="en de es fr" \ |
jozee@2909 | 39 --disable-gl \ |
jozee@2909 | 40 --disable-sdl \ |
jozee@2909 | 41 --disable-jack \ |
jozee@2909 | 42 --disable-liblzo \ |
jozee@2909 | 43 --disable-libdv \ |
jozee@2909 | 44 --disable-libavcodec_a \ |
jozee@2909 | 45 --disable-libavformat_a \ |
jozee@2909 | 46 --disable-libpostproc_a \ |
jozee@2909 | 47 --disable-libswscale_a \ |
jozee@2909 | 48 --disable-fribidi --target=i386-linux --disable-libavutil_a \ |
jozee@2909 | 49 --disable-tv --disable-tv-teletext --disable-radio-v4l2 --disable-v4l2 \ |
jozee@2909 | 50 --disable-musepack --disable-dvdnav --disable-esd --disable-mga \ |
jozee@2909 | 51 --disable-libamr_nb --disable-lirc --disable-nas --enable-gui && |
jozee@2909 | 52 make && |
jozee@2909 | 53 make DESTDIR=$PWD/../_pkg install |
jozee@2909 | 54 } |
jozee@2909 | 55 |
jozee@2909 | 56 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2909 | 57 genpkg_rules() |
jozee@2909 | 58 { |
jozee@2909 | 59 mkdir -p $fs/usr/share |
jozee@2909 | 60 cp -a $_pkg/usr/bin $fs/usr |
jozee@2909 | 61 # Mencoder goes in a splited package. |
jozee@2909 | 62 rm $fs/usr/bin/mencoder |
jozee@2909 | 63 cp -a $_pkg/usr/share/mplayer $fs/usr/share |
jozee@2909 | 64 cp -a $_pkg/etc $fs |
jozee@2909 | 65 cp $src/mplayer/etc/example.conf $fs/etc/mplayer |
jozee@2909 | 66 # Config to use Xv by default. |
jozee@2909 | 67 cp stuff/mplayer.conf $fs/etc/mplayer |
jozee@2909 | 68 # default skin |
jozee@2909 | 69 tar xjf stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins |
jozee@2909 | 70 cd $fs/usr/share/mplayer/skins && ln -s productive default |
jozee@2909 | 71 # Font |
jozee@2909 | 72 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf |
jozee@2909 | 73 } |
jozee@2909 | 74 |