wok-next rev 16123

Mplayer up to (1.1.1) and add to ARM arch with esound support
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 23 22:37:08 2014 +0100 (2014-03-23)
parents 424066c71c13
children d0e0683c923e
files esound-dev/receipt esound/receipt mencoder/receipt mplayer-codecs/receipt mplayer/receipt mplayer/stuff/mplayer-arm.conf
line diff
     1.1 --- a/esound-dev/receipt	Sun Mar 23 22:14:30 2014 +0100
     1.2 +++ b/esound-dev/receipt	Sun Mar 23 22:37:08 2014 +0100
     1.3 @@ -7,6 +7,7 @@
     1.4  MAINTAINER="allan316@gmail.com"
     1.5  LICENSE="GPL2"
     1.6  WEB_SITE="http://www.tux.org/~ricdude/EsounD.html"
     1.7 +HOST_ARCH="i486 arm"
     1.8  
     1.9  WANTED="esound"
    1.10  DEPENDS="esound pkg-config"
     2.1 --- a/esound/receipt	Sun Mar 23 22:14:30 2014 +0100
     2.2 +++ b/esound/receipt	Sun Mar 23 22:37:08 2014 +0100
     2.3 @@ -10,6 +10,7 @@
     2.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     2.5  WGET_URL="http://ftp.acc.umu.se/pub/GNOME/sources/esound/0.2/$TARBALL"
     2.6  TAGS="audio sound"
     2.7 +HOST_ARCH="i486 arm"
     2.8  
     2.9  DEPENDS="audiofile alsa-lib"
    2.10  BUILD_DEPENDS="audiofile-dev alsa-lib-dev"
     3.1 --- a/mencoder/receipt	Sun Mar 23 22:14:30 2014 +0100
     3.2 +++ b/mencoder/receipt	Sun Mar 23 22:37:08 2014 +0100
     3.3 @@ -1,7 +1,7 @@
     3.4  # SliTaz package receipt.
     3.5  
     3.6  PACKAGE="mencoder"
     3.7 -VERSION="1.1"
     3.8 +VERSION="1.1.1"
     3.9  CATEGORY="multimedia"
    3.10  SHORT_DESC="MPlayer video and movie encoder."
    3.11  MAINTAINER="pankso@slitaz.org"
    3.12 @@ -13,6 +13,12 @@
    3.13  fontconfig freetype x264 xvidcore jpeg libmad ncurses zlib lame \
    3.14  libpng giflib enca lirc"
    3.15  
    3.16 +# Handle arch package install
    3.17 +case "$SLITAZ_ARCH" in
    3.18 +	arm*) DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm libogg \
    3.19 +libvorbis libtheora xvidcore lame esound" ;;
    3.20 +esac
    3.21 +
    3.22  # Rules to gen a SliTaz package suitable for Tazpkg.
    3.23  genpkg_rules()
    3.24  {
     4.1 --- a/mplayer-codecs/receipt	Sun Mar 23 22:14:30 2014 +0100
     4.2 +++ b/mplayer-codecs/receipt	Sun Mar 23 22:37:08 2014 +0100
     4.3 @@ -1,14 +1,15 @@
     4.4  # SliTaz package receipt.
     4.5  
     4.6  PACKAGE="mplayer-codecs"
     4.7 -VERSION="1.1"
     4.8 +VERSION="20110131"
     4.9  CATEGORY="multimedia"
    4.10  SHORT_DESC="All MPlayer codecs for SliTaz."
    4.11  MAINTAINER="pankso@slitaz.org"
    4.12  LICENSE="GPL2"
    4.13  WEB_SITE="http://www.mplayerhq.hu/design7/news.html"
    4.14  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    4.15 -WGET_URL="http://www1.mplayerhq.hu/MPlayer/releases/codecs/all-20110131.tar.bz2"
    4.16 +WGET_URL="http://www1.mplayerhq.hu/MPlayer/releases/codecs/all-$VERSION.tar.bz2"
    4.17 +HOST_ARCH="i486 arm"
    4.18  
    4.19  DEPENDS="mplayer"
    4.20  
     5.1 --- a/mplayer/receipt	Sun Mar 23 22:14:30 2014 +0100
     5.2 +++ b/mplayer/receipt	Sun Mar 23 22:37:08 2014 +0100
     5.3 @@ -1,7 +1,7 @@
     5.4  # SliTaz package receipt.
     5.5  
     5.6  PACKAGE="mplayer"
     5.7 -VERSION="1.1"
     5.8 +VERSION="1.1.1"
     5.9  CATEGORY="multimedia"
    5.10  SHORT_DESC="The Ultimate Movie Player For Linux."
    5.11  MAINTAINER="pankso@slitaz.org"
    5.12 @@ -10,7 +10,9 @@
    5.13  TARBALL="$SOURCE-$VERSION.tar.xz"
    5.14  WEB_SITE="http://www.mplayerhq.hu/design7/news.html"
    5.15  WGET_URL="http://www1.mplayerhq.hu/MPlayer/releases/$TARBALL"
    5.16 +HOST_ARCH="i486 arm"
    5.17  
    5.18 +RELATED="mplayer-codecs mencoder" # Dont forget to update them
    5.19  DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora alsa-lib ncurses \
    5.20  lame xorg-libXdamage giflib enca lirc xorg-libXxf86vm esound libmng audiofile \
    5.21  libvorbis libogg xvidcore x264 zlib xorg-libXss"
    5.22 @@ -20,15 +22,30 @@
    5.23  audiofile-dev x264-dev libogg-dev libvorbis-dev xvidcore-dev zlib-dev \
    5.24  xorg-xextproto pkg-config yasm"
    5.25  
    5.26 +# Handle arch package install. Less deps and no GTK gui for ARM
    5.27 +case "$SLITAZ_ARCH" in
    5.28 +	arm*) DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm libogg \
    5.29 +libvorbis libtheora libsdl xvidcore lame esound" ;;
    5.30 +esac
    5.31 +
    5.32 +# Handle cross compilation. Host coreutils-file-* are used
    5.33 +case "$ARCH" in
    5.34 +	i?86) 
    5.35 +		ARCH_ARGS="--target=i386-linux --enable-gui --disable-sdl" ;;
    5.36 +	arm*) 
    5.37 +		BUILD_DEPENDS="alsa-lib-dev zlib-dev libmad-dev xorg-libXv-dev \
    5.38 +xorg-libXxf86vm-dev libogg-dev libvorbis-dev libsdl-dev xvidcore-dev lame-dev \
    5.39 +libtheora-dev esound-dev" 
    5.40 +		ARCH_ARGS="--target=arm-linux --enable-cross-compile --enable-sdl" ;;
    5.41 +esac
    5.42 +
    5.43  # Rules to configure and make the package.
    5.44  compile_rules()
    5.45  {
    5.46 -	cd $src
    5.47  	./configure \
    5.48  		--prefix=/usr \
    5.49  		--confdir=/etc/mplayer \
    5.50  		--libdir=/usr/lib/mplayer \
    5.51 -		--target=i386-linux \
    5.52  		--language="en de es fr it ru" \
    5.53  		--disable-mmx \
    5.54  		--disable-mmxext \
    5.55 @@ -39,7 +56,6 @@
    5.56  		--disable-ssse3 \
    5.57  		--disable-fastmemcpy \
    5.58  		--disable-gl \
    5.59 -		--disable-sdl \
    5.60  		--disable-jack \
    5.61  		--disable-liblzo \
    5.62  		--disable-libdv \
    5.63 @@ -50,19 +66,20 @@
    5.64  		--disable-openal \
    5.65  		--disable-faac \
    5.66  		--disable-speex \
    5.67 -		--enable-gui &&
    5.68 +		${ARCH_ARGS} &&
    5.69  	make $MAKEFLAGS &&
    5.70 -	make DESTDIR=$DESTDIR install
    5.71 +	make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
    5.72  }
    5.73  
    5.74  # Rules to gen a SliTaz package suitable for Tazpkg.
    5.75  genpkg_rules()
    5.76  {
    5.77 -	mkdir -p $fs/usr/share
    5.78 +	mkdir -p $fs/usr/share/mplayer/skins
    5.79  	cp -a $install/usr/bin $fs/usr
    5.80  	# Mencoder goes in a splited package.
    5.81  	rm $fs/usr/bin/mencoder
    5.82 -	cp -a $install/usr/share/mplayer $fs/usr/share
    5.83 +	[ -d "$install/usr/share/mplayer" ] && \
    5.84 +		cp -a $install/usr/share/mplayer $fs/usr/share
    5.85  	cp -a $install/etc $fs
    5.86  	cp $src/etc/example.conf $fs/etc/mplayer
    5.87  	# Config to use Xv by default.
    5.88 @@ -72,4 +89,8 @@
    5.89  	cd $fs/usr/share/mplayer/skins && ln -s productive default
    5.90  	# Font
    5.91  	cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
    5.92 +	# Xv support dont work for ARM
    5.93 +	case "$ARCH" in
    5.94 +		arm*) cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf ;;
    5.95 +	esac
    5.96  }
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/mplayer/stuff/mplayer-arm.conf	Sun Mar 23 22:37:08 2014 +0100
     6.3 @@ -0,0 +1,10 @@
     6.4 +# /etc/mplayer/mplayer.conf: MPlayer default configuration for SliTaz.
     6.5 +# For more info and examples, please see: /etc/mplayer/example.conf
     6.6 +#
     6.7 +
     6.8 +# Specify default video driver (see -vo help for a list).
     6.9 +vo=x11
    6.10 +
    6.11 +# Specify default audio driver (see -ao help for a list).
    6.12 +ao=alsa
    6.13 +