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