wok-stable annotate mplayer-svn/receipt @ rev 3740
add fox1.4
author | Allan Pinto <allan316@gmail.com> |
---|---|
date | Thu Jul 23 19:03:35 2009 +0000 (2009-07-23) |
parents | 089faf1045bc |
children | cb468df31fdb |
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" |
pascal@2924 | 8 DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora ffmpeg lame" |
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@3337 | 29 |
jozee@3337 | 30 while read file; do |
jozee@3337 | 31 [ -f done.$file ] && continue |
jozee@3337 | 32 echo "Apply $file..." |
jozee@3337 | 33 cp ../../stuff/$PACKAGE-$VERSION-$file . |
jozee@3337 | 34 patch -p0 < $PACKAGE-$VERSION-$file || return 1 |
jozee@3337 | 35 touch done.$file |
jozee@3337 | 36 done <<EOT |
jozee@3337 | 37 liba52-gcc44.u |
jozee@3337 | 38 EOT |
jozee@3337 | 39 #patch -Np0 < $PACKAGE-$VERSION-liba52_gcc44.u || return 1 |
jozee@3337 | 40 |
jozee@2909 | 41 ./configure \ |
jozee@2909 | 42 --prefix=/usr \ |
jozee@2909 | 43 --confdir=/etc/mplayer \ |
jozee@2909 | 44 --libdir=/usr/lib/mplayer \ |
jozee@2909 | 45 --disable-largefiles \ |
jozee@2909 | 46 --disable-mmx --disable-mmxext \ |
jozee@2909 | 47 --disable-3dnow --disable-3dnowext \ |
jozee@2909 | 48 --disable-sse --disable-sse2 --disable-ssse3 \ |
jozee@2909 | 49 --disable-fastmemcpy \ |
jozee@2909 | 50 --language="en de es fr" \ |
jozee@2909 | 51 --disable-gl \ |
jozee@2909 | 52 --disable-sdl \ |
jozee@2909 | 53 --disable-jack \ |
jozee@2909 | 54 --disable-liblzo \ |
jozee@2909 | 55 --disable-libdv \ |
jozee@2909 | 56 --disable-libavcodec_a \ |
jozee@2909 | 57 --disable-libavformat_a \ |
jozee@2909 | 58 --disable-libpostproc_a \ |
jozee@2909 | 59 --disable-libswscale_a \ |
jozee@2909 | 60 --disable-fribidi --target=i386-linux --disable-libavutil_a \ |
jozee@2909 | 61 --disable-tv --disable-tv-teletext --disable-radio-v4l2 --disable-v4l2 \ |
jozee@2909 | 62 --disable-musepack --disable-dvdnav --disable-esd --disable-mga \ |
jozee@3337 | 63 --disable-libamr_nb --disable-lirc --disable-nas --disable-vdpau \ |
jozee@3337 | 64 --enable-gui --enable-freetype && |
jozee@2909 | 65 make && |
jozee@2909 | 66 make DESTDIR=$PWD/../_pkg install |
jozee@2909 | 67 } |
jozee@2909 | 68 |
jozee@2909 | 69 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2909 | 70 genpkg_rules() |
jozee@2909 | 71 { |
jozee@2909 | 72 mkdir -p $fs/usr/share |
jozee@2909 | 73 cp -a $_pkg/usr/bin $fs/usr |
jozee@2909 | 74 # Mencoder goes in a splited package. |
jozee@2909 | 75 rm $fs/usr/bin/mencoder |
jozee@2909 | 76 cp -a $_pkg/usr/share/mplayer $fs/usr/share |
jozee@2909 | 77 cp -a $_pkg/etc $fs |
jozee@2909 | 78 cp $src/mplayer/etc/example.conf $fs/etc/mplayer |
jozee@2909 | 79 # Config to use Xv by default. |
jozee@2909 | 80 cp stuff/mplayer.conf $fs/etc/mplayer |
jozee@2909 | 81 # default skin |
jozee@2909 | 82 tar xjf stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins |
jozee@2909 | 83 cd $fs/usr/share/mplayer/skins && ln -s productive default |
jozee@2909 | 84 # Font |
jozee@2909 | 85 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf |
jozee@2909 | 86 } |
jozee@2909 | 87 |
jozee@3337 | 88 |
jozee@3337 | 89 |