# HG changeset patch # User Aleksej Bobylev # Date 1401265658 -10800 # Node ID 9ec6fb98bb168801bb90f019b489d1eb8002ddea # Parent f924b8021268fe5532a2ccb6db86bbb6acdb0350 Add: mplayer-opt: the same as mplayer but with enabled CPU optimizations (MMX, MMX2, SSE, SSE2 and friends). diff -r f924b8021268 -r 9ec6fb98bb16 mplayer-opt/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mplayer-opt/receipt Wed May 28 11:27:38 2014 +0300 @@ -0,0 +1,96 @@ +# SliTaz package receipt. + +PACKAGE="mplayer" +VERSION="1.1.1" +CATEGORY="multimedia" +SHORT_DESC="The Ultimate Movie Player For Linux (with CPU optimizations)" +MAINTAINER="pankso@slitaz.org" +LICENSE="GPL2" +SOURCE="MPlayer" +TARBALL="$SOURCE-$VERSION.tar.xz" +WEB_SITE="http://www.mplayerhq.hu/design7/news.html" +WGET_URL="http://www1.mplayerhq.hu/MPlayer/releases/$TARBALL" +HOST_ARCH="i486 arm" + +# Dont forget to update all related pkgs +RELATED="mplayer-codecs mencoder" +DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora alsa-lib ncurses lame \ +xorg-libXdamage giflib enca lirc xorg-libXxf86vm esound libmng audiofile \ +libvorbis libogg xvidcore x264 zlib xorg-libXss" +BUILD_DEPENDS="gtk+-dev libmad-dev xorg-libXv-dev libtheora-dev alsa-lib-dev \ +ncurses-dev lame-dev xorg-libXdamage-dev giflib-dev xorg-libXxf86vm-dev \ +esound-dev audiofile-dev libogg-dev libvorbis-dev xvidcore-dev zlib-dev \ +xorg-xextproto pkg-config yasm" + +# Handle arch package install. Less deps and no GTK gui for ARM +case "$SLITAZ_ARCH" in + arm*) + DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm libogg \ + libvorbis libtheora libsdl xvidcore lame esound gtk+" ;; +esac + +# Handle cross compilation. Host coreutils-file-* are used +case "$ARCH" in + i?86) + ARCH_ARGS="--target=i386-linux --disable-sdl" + BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-dev x264-dev enca-dev \ + libmng-dev lirc-dev" ;; + arm*) + BUILD_DEPENDS="$BUILD_DEPENDS libsdl-dev" + ARCH_ARGS="--target=arm-linux --enable-cross-compile --enable-sdl" ;; +esac + +# Rules to configure and make the package. +compile_rules() +{ + # just remove next configure options: + # --disable-mmx --disable-mmxext --disable-3dnow --disable-3dnowext + # --disable-sse --disable-sse2 --disable-ssse3 + ./configure \ + --prefix=/usr \ + --confdir=/etc/mplayer \ + --libdir=/usr/lib/mplayer \ + --language="en de es fr it pl ru" \ + --disable-fastmemcpy \ + --disable-gl \ + --disable-jack \ + --disable-liblzo \ + --disable-libdv \ + --disable-fribidi \ + --disable-ivtv \ + --disable-smb \ + --disable-ftp \ + --disable-openal \ + --disable-faac \ + --disable-speex \ + --enable-gui \ + ${ARCH_ARGS} && + make $MAKEFLAGS && + make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/mplayer/skins + cp -a $install/usr/bin $fs/usr + # Mencoder goes in a splited package. + rm $fs/usr/bin/mencoder + [ -d "$install/usr/share/mplayer" ] && \ + cp -a $install/usr/share/mplayer $fs/usr/share + cp -a $install/etc $fs + cp $src/etc/example.conf $fs/etc/mplayer + # Config to use Xv by default. + cp $stuff/mplayer.conf $fs/etc/mplayer + # default skin + tar xjf $stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins + cd $fs/usr/share/mplayer/skins && ln -s productive default + # Font + cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf + # Xv support dont work for ARM and gmplayer symlink not created + case "$ARCH" in + arm*) + cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf + cd $fs/usr/bin && ln -s mplayer gmplayer ;; + esac +} diff -r f924b8021268 -r 9ec6fb98bb16 mplayer-opt/stuff/mplayer-arm.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mplayer-opt/stuff/mplayer-arm.conf Wed May 28 11:27:38 2014 +0300 @@ -0,0 +1,10 @@ +# /etc/mplayer/mplayer.conf: MPlayer default configuration for SliTaz. +# For more info and examples, please see: /etc/mplayer/example.conf +# + +# Specify default video driver (see -vo help for a list). +vo=x11 + +# Specify default audio driver (see -ao help for a list). +ao=alsa + diff -r f924b8021268 -r 9ec6fb98bb16 mplayer-opt/stuff/mplayer.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mplayer-opt/stuff/mplayer.conf Wed May 28 11:27:38 2014 +0300 @@ -0,0 +1,10 @@ +# /etc/mplayer/mplayer.conf: MPlayer default configuration for SliTaz. +# For more info and examples, please see: /etc/mplayer/example.conf +# + +# Specify default video driver (see -vo help for a list). +vo=xv + +# Specify default audio driver (see -ao help for a list). +ao=alsa + diff -r f924b8021268 -r 9ec6fb98bb16 mplayer-opt/stuff/mplayer.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mplayer-opt/stuff/mplayer.desktop Wed May 28 11:27:38 2014 +0300 @@ -0,0 +1,19 @@ +[Desktop Entry] +Name=MPlayer Media Player +Name[de]=MPlayer Medienwiedergabe +Name[es]=MPlayer Reproductor multimedia +Name[fr]=Lecteur multimédia MPlayer +Name[it]=Lettore multimediale MPlayer +Name[pt]=Reprodutor Multimídia MPlayer +Name[pt_BR]=Reprodutor Multimídia MPlayer +Name[ru]=Медиа-проигрыватель MPlayer +Comment=Play movies and songs +Comment[de]=Filme und Musik wiedergeben +Comment[es]=Reproduce vídeos y música +Comment[fr]=Lit les films et musiques +Comment[it]=Riproduce filmati e musica +Comment[ru]=Воспроизведение фильмов и музыки +Exec=gmplayer %F +Icon=mplayer +Categories=GTK;AudioVideo;Audio;Video;Player;TV; +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; diff -r f924b8021268 -r 9ec6fb98bb16 mplayer-opt/stuff/productive-1.0.tar.bz2 Binary file mplayer-opt/stuff/productive-1.0.tar.bz2 has changed