wok-next diff mplayer/receipt @ rev 16173
Add: ympd (web frontend for mpd - perfect for RPi audio center remote control from desktop or mobile
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 30 16:39:01 2014 +0200 (2014-03-30) |
parents | bb009a6ef036 |
children | 8139105f9285 |
line diff
1.1 --- a/mplayer/receipt Sat Nov 30 15:44:51 2013 +0000 1.2 +++ b/mplayer/receipt Sun Mar 30 16:39:01 2014 +0200 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="mplayer" 1.7 -VERSION="1.1" 1.8 +VERSION="1.1.1" 1.9 CATEGORY="multimedia" 1.10 SHORT_DESC="The Ultimate Movie Player For Linux." 1.11 MAINTAINER="pankso@slitaz.org" 1.12 @@ -10,7 +10,9 @@ 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 +RELATED="mplayer-codecs mencoder" # Dont forget to update them 1.19 DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora alsa-lib ncurses \ 1.20 lame xorg-libXdamage giflib enca lirc xorg-libXxf86vm esound libmng audiofile \ 1.21 libvorbis libogg xvidcore x264 zlib xorg-libXss" 1.22 @@ -20,15 +22,30 @@ 1.23 audiofile-dev x264-dev libogg-dev libvorbis-dev xvidcore-dev zlib-dev \ 1.24 xorg-xextproto pkg-config yasm" 1.25 1.26 +# Handle arch package install. Less deps and no GTK gui for ARM 1.27 +case "$SLITAZ_ARCH" in 1.28 + arm*) DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm libogg \ 1.29 +libvorbis libtheora libsdl xvidcore lame esound" ;; 1.30 +esac 1.31 + 1.32 +# Handle cross compilation. Host coreutils-file-* are used 1.33 +case "$ARCH" in 1.34 + i?86) 1.35 + ARCH_ARGS="--target=i386-linux --enable-gui --disable-sdl" ;; 1.36 + arm*) 1.37 + BUILD_DEPENDS="alsa-lib-dev zlib-dev libmad-dev xorg-libXv-dev \ 1.38 +xorg-libXxf86vm-dev libogg-dev libvorbis-dev libsdl-dev xvidcore-dev lame-dev \ 1.39 +libtheora-dev esound-dev" 1.40 + ARCH_ARGS="--target=arm-linux --enable-cross-compile --enable-sdl" ;; 1.41 +esac 1.42 + 1.43 # Rules to configure and make the package. 1.44 compile_rules() 1.45 { 1.46 - cd $src 1.47 ./configure \ 1.48 --prefix=/usr \ 1.49 --confdir=/etc/mplayer \ 1.50 --libdir=/usr/lib/mplayer \ 1.51 - --target=i386-linux \ 1.52 --language="en de es fr it ru" \ 1.53 --disable-mmx \ 1.54 --disable-mmxext \ 1.55 @@ -39,7 +56,6 @@ 1.56 --disable-ssse3 \ 1.57 --disable-fastmemcpy \ 1.58 --disable-gl \ 1.59 - --disable-sdl \ 1.60 --disable-jack \ 1.61 --disable-liblzo \ 1.62 --disable-libdv \ 1.63 @@ -50,19 +66,20 @@ 1.64 --disable-openal \ 1.65 --disable-faac \ 1.66 --disable-speex \ 1.67 - --enable-gui && 1.68 + ${ARCH_ARGS} && 1.69 make $MAKEFLAGS && 1.70 - make DESTDIR=$DESTDIR install 1.71 + make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d 1.72 } 1.73 1.74 # Rules to gen a SliTaz package suitable for Tazpkg. 1.75 genpkg_rules() 1.76 { 1.77 - mkdir -p $fs/usr/share 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 - cp -a $install/usr/share/mplayer $fs/usr/share 1.83 + [ -d "$install/usr/share/mplayer" ] && \ 1.84 + cp -a $install/usr/share/mplayer $fs/usr/share 1.85 cp -a $install/etc $fs 1.86 cp $src/etc/example.conf $fs/etc/mplayer 1.87 # Config to use Xv by default. 1.88 @@ -72,4 +89,8 @@ 1.89 cd $fs/usr/share/mplayer/skins && ln -s productive default 1.90 # Font 1.91 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf 1.92 + # Xv support dont work for ARM 1.93 + case "$ARCH" in 1.94 + arm*) cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf ;; 1.95 + esac 1.96 }