wok-next diff mplayer-opt/receipt @ rev 16994

mplayer-opt: delete gui
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sun Aug 10 01:59:37 2014 +0200 (2014-08-10)
parents 7d92302eb790
children 0cef0efb4df7
line diff
     1.1 --- a/mplayer-opt/receipt	Tue Jul 29 01:39:13 2014 +0200
     1.2 +++ b/mplayer-opt/receipt	Sun Aug 10 01:59:37 2014 +0200
     1.3 @@ -3,7 +3,7 @@
     1.4  PACKAGE="mplayer-opt"
     1.5  VERSION="1.1.1"
     1.6  CATEGORY="multimedia"
     1.7 -SHORT_DESC="The Ultimate Movie Player For Linux (with CPU optimizations)"
     1.8 +SHORT_DESC="The Ultimate Movie Player For Linux (with minimal depends)"
     1.9  MAINTAINER="pankso@slitaz.org"
    1.10  LICENSE="GPL2"
    1.11  SOURCE="MPlayer"
    1.12 @@ -12,29 +12,26 @@
    1.13  WGET_URL="http://www1.mplayerhq.hu/MPlayer/releases/$TARBALL"
    1.14  HOST_ARCH="i486 arm"
    1.15  
    1.16 -# Dont forget to update all related pkgs
    1.17 -RELATED="mplayer-codecs mencoder" 
    1.18 -DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv alsa-lib ncurses \
    1.19 -xorg-libXdamage giflib enca xorg-libXxf86vm libmng audiofile \
    1.20 -libogg zlib xorg-libXss"
    1.21 -BUILD_DEPENDS="gtk+-dev libmad-dev xorg-libXv-dev alsa-lib-dev \
    1.22 +DEPENDS="libmad xorg-libXv alsa-lib cdparanoia-III giflib ncurses \
    1.23 +libmng enca xorg-libXdamage xorg-libXxf86vm zlib xorg-libXss"
    1.24 +BUILD_DEPENDS="libmad-dev xorg-libXv-dev alsa-lib-dev \
    1.25  ncurses-dev xorg-libXdamage-dev giflib-dev xorg-libXxf86vm-dev \
    1.26 -esound-dev audiofile-dev libogg-dev zlib-dev \
    1.27 -xorg-xextproto pkg-config yasm"
    1.28 +audiofile-dev libogg-dev zlib-dev xorg-xextproto pkg-config yasm"
    1.29  
    1.30 -# Handle arch package install. Less deps and no GTK gui for ARM
    1.31 +GENERIC_MENUS="no"
    1.32 +
    1.33 +# Handle arch package install. Less deps and no GTK gui
    1.34  case "$SLITAZ_ARCH" in
    1.35  	arm*) 
    1.36  		DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm libogg \
    1.37 -		libvorbis libtheora libsdl xvidcore lame esound gtk+" ;;
    1.38 +		libvorbis libtheora libsdl" ;;
    1.39  esac
    1.40  
    1.41  # Handle cross compilation. Host coreutils-file-* are used
    1.42  case "$ARCH" in
    1.43  	i?86) 
    1.44 -		ARCH_ARGS="--target=i486-linux --disable-sdl" 
    1.45 -		BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-dev enca-dev \
    1.46 -		libmng-dev lirc-dev" ;;
    1.47 +		ARCH_ARGS="--target=i486-linux --disable-sdl --enable-runtime-cpudetection" 
    1.48 +		BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-dev enca-dev libmng-dev" ;;
    1.49  	arm*) 
    1.50  		BUILD_DEPENDS="$BUILD_DEPENDS libsdl-dev" 
    1.51  		ARCH_ARGS="--target=arm-linux --enable-cross-compile --enable-sdl" ;;
    1.52 @@ -43,16 +40,11 @@
    1.53  # Rules to configure and make the package.
    1.54  compile_rules()
    1.55  {
    1.56 -	# just remove next configure options:
    1.57 -	# --disable-mmx --disable-mmxext --disable-3dnow --disable-3dnowext
    1.58 -	# --disable-sse --disable-sse2 --disable-ssse3
    1.59  	./configure \
    1.60  		--prefix=/usr \
    1.61  		--confdir=/etc/mplayer \
    1.62  		--libdir=/usr/lib/mplayer \
    1.63 -		--enable-gui \
    1.64  		--language="en de es fr it pl ru" \
    1.65 -		--enable-runtime-cpudetection \
    1.66  		--disable-mencoder \
    1.67  		--disable-gl \
    1.68  		--disable-jack \
    1.69 @@ -74,21 +66,18 @@
    1.70  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.71  genpkg_rules()
    1.72  {
    1.73 -	mkdir -p $fs/usr/share/mplayer/skins
    1.74 +	mkdir -p $fs/usr/share/mplayer
    1.75  	cp -a $install/usr/bin $fs/usr
    1.76 -	[ -d "$install/usr/share/mplayer" ] && \
    1.77 -		cp -a $install/usr/share/mplayer $fs/usr/share
    1.78  	cp -a $install/etc $fs
    1.79  	cp $src/etc/example.conf $fs/etc/mplayer
    1.80  	# Add /etc/mplayer/input.conf
    1.81  	cp $stuff/input.conf $fs/etc/mplayer
    1.82  	# Config to use Xv by default.
    1.83  	cp $stuff/mplayer.conf $fs/etc/mplayer
    1.84 -	# default skin
    1.85 -	tar xjf $stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
    1.86 -	cd $fs/usr/share/mplayer/skins && ln -s productive default
    1.87 +	# No-gui
    1.88 +	cp $stuff/mplayer.desktop $fs/usr/share/applications
    1.89  	# Font
    1.90 -	cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
    1.91 +	cd $fs/usr/share/mplayer && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
    1.92  	# Xv support dont work for ARM and gmplayer symlink not created
    1.93  	case "$ARCH" in
    1.94  		arm*)