wok-current annotate mplayer-svn/receipt @ rev 4501
Add gmpc, gmpc-dev (lightweight, powerful MPD client)
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Fri Nov 20 15:32:34 2009 +0000 (2009-11-20) |
parents | cb468df31fdb |
children | 5a5ab60831dd |
rev | line source |
---|---|
jozee@2909 | 1 # SliTaz package receipt. |
jozee@2909 | 2 |
jozee@2909 | 3 PACKAGE="mplayer-svn" |
jozee@4467 | 4 VERSION="29843" |
jozee@2909 | 5 CATEGORY="multimedia" |
jozee@2909 | 6 SHORT_DESC="Mplayer SVN version" |
jozee@2909 | 7 MAINTAINER="pankso@slitaz.org" |
jozee@4491 | 8 DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora ffmpeg lame libv4l" |
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@4467 | 19 # --disable-libavutil_a --disable-libavcodec_a --disable-libavformat_a --disable-libpostproc_a --disable-libswscale_a |
jozee@4491 | 20 # --disable-tv --disable-radio-v4l2 --disable-v4l2 |
jozee@2909 | 21 |
jozee@2909 | 22 compile_rules() |
jozee@2909 | 23 { |
jozee@2909 | 24 |
jozee@2909 | 25 mkdir $src 2> /dev/null |
jozee@2909 | 26 cd $src |
jozee@2909 | 27 [ -f mplayer/configure ] || svn checkout -r $VERSION \ |
jozee@2909 | 28 svn://svn.mplayerhq.hu/mplayer/trunk mplayer |
jozee@2909 | 29 cd mplayer |
jozee@3337 | 30 |
jozee@3337 | 31 while read file; do |
jozee@3337 | 32 [ -f done.$file ] && continue |
jozee@3337 | 33 echo "Apply $file..." |
jozee@3337 | 34 cp ../../stuff/$PACKAGE-$VERSION-$file . |
jozee@3337 | 35 patch -p0 < $PACKAGE-$VERSION-$file || return 1 |
jozee@3337 | 36 touch done.$file |
jozee@3337 | 37 done <<EOT |
jozee@3337 | 38 liba52-gcc44.u |
jozee@3337 | 39 EOT |
jozee@3337 | 40 #patch -Np0 < $PACKAGE-$VERSION-liba52_gcc44.u || return 1 |
jozee@3337 | 41 |
jozee@2909 | 42 ./configure \ |
jozee@2909 | 43 --prefix=/usr \ |
jozee@2909 | 44 --confdir=/etc/mplayer \ |
jozee@2909 | 45 --libdir=/usr/lib/mplayer \ |
jozee@2909 | 46 --disable-largefiles \ |
jozee@2909 | 47 --disable-mmx --disable-mmxext \ |
jozee@2909 | 48 --disable-3dnow --disable-3dnowext \ |
jozee@2909 | 49 --disable-sse --disable-sse2 --disable-ssse3 \ |
jozee@2909 | 50 --disable-fastmemcpy \ |
jozee@2909 | 51 --language="en de es fr" \ |
jozee@2909 | 52 --disable-gl \ |
jozee@2909 | 53 --disable-sdl \ |
jozee@2909 | 54 --disable-jack \ |
jozee@2909 | 55 --disable-liblzo \ |
jozee@2909 | 56 --disable-libdv \ |
jozee@4467 | 57 --disable-speex \ |
jozee@4467 | 58 --disable-openal \ |
jozee@4467 | 59 --disable-faad \ |
jozee@4467 | 60 --disable-libavcodec_mpegaudio_hp \ |
jozee@4467 | 61 --disable-fribidi --target=i386-linux \ |
jozee@4491 | 62 --disable-tv-teletext \ |
jozee@2909 | 63 --disable-musepack --disable-dvdnav --disable-esd --disable-mga \ |
jozee@4467 | 64 --disable-lirc --disable-lircc --disable-smb --disable-nemesi --disable-nas --disable-vdpau \ |
jozee@3337 | 65 --enable-gui --enable-freetype && |
jozee@2909 | 66 make && |
jozee@2909 | 67 make DESTDIR=$PWD/../_pkg install |
jozee@2909 | 68 } |
jozee@2909 | 69 |
jozee@2909 | 70 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2909 | 71 genpkg_rules() |
jozee@2909 | 72 { |
jozee@2909 | 73 mkdir -p $fs/usr/share |
jozee@2909 | 74 cp -a $_pkg/usr/bin $fs/usr |
jozee@2909 | 75 # Mencoder goes in a splited package. |
jozee@2909 | 76 rm $fs/usr/bin/mencoder |
jozee@2909 | 77 cp -a $_pkg/usr/share/mplayer $fs/usr/share |
jozee@2909 | 78 cp -a $_pkg/etc $fs |
jozee@2909 | 79 cp $src/mplayer/etc/example.conf $fs/etc/mplayer |
jozee@2909 | 80 # Config to use Xv by default. |
jozee@2909 | 81 cp stuff/mplayer.conf $fs/etc/mplayer |
jozee@2909 | 82 # default skin |
jozee@2909 | 83 tar xjf stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins |
jozee@2909 | 84 cd $fs/usr/share/mplayer/skins && ln -s productive default |
jozee@2909 | 85 # Font |
jozee@2909 | 86 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf |
jozee@2909 | 87 } |
jozee@2909 | 88 |
jozee@3337 | 89 |
jozee@3337 | 90 |