wok-next rev 19558

rename mplayer-opt to mplayer-cli, restore libmad in depends
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Wed Dec 14 12:55:16 2016 +0100 (2016-12-14)
parents 052a6e449318
children aac6b4243788
files mplayer-cli/receipt mplayer-cli/stuff/input.conf mplayer-cli/stuff/mplayer-arm.conf mplayer-cli/stuff/mplayer.conf mplayer-cli/stuff/mplayer.desktop mplayer-opt/receipt mplayer-opt/stuff/input.conf mplayer-opt/stuff/mplayer-arm.conf mplayer-opt/stuff/mplayer.conf mplayer-opt/stuff/mplayer.desktop smplayer/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mplayer-cli/receipt	Wed Dec 14 12:55:16 2016 +0100
     1.3 @@ -0,0 +1,73 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="mplayer-cli"
     1.7 +VERSION="1.1.1"
     1.8 +CATEGORY="multimedia"
     1.9 +SHORT_DESC="The Ultimate Movie Player For Linux (with minimal depends)"
    1.10 +MAINTAINER="psychomaniak@xakep.ru"
    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 +# CONFIG_FILES="/etc/mplayer" # use ~/ instead
    1.19 +
    1.20 +DEPENDS="xorg-libXv alsa-lib giflib ncurses fontconfig libmad libsdl \
    1.21 +libxml2 pcre libpng xorg-libXdamage xorg-libXxf86vm zlib xorg-libXss"
    1.22 +BUILD_DEPENDS="ncurses-dev xorg-libXv-dev alsa-lib-dev libsdl-dev \
    1.23 +xorg-libXdamage-dev giflib-dev xorg-libXxf86vm-dev xorg-xextproto \
    1.24 +freetype-dev fontconfig-dev zlib-dev pkg-config yasm libmad-dev"
    1.25 +PROVIDE="mplayer"
    1.26 +
    1.27 +# Handle cross compilation. Host coreutils-file-* are used
    1.28 +case "$ARCH" in
    1.29 +	i?86) ARCH_ARGS="--target=i486-linux --enable-runtime-cpudetection" ;;
    1.30 +	arm*) ARCH_ARGS="--target=arm-linux --enable-cross-compile" ;;
    1.31 +esac
    1.32 +
    1.33 +# Rules to configure and make the package.
    1.34 +compile_rules()
    1.35 +{
    1.36 +	./configure \
    1.37 +		--prefix=/usr \
    1.38 +		--confdir=/etc/mplayer \
    1.39 +		--libdir=/usr/lib/mplayer \
    1.40 +		--language="en de es fr it pl ru" \
    1.41 +		--enable-menu \
    1.42 +		--disable-mencoder \
    1.43 +		--disable-gl \
    1.44 +		--disable-jack \
    1.45 +		--disable-liblzo \
    1.46 +		--disable-libdv \
    1.47 +		--disable-fribidi \
    1.48 +		--disable-ivtv \
    1.49 +		--disable-smb \
    1.50 +		--disable-openal \
    1.51 +		--disable-faac \
    1.52 +		--disable-speex --disable-esd \
    1.53 +		--disable-lirc --disable-lircc \
    1.54 +		${ARCH_ARGS} &&
    1.55 +	make $MAKEFLAGS &&
    1.56 +	make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
    1.57 +}
    1.58 +
    1.59 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.60 +genpkg_rules()
    1.61 +{
    1.62 +	mkdir -p $fs/usr/share/mplayer
    1.63 +	cp -a $install/usr/bin $fs/usr
    1.64 +	cp -a $install/etc $fs
    1.65 +	cp $src/etc/example.conf $fs/etc/mplayer
    1.66 +	# Add /etc/mplayer/input.conf
    1.67 +	cp $stuff/input.conf $fs/etc/mplayer
    1.68 +	# Config
    1.69 +	cp $stuff/mplayer.conf $fs/etc/mplayer
    1.70 +	# No-gui, OSD ($username@slitaz:~$ mplayer -menu filename)
    1.71 +	mkdir -p $fs/usr/share/applications
    1.72 +	cp -f $stuff/mplayer.desktop $fs/usr/share/applications/mplayer.desktop
    1.73 +	cp $src/etc/*menu.conf $fs/etc/mplayer
    1.74 +	# Font
    1.75 +	cd $fs/usr/share/mplayer && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
    1.76 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/mplayer-cli/stuff/input.conf	Wed Dec 14 12:55:16 2016 +0100
     2.3 @@ -0,0 +1,3 @@
     2.4 +MOUSE_BTN0-MOUSE_BTN0_DBL vo_fullscreen
     2.5 +ENTER vo_fullscreen
     2.6 +MOUSE_BTN2_DBL menu up
     2.7 \ No newline at end of file
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/mplayer-cli/stuff/mplayer-arm.conf	Wed Dec 14 12:55:16 2016 +0100
     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=x11
    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-cli/stuff/mplayer.conf	Wed Dec 14 12:55:16 2016 +0100
     4.3 @@ -0,0 +1,22 @@
     4.4 +# /etc/mplayer/mplayer.conf: MPlayer default configuration for SliTaz.
     4.5 +# For more info and examples, please see: /etc/mplayer/example.conf
     4.6 +#
     4.7 +
     4.8 +# Specify default video driver (see -vo help for a list).
     4.9 +# xv is slow with xcompmgr/compton
    4.10 +vo=xv,x11,fbdev2,
    4.11 +# vf=eq2
    4.12 +# zoom=yes
    4.13 +
    4.14 +# Specify default audio driver (see -ao help for a list).
    4.15 +ao=oss,sdl,alsa,
    4.16 +# ao=oss,sdl,alsa:device=hw=0.0,alsa,
    4.17 +# af=
    4.18 +
    4.19 +# mp3 support:
    4.20 +ac=mad
    4.21 +
    4.22 +stop-xscreensaver="1"
    4.23 +heartbeat-cmd='echo -n ""'
    4.24 +quiet="1"
    4.25 +
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/mplayer-cli/stuff/mplayer.desktop	Wed Dec 14 12:55:16 2016 +0100
     5.3 @@ -0,0 +1,13 @@
     5.4 +[Desktop Entry]
     5.5 +Type=Application
     5.6 +Name=...open with pure MPlayer
     5.7 +GenericName=mplayer
     5.8 +X-GNOME-FullName=mplayer
     5.9 +Comment=backend
    5.10 +TryExec=mplayer
    5.11 +Exec=mplayer %F
    5.12 +Terminal=false
    5.13 +Icon=mplayer
    5.14 +NoDisplay=true
    5.15 +Categories=AudioVideo;Audio;Video;Player;TV;
    5.16 +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;
     6.1 --- a/mplayer-opt/receipt	Wed Dec 14 09:22:13 2016 +0100
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,73 +0,0 @@
     6.4 -# SliTaz package receipt.
     6.5 -
     6.6 -PACKAGE="mplayer-opt"
     6.7 -VERSION="1.1.1"
     6.8 -CATEGORY="multimedia"
     6.9 -SHORT_DESC="The Ultimate Movie Player For Linux (with minimal depends)"
    6.10 -MAINTAINER="psychomaniak@xakep.ru"
    6.11 -LICENSE="GPL2"
    6.12 -SOURCE="MPlayer"
    6.13 -TARBALL="$SOURCE-$VERSION.tar.xz"
    6.14 -WEB_SITE="http://www.mplayerhq.hu/design7/news.html"
    6.15 -WGET_URL="http://www1.mplayerhq.hu/MPlayer/releases/$TARBALL"
    6.16 -HOST_ARCH="i486 arm"
    6.17 -
    6.18 -# CONFIG_FILES="/etc/mplayer" # use ~/ instead
    6.19 -
    6.20 -DEPENDS="xorg-libXv alsa-lib giflib ncurses fontconfig libsdl \
    6.21 -libxml2 pcre libpng xorg-libXdamage xorg-libXxf86vm zlib xorg-libXss"
    6.22 -BUILD_DEPENDS="ncurses-dev xorg-libXv-dev alsa-lib-dev libsdl-dev \
    6.23 -xorg-libXdamage-dev giflib-dev xorg-libXxf86vm-dev xorg-xextproto \
    6.24 -freetype-dev fontconfig-dev zlib-dev pkg-config yasm"
    6.25 -PROVIDE="mplayer"
    6.26 -
    6.27 -# Handle cross compilation. Host coreutils-file-* are used
    6.28 -case "$ARCH" in
    6.29 -	i?86) ARCH_ARGS="--target=i486-linux --enable-runtime-cpudetection" ;;
    6.30 -	arm*) ARCH_ARGS="--target=arm-linux --enable-cross-compile" ;;
    6.31 -esac
    6.32 -
    6.33 -# Rules to configure and make the package.
    6.34 -compile_rules()
    6.35 -{
    6.36 -	./configure \
    6.37 -		--prefix=/usr \
    6.38 -		--confdir=/etc/mplayer \
    6.39 -		--libdir=/usr/lib/mplayer \
    6.40 -		--language="en de es fr it pl ru" \
    6.41 -		--enable-menu \
    6.42 -		--disable-mencoder \
    6.43 -		--disable-gl \
    6.44 -		--disable-jack \
    6.45 -		--disable-liblzo \
    6.46 -		--disable-libdv \
    6.47 -		--disable-fribidi \
    6.48 -		--disable-ivtv \
    6.49 -		--disable-smb \
    6.50 -		--disable-openal \
    6.51 -		--disable-faac \
    6.52 -		--disable-speex --disable-esd \
    6.53 -		--disable-lirc --disable-lircc \
    6.54 -		${ARCH_ARGS} &&
    6.55 -	make $MAKEFLAGS &&
    6.56 -	make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
    6.57 -}
    6.58 -
    6.59 -# Rules to gen a SliTaz package suitable for Tazpkg.
    6.60 -genpkg_rules()
    6.61 -{
    6.62 -	mkdir -p $fs/usr/share/mplayer
    6.63 -	cp -a $install/usr/bin $fs/usr
    6.64 -	cp -a $install/etc $fs
    6.65 -	cp $src/etc/example.conf $fs/etc/mplayer
    6.66 -	# Add /etc/mplayer/input.conf
    6.67 -	cp $stuff/input.conf $fs/etc/mplayer
    6.68 -	# Config
    6.69 -	cp $stuff/mplayer.conf $fs/etc/mplayer
    6.70 -	# No-gui, OSD ($username@slitaz:~$ mplayer -menu filename)
    6.71 -	mkdir -p $fs/usr/share/applications
    6.72 -	cp -f $stuff/mplayer.desktop $fs/usr/share/applications/mplayer.desktop
    6.73 -	cp $src/etc/*menu.conf $fs/etc/mplayer
    6.74 -	# Font
    6.75 -	cd $fs/usr/share/mplayer && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
    6.76 -}
     7.1 --- a/mplayer-opt/stuff/input.conf	Wed Dec 14 09:22:13 2016 +0100
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,3 +0,0 @@
     7.4 -MOUSE_BTN0-MOUSE_BTN0_DBL vo_fullscreen
     7.5 -ENTER vo_fullscreen
     7.6 -MOUSE_BTN2_DBL menu up
     7.7 \ No newline at end of file
     8.1 --- a/mplayer-opt/stuff/mplayer-arm.conf	Wed Dec 14 09:22:13 2016 +0100
     8.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.3 @@ -1,10 +0,0 @@
     8.4 -# /etc/mplayer/mplayer.conf: MPlayer default configuration for SliTaz.
     8.5 -# For more info and examples, please see: /etc/mplayer/example.conf
     8.6 -#
     8.7 -
     8.8 -# Specify default video driver (see -vo help for a list).
     8.9 -vo=x11
    8.10 -
    8.11 -# Specify default audio driver (see -ao help for a list).
    8.12 -ao=alsa
    8.13 -
     9.1 --- a/mplayer-opt/stuff/mplayer.conf	Wed Dec 14 09:22:13 2016 +0100
     9.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.3 @@ -1,20 +0,0 @@
     9.4 -# /etc/mplayer/mplayer.conf: MPlayer default configuration for SliTaz.
     9.5 -# For more info and examples, please see: /etc/mplayer/example.conf
     9.6 -#
     9.7 -
     9.8 -# Specify default video driver (see -vo help for a list).
     9.9 -# xv is slow with xcompmgr/compton
    9.10 -vo=xv,x11,fbdev2,
    9.11 -
    9.12 -# vf=scale
    9.13 -# vf=eq2
    9.14 -
    9.15 -# Specify default audio driver (see -ao help for a list).
    9.16 -ao=oss,sdl,alsa,
    9.17 -# ao=oss,sdl,alsa:device=hw=0.0,alsa,
    9.18 -# af=
    9.19 -
    9.20 -stop-xscreensaver="1"
    9.21 -heartbeat-cmd='echo -n ""'
    9.22 -quiet="1"
    9.23 -
    10.1 --- a/mplayer-opt/stuff/mplayer.desktop	Wed Dec 14 09:22:13 2016 +0100
    10.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.3 @@ -1,13 +0,0 @@
    10.4 -[Desktop Entry]
    10.5 -Type=Application
    10.6 -Name=...open with pure MPlayer
    10.7 -GenericName=mplayer
    10.8 -X-GNOME-FullName=mplayer
    10.9 -Comment=backend
   10.10 -TryExec=mplayer
   10.11 -Exec=mplayer %F
   10.12 -Terminal=false
   10.13 -Icon=mplayer
   10.14 -NoDisplay=true
   10.15 -Categories=AudioVideo;Audio;Video;Player;TV;
   10.16 -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;
    11.1 --- a/smplayer/receipt	Wed Dec 14 09:22:13 2016 +0100
    11.2 +++ b/smplayer/receipt	Wed Dec 14 12:55:16 2016 +0100
    11.3 @@ -11,10 +11,13 @@
    11.4  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    11.5  TAGS="player audio video movie"
    11.6  
    11.7 -DEPENDS="mplayer-opt libQtCore libQtGui libQtXml libQtScript libQtDBus"
    11.8 +DEPENDS="mplayer-cli libQtCore libQtGui libQtXml libQtScript libQtDBus"
    11.9  BUILD_DEPENDS="Qt4-dev qmake"
   11.10  SUGGESTED="smplayer-themes mpv"
   11.11  
   11.12 +
   11.13 +GENERIC_MENUS="no"
   11.14 +
   11.15  # Rules to configure and make the package.
   11.16  compile_rules()
   11.17  {
   11.18 @@ -27,8 +30,9 @@
   11.19  # Rules to gen a SliTaz package suitable for Tazpkg.
   11.20  genpkg_rules()
   11.21  {
   11.22 -	mkdir -p $fs/usr/share
   11.23 +	mkdir -p $fs/usr/share/applications
   11.24  	cp -a $install/usr/bin $fs/usr
   11.25 +	cp -a $install/usr/share/applications/* $fs/usr/share/applications
   11.26  	cp -a $install/usr/share/$PACKAGE $fs/usr/share
   11.27  	cp -a $install/usr/share/icons $fs/usr/share
   11.28  	rm $fs/usr/share/$PACKAGE/translations/*