wok diff mplayer-opt/receipt @ 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 | |
children | 57fc46317c91 |
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 +}