wok rev 4521

Up: mplayer-svn (rev: 29969)
author Christophe Lincoln <pankso@slitaz.org>
date Fri Nov 27 17:19:06 2009 +0100 (2009-11-27)
parents 3eb5f48c496d
children 77ea7562e982
files mplayer-svn/receipt
line diff
     1.1 --- a/mplayer-svn/receipt	Fri Nov 27 17:13:04 2009 +0100
     1.2 +++ b/mplayer-svn/receipt	Fri Nov 27 17:19:06 2009 +0100
     1.3 @@ -1,44 +1,34 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="mplayer-svn"
     1.7 -VERSION="29843"
     1.8 +VERSION="29969"
     1.9  CATEGORY="multimedia"
    1.10  SHORT_DESC="Mplayer SVN version"
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12  DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora ffmpeg lame libv4l"
    1.13  BUILD_DEPENDS="gtk+-dev cdparanoia-III-dev libmad-dev xorg-libXv-dev
    1.14 -	libtheora-dev ffmpeg-dev subversion"
    1.15 +libtheora-dev ffmpeg-dev subversion"
    1.16  WEB_SITE="http://www.mplayerhq.hu/design7/news.html"
    1.17  PROVIDES="mplayer"
    1.18  TAGS="player movie audio video"
    1.19  
    1.20  # Rules to configure and make the package.
    1.21 -# This package is compiled against shared ffmpeg. Compiling with shared ffmpeg on svn version is always challenging.
    1.22 -# Tip: Try to use the same day ffmpeg and mplayer versions (use: svn info), very likely to succeed
    1.23 -# To compile with in-built ffmpeg (and double the size of pkg), remove from compile options:
    1.24 -#  --disable-libavutil_a --disable-libavcodec_a --disable-libavformat_a --disable-libpostproc_a --disable-libswscale_a 
    1.25 -# --disable-tv --disable-radio-v4l2 --disable-v4l2
    1.26 +#
    1.27 +# This package is compiled against shared ffmpeg. Compiling with shared ffmpeg
    1.28 +# on svn version is always challenging. Tip: Try to use the same day ffmpeg and
    1.29 +# mplayer versions (use: svn info), very likely to succeed.
    1.30 +#
    1.31 +# To compile with in-built ffmpeg (and double the size of pkg), remove from
    1.32 +# compile options:
    1.33 +#	--disable-libavutil_a --disable-libavcodec_a --disable-libavformat_a
    1.34 +#	--disable-libpostproc_a --disable-libswscale_a
    1.35 +# 	--disable-tv --disable-radio-v4l2 --disable-v4l2
    1.36  
    1.37  compile_rules()
    1.38  {
    1.39 -	
    1.40 -   mkdir $src 2> /dev/null
    1.41 +	[ -d $PACKAGE-$VERSION ] || svn checkout -r $VERSION \
    1.42 +		svn://svn.mplayerhq.hu/mplayer/trunk $PACKAGE-$VERSION
    1.43  	cd $src
    1.44 -	[ -f mplayer/configure ] || svn checkout -r $VERSION \
    1.45 -		svn://svn.mplayerhq.hu/mplayer/trunk mplayer 
    1.46 -	cd mplayer
    1.47 -	
    1.48 -	   while read file; do
    1.49 -    	[ -f done.$file ] && continue
    1.50 -    	echo "Apply $file..."
    1.51 -		cp ../../stuff/$PACKAGE-$VERSION-$file .
    1.52 -    	patch -p0 < $PACKAGE-$VERSION-$file || return 1
    1.53 -	touch done.$file
    1.54 -    done <<EOT
    1.55 -liba52-gcc44.u
    1.56 -EOT
    1.57 -	#patch -Np0 < $PACKAGE-$VERSION-liba52_gcc44.u || return 1 
    1.58 -	
    1.59  	./configure \
    1.60  		--prefix=/usr \
    1.61  		--confdir=/etc/mplayer \
    1.62 @@ -58,13 +48,16 @@
    1.63  		--disable-openal \
    1.64  		--disable-faad \
    1.65  		--disable-libavcodec_mpegaudio_hp \
    1.66 -		--disable-fribidi --target=i386-linux  \
    1.67 -		--disable-tv-teletext \
    1.68 -		--disable-musepack --disable-dvdnav --disable-esd --disable-mga \
    1.69 -		--disable-lirc --disable-lircc --disable-smb --disable-nemesi --disable-nas --disable-vdpau \
    1.70 +		--disable-fribidi \
    1.71 +		--target=i386-linux \
    1.72 +		--disable-dvdnav \
    1.73 +		--disable-esd --disable-mga \
    1.74 +		--disable-lirc --disable-lircc \
    1.75 +		--disable-smb --disable-nemesi \
    1.76 +		--disable-nas --disable-vdpau \
    1.77  		--enable-gui --enable-freetype &&
    1.78  	make &&
    1.79 -	make DESTDIR=$PWD/../_pkg install
    1.80 +	make DESTDIR=$PWD/_pkg install
    1.81  }
    1.82  
    1.83  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.84 @@ -76,7 +69,7 @@
    1.85  	rm $fs/usr/bin/mencoder
    1.86  	cp -a $_pkg/usr/share/mplayer $fs/usr/share
    1.87  	cp -a $_pkg/etc $fs
    1.88 -	cp $src/mplayer/etc/example.conf $fs/etc/mplayer
    1.89 +	cp $src/etc/example.conf $fs/etc/mplayer
    1.90  	# Config to use Xv by default.
    1.91  	cp stuff/mplayer.conf $fs/etc/mplayer
    1.92  	# default skin
    1.93 @@ -85,6 +78,3 @@
    1.94  	# Font
    1.95  	cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
    1.96  }
    1.97 -
    1.98 -
    1.99 -