wok rev 16703

Add: mplayer-opt: the same as mplayer but with enabled CPU optimizations (MMX, MMX2, SSE, SSE2 and friends).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed May 28 11:27:38 2014 +0300 (2014-05-28)
parents f924b8021268
children 57fc46317c91
files mplayer-opt/receipt mplayer-opt/stuff/mplayer-arm.conf mplayer-opt/stuff/mplayer.conf mplayer-opt/stuff/mplayer.desktop mplayer-opt/stuff/productive-1.0.tar.bz2
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mplayer-opt/receipt	Wed May 28 11:27:38 2014 +0300
     1.3 @@ -0,0 +1,96 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="mplayer"
     1.7 +VERSION="1.1.1"
     1.8 +CATEGORY="multimedia"
     1.9 +SHORT_DESC="The Ultimate Movie Player For Linux (with CPU optimizations)"
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +LICENSE="GPL2"
    1.12 +SOURCE="MPlayer"
    1.13 +TARBALL="$SOURCE-$VERSION.tar.xz"
    1.14 +WEB_SITE="http://www.mplayerhq.hu/design7/news.html"
    1.15 +WGET_URL="http://www1.mplayerhq.hu/MPlayer/releases/$TARBALL"
    1.16 +HOST_ARCH="i486 arm"
    1.17 +
    1.18 +# Dont forget to update all related pkgs
    1.19 +RELATED="mplayer-codecs mencoder" 
    1.20 +DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora alsa-lib ncurses lame \
    1.21 +xorg-libXdamage giflib enca lirc xorg-libXxf86vm esound libmng audiofile \
    1.22 +libvorbis libogg xvidcore x264 zlib xorg-libXss"
    1.23 +BUILD_DEPENDS="gtk+-dev libmad-dev xorg-libXv-dev libtheora-dev alsa-lib-dev \
    1.24 +ncurses-dev lame-dev xorg-libXdamage-dev giflib-dev xorg-libXxf86vm-dev \
    1.25 +esound-dev audiofile-dev libogg-dev libvorbis-dev xvidcore-dev zlib-dev \
    1.26 +xorg-xextproto pkg-config yasm"
    1.27 +
    1.28 +# Handle arch package install. Less deps and no GTK gui for ARM
    1.29 +case "$SLITAZ_ARCH" in
    1.30 +	arm*) 
    1.31 +		DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm libogg \
    1.32 +		libvorbis libtheora libsdl xvidcore lame esound gtk+" ;;
    1.33 +esac
    1.34 +
    1.35 +# Handle cross compilation. Host coreutils-file-* are used
    1.36 +case "$ARCH" in
    1.37 +	i?86) 
    1.38 +		ARCH_ARGS="--target=i386-linux --disable-sdl" 
    1.39 +		BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-dev x264-dev enca-dev \
    1.40 +		libmng-dev lirc-dev" ;;
    1.41 +	arm*) 
    1.42 +		BUILD_DEPENDS="$BUILD_DEPENDS libsdl-dev" 
    1.43 +		ARCH_ARGS="--target=arm-linux --enable-cross-compile --enable-sdl" ;;
    1.44 +esac
    1.45 +
    1.46 +# Rules to configure and make the package.
    1.47 +compile_rules()
    1.48 +{
    1.49 +	# just remove next configure options:
    1.50 +	# --disable-mmx --disable-mmxext --disable-3dnow --disable-3dnowext
    1.51 +	# --disable-sse --disable-sse2 --disable-ssse3
    1.52 +	./configure \
    1.53 +		--prefix=/usr \
    1.54 +		--confdir=/etc/mplayer \
    1.55 +		--libdir=/usr/lib/mplayer \
    1.56 +		--language="en de es fr it pl ru" \
    1.57 +		--disable-fastmemcpy \
    1.58 +		--disable-gl \
    1.59 +		--disable-jack \
    1.60 +		--disable-liblzo \
    1.61 +		--disable-libdv \
    1.62 +		--disable-fribidi \
    1.63 +		--disable-ivtv \
    1.64 +		--disable-smb \
    1.65 +		--disable-ftp \
    1.66 +		--disable-openal \
    1.67 +		--disable-faac \
    1.68 +		--disable-speex \
    1.69 +		--enable-gui \
    1.70 +		${ARCH_ARGS} &&
    1.71 +	make $MAKEFLAGS &&
    1.72 +	make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
    1.73 +}
    1.74 +
    1.75 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.76 +genpkg_rules()
    1.77 +{
    1.78 +	mkdir -p $fs/usr/share/mplayer/skins
    1.79 +	cp -a $install/usr/bin $fs/usr
    1.80 +	# Mencoder goes in a splited package.
    1.81 +	rm $fs/usr/bin/mencoder
    1.82 +	[ -d "$install/usr/share/mplayer" ] && \
    1.83 +		cp -a $install/usr/share/mplayer $fs/usr/share
    1.84 +	cp -a $install/etc $fs
    1.85 +	cp $src/etc/example.conf $fs/etc/mplayer
    1.86 +	# Config to use Xv by default.
    1.87 +	cp $stuff/mplayer.conf $fs/etc/mplayer
    1.88 +	# default skin
    1.89 +	tar xjf $stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
    1.90 +	cd $fs/usr/share/mplayer/skins && ln -s productive default
    1.91 +	# Font
    1.92 +	cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
    1.93 +	# Xv support dont work for ARM and gmplayer symlink not created
    1.94 +	case "$ARCH" in
    1.95 +		arm*)
    1.96 +			cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf 
    1.97 +			cd $fs/usr/bin && ln -s mplayer gmplayer ;;
    1.98 +	esac
    1.99 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/mplayer-opt/stuff/mplayer-arm.conf	Wed May 28 11:27:38 2014 +0300
     2.3 @@ -0,0 +1,10 @@
     2.4 +# /etc/mplayer/mplayer.conf: MPlayer default configuration for SliTaz.
     2.5 +# For more info and examples, please see: /etc/mplayer/example.conf
     2.6 +#
     2.7 +
     2.8 +# Specify default video driver (see -vo help for a list).
     2.9 +vo=x11
    2.10 +
    2.11 +# Specify default audio driver (see -ao help for a list).
    2.12 +ao=alsa
    2.13 +
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/mplayer-opt/stuff/mplayer.conf	Wed May 28 11:27:38 2014 +0300
     3.3 @@ -0,0 +1,10 @@
     3.4 +# /etc/mplayer/mplayer.conf: MPlayer default configuration for SliTaz.
     3.5 +# For more info and examples, please see: /etc/mplayer/example.conf
     3.6 +#
     3.7 +
     3.8 +# Specify default video driver (see -vo help for a list).
     3.9 +vo=xv
    3.10 +
    3.11 +# Specify default audio driver (see -ao help for a list).
    3.12 +ao=alsa
    3.13 +
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/mplayer-opt/stuff/mplayer.desktop	Wed May 28 11:27:38 2014 +0300
     4.3 @@ -0,0 +1,19 @@
     4.4 +[Desktop Entry]
     4.5 +Name=MPlayer Media Player
     4.6 +Name[de]=MPlayer Medienwiedergabe
     4.7 +Name[es]=MPlayer Reproductor multimedia
     4.8 +Name[fr]=Lecteur multimédia MPlayer
     4.9 +Name[it]=Lettore multimediale MPlayer
    4.10 +Name[pt]=Reprodutor Multimídia MPlayer
    4.11 +Name[pt_BR]=Reprodutor Multimídia MPlayer
    4.12 +Name[ru]=Медиа-проигрыватель MPlayer
    4.13 +Comment=Play movies and songs
    4.14 +Comment[de]=Filme und Musik wiedergeben
    4.15 +Comment[es]=Reproduce vídeos y música
    4.16 +Comment[fr]=Lit les films et musiques
    4.17 +Comment[it]=Riproduce filmati e musica
    4.18 +Comment[ru]=Воспроизведение фильмов и музыки
    4.19 +Exec=gmplayer %F
    4.20 +Icon=mplayer
    4.21 +Categories=GTK;AudioVideo;Audio;Video;Player;TV;
    4.22 +MimeType=application/mxf;application/x-netshow-channel;application/ogg;application/ram;application/vnd.rn-realmedia;application/x-shockwave-flash;application/smil;audio/ac3;audio/x-adpcm;audio/x-aiff;audio/AMR;audio/AMR-WB;audio/x-ape;audio/basic;audio/flac;audio/x-flac;audio/x-flac+ogg;audio/x-m4b;audio/x-matroska;audio/mp2;audio/mp4;audio/mpeg;audio/x-mpegurl;audio/x-ms-asx;audio/x-ms-wma;audio/x-musepack;audio/ogg;audio/vnd.rn-realaudio;audio/x-scpls;audio/x-voc;audio/x-vorbis+ogg;audio/x-wav;audio/x-wavpack;video/3gpp;video/3gpp2;video/dv;video/x-flic;video/x-flv;video/x-matroska;video/mp2t;video/mp4;video/mpeg;video/x-ms-asf;video/x-ms-wmv;video/x-msvideo;video/x-nsv;video/ogg;video/x-ogm+ogg;video/quicktime;video/vnd.rn-realvideo;video/x-theora+ogg;video/webm;
     5.1 Binary file mplayer-opt/stuff/productive-1.0.tar.bz2 has changed