# HG changeset patch # User Xander Ziiryanoff # Date 1481716516 -3600 # Node ID 8dc6e13e2fba1e9066d5a0403d9ec69de3e62859 # Parent 052a6e4493180ffe157b3e6b3eab755cf8e5534e rename mplayer-opt to mplayer-cli, restore libmad in depends diff -r 052a6e449318 -r 8dc6e13e2fba mplayer-cli/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mplayer-cli/receipt Wed Dec 14 12:55:16 2016 +0100 @@ -0,0 +1,73 @@ +# SliTaz package receipt. + +PACKAGE="mplayer-cli" +VERSION="1.1.1" +CATEGORY="multimedia" +SHORT_DESC="The Ultimate Movie Player For Linux (with minimal depends)" +MAINTAINER="psychomaniak@xakep.ru" +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" + +# CONFIG_FILES="/etc/mplayer" # use ~/ instead + +DEPENDS="xorg-libXv alsa-lib giflib ncurses fontconfig libmad libsdl \ +libxml2 pcre libpng xorg-libXdamage xorg-libXxf86vm zlib xorg-libXss" +BUILD_DEPENDS="ncurses-dev xorg-libXv-dev alsa-lib-dev libsdl-dev \ +xorg-libXdamage-dev giflib-dev xorg-libXxf86vm-dev xorg-xextproto \ +freetype-dev fontconfig-dev zlib-dev pkg-config yasm libmad-dev" +PROVIDE="mplayer" + +# Handle cross compilation. Host coreutils-file-* are used +case "$ARCH" in + i?86) ARCH_ARGS="--target=i486-linux --enable-runtime-cpudetection" ;; + arm*) ARCH_ARGS="--target=arm-linux --enable-cross-compile" ;; +esac + +# Rules to configure and make the package. +compile_rules() +{ + ./configure \ + --prefix=/usr \ + --confdir=/etc/mplayer \ + --libdir=/usr/lib/mplayer \ + --language="en de es fr it pl ru" \ + --enable-menu \ + --disable-mencoder \ + --disable-gl \ + --disable-jack \ + --disable-liblzo \ + --disable-libdv \ + --disable-fribidi \ + --disable-ivtv \ + --disable-smb \ + --disable-openal \ + --disable-faac \ + --disable-speex --disable-esd \ + --disable-lirc --disable-lircc \ + ${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 + cp -a $install/usr/bin $fs/usr + cp -a $install/etc $fs + cp $src/etc/example.conf $fs/etc/mplayer + # Add /etc/mplayer/input.conf + cp $stuff/input.conf $fs/etc/mplayer + # Config + cp $stuff/mplayer.conf $fs/etc/mplayer + # No-gui, OSD ($username@slitaz:~$ mplayer -menu filename) + mkdir -p $fs/usr/share/applications + cp -f $stuff/mplayer.desktop $fs/usr/share/applications/mplayer.desktop + cp $src/etc/*menu.conf $fs/etc/mplayer + # Font + cd $fs/usr/share/mplayer && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf +} diff -r 052a6e449318 -r 8dc6e13e2fba mplayer-cli/stuff/input.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mplayer-cli/stuff/input.conf Wed Dec 14 12:55:16 2016 +0100 @@ -0,0 +1,3 @@ +MOUSE_BTN0-MOUSE_BTN0_DBL vo_fullscreen +ENTER vo_fullscreen +MOUSE_BTN2_DBL menu up \ No newline at end of file diff -r 052a6e449318 -r 8dc6e13e2fba mplayer-cli/stuff/mplayer-arm.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mplayer-cli/stuff/mplayer-arm.conf Wed Dec 14 12:55:16 2016 +0100 @@ -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 052a6e449318 -r 8dc6e13e2fba mplayer-cli/stuff/mplayer.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mplayer-cli/stuff/mplayer.conf Wed Dec 14 12:55:16 2016 +0100 @@ -0,0 +1,22 @@ +# /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). +# xv is slow with xcompmgr/compton +vo=xv,x11,fbdev2, +# vf=eq2 +# zoom=yes + +# Specify default audio driver (see -ao help for a list). +ao=oss,sdl,alsa, +# ao=oss,sdl,alsa:device=hw=0.0,alsa, +# af= + +# mp3 support: +ac=mad + +stop-xscreensaver="1" +heartbeat-cmd='echo -n ""' +quiet="1" + diff -r 052a6e449318 -r 8dc6e13e2fba mplayer-cli/stuff/mplayer.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mplayer-cli/stuff/mplayer.desktop Wed Dec 14 12:55:16 2016 +0100 @@ -0,0 +1,13 @@ +[Desktop Entry] +Type=Application +Name=...open with pure MPlayer +GenericName=mplayer +X-GNOME-FullName=mplayer +Comment=backend +TryExec=mplayer +Exec=mplayer %F +Terminal=false +Icon=mplayer +NoDisplay=true +Categories=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 052a6e449318 -r 8dc6e13e2fba mplayer-opt/receipt --- a/mplayer-opt/receipt Wed Dec 14 09:22:13 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,73 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="mplayer-opt" -VERSION="1.1.1" -CATEGORY="multimedia" -SHORT_DESC="The Ultimate Movie Player For Linux (with minimal depends)" -MAINTAINER="psychomaniak@xakep.ru" -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" - -# CONFIG_FILES="/etc/mplayer" # use ~/ instead - -DEPENDS="xorg-libXv alsa-lib giflib ncurses fontconfig libsdl \ -libxml2 pcre libpng xorg-libXdamage xorg-libXxf86vm zlib xorg-libXss" -BUILD_DEPENDS="ncurses-dev xorg-libXv-dev alsa-lib-dev libsdl-dev \ -xorg-libXdamage-dev giflib-dev xorg-libXxf86vm-dev xorg-xextproto \ -freetype-dev fontconfig-dev zlib-dev pkg-config yasm" -PROVIDE="mplayer" - -# Handle cross compilation. Host coreutils-file-* are used -case "$ARCH" in - i?86) ARCH_ARGS="--target=i486-linux --enable-runtime-cpudetection" ;; - arm*) ARCH_ARGS="--target=arm-linux --enable-cross-compile" ;; -esac - -# Rules to configure and make the package. -compile_rules() -{ - ./configure \ - --prefix=/usr \ - --confdir=/etc/mplayer \ - --libdir=/usr/lib/mplayer \ - --language="en de es fr it pl ru" \ - --enable-menu \ - --disable-mencoder \ - --disable-gl \ - --disable-jack \ - --disable-liblzo \ - --disable-libdv \ - --disable-fribidi \ - --disable-ivtv \ - --disable-smb \ - --disable-openal \ - --disable-faac \ - --disable-speex --disable-esd \ - --disable-lirc --disable-lircc \ - ${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 - cp -a $install/usr/bin $fs/usr - cp -a $install/etc $fs - cp $src/etc/example.conf $fs/etc/mplayer - # Add /etc/mplayer/input.conf - cp $stuff/input.conf $fs/etc/mplayer - # Config - cp $stuff/mplayer.conf $fs/etc/mplayer - # No-gui, OSD ($username@slitaz:~$ mplayer -menu filename) - mkdir -p $fs/usr/share/applications - cp -f $stuff/mplayer.desktop $fs/usr/share/applications/mplayer.desktop - cp $src/etc/*menu.conf $fs/etc/mplayer - # Font - cd $fs/usr/share/mplayer && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf -} diff -r 052a6e449318 -r 8dc6e13e2fba mplayer-opt/stuff/input.conf --- a/mplayer-opt/stuff/input.conf Wed Dec 14 09:22:13 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -MOUSE_BTN0-MOUSE_BTN0_DBL vo_fullscreen -ENTER vo_fullscreen -MOUSE_BTN2_DBL menu up \ No newline at end of file diff -r 052a6e449318 -r 8dc6e13e2fba mplayer-opt/stuff/mplayer-arm.conf --- a/mplayer-opt/stuff/mplayer-arm.conf Wed Dec 14 09:22:13 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -# /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 052a6e449318 -r 8dc6e13e2fba mplayer-opt/stuff/mplayer.conf --- a/mplayer-opt/stuff/mplayer.conf Wed Dec 14 09:22:13 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -# /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). -# xv is slow with xcompmgr/compton -vo=xv,x11,fbdev2, - -# vf=scale -# vf=eq2 - -# Specify default audio driver (see -ao help for a list). -ao=oss,sdl,alsa, -# ao=oss,sdl,alsa:device=hw=0.0,alsa, -# af= - -stop-xscreensaver="1" -heartbeat-cmd='echo -n ""' -quiet="1" - diff -r 052a6e449318 -r 8dc6e13e2fba mplayer-opt/stuff/mplayer.desktop --- a/mplayer-opt/stuff/mplayer.desktop Wed Dec 14 09:22:13 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -[Desktop Entry] -Type=Application -Name=...open with pure MPlayer -GenericName=mplayer -X-GNOME-FullName=mplayer -Comment=backend -TryExec=mplayer -Exec=mplayer %F -Terminal=false -Icon=mplayer -NoDisplay=true -Categories=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 052a6e449318 -r 8dc6e13e2fba smplayer/receipt --- a/smplayer/receipt Wed Dec 14 09:22:13 2016 +0100 +++ b/smplayer/receipt Wed Dec 14 12:55:16 2016 +0100 @@ -11,10 +11,13 @@ WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" TAGS="player audio video movie" -DEPENDS="mplayer-opt libQtCore libQtGui libQtXml libQtScript libQtDBus" +DEPENDS="mplayer-cli libQtCore libQtGui libQtXml libQtScript libQtDBus" BUILD_DEPENDS="Qt4-dev qmake" SUGGESTED="smplayer-themes mpv" + +GENERIC_MENUS="no" + # Rules to configure and make the package. compile_rules() { @@ -27,8 +30,9 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/share + mkdir -p $fs/usr/share/applications cp -a $install/usr/bin $fs/usr + cp -a $install/usr/share/applications/* $fs/usr/share/applications cp -a $install/usr/share/$PACKAGE $fs/usr/share cp -a $install/usr/share/icons $fs/usr/share rm $fs/usr/share/$PACKAGE/translations/*