mplayer: nuevo

Las principales diferencias de esta versión respecto a la distribuida por void es que se quitó el soporte para pulseaudio y jack y en su lugar se habilitó el soporte para sndio
This commit is contained in:
Tuxliban Torvalds 2021-12-26 14:48:43 -06:00
parent 9b874f5083
commit 94d7450f59
5 changed files with 101 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,21 @@
[Desktop Entry]
Type=Application
Name=MPlayer Media Player
Name[ca]=Reproductor multimèdia MPlayer
Name[pl]=MPlayer odtwarzacz multimedialny
GenericName=Multimedia player
Comment=Play movies and songs
Comment[ca]=Reproduïu vídeos i cançons
Comment[de]=Filme und Musik abspielen
Comment[es]=Reproduzca vídeos y canciones
Comment[fr]=Lecteur multimédia
Comment[it]=Lettore multimediale
Comment[zh]=多媒体播放器
Comment[pl]=Odtwarzaj filmy i muzykę
Icon=mplayer
TryExec=mplayer
Exec=mplayer -zoom %F
Terminal=false
NoDisplay=true
Categories=GTK;AudioVideo;Audio;Video;Player;TV;
MimeType=application/ogg;application/x-ogg;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/m4a;audio/x-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg;video/x-mpeg2;video/mp4;video/msvideo;video/x-msvideo;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/x-fli;video/x-flv;video/x-theora;video/x-matroska;

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -0,0 +1,18 @@
--- a/ffmpeg/libavutil/ppc/util_altivec.h
+++ b/ffmpeg/libavutil/ppc/util_altivec.h
@@ -54,6 +54,15 @@
#if HAVE_ALTIVEC
#include <altivec.h>
+/* starting with gcc 8.3, the vector keyword no longer allows usage with
+ * typedefs (e.g. vector uint32_t), only with their respective basic types
+ * (e.g. vector unsigned int) - with __vector this still works and there
+ * is code relying on it
+ */
+#ifndef vector
+#define vector __vector
+#endif
+
// used to build registers permutation vectors (vcprm)
// the 's' are for words in the _s_econd vector
#define WORD_0 0x00,0x01,0x02,0x03

View File

@ -0,0 +1,62 @@
# Template file for 'mplayer'
pkgname=mplayer
version=1.4
revision=6
wrksrc="MPlayer-${version}"
build_style=configure
hostmakedepends="pkg-config yasm"
makedepends="xorgproto eudev-libudev-devel libpng-devel
libvorbis-devel SDL_image-devel x264-devel mpg123-devel xcb-util-devel
xcb-util-keysyms-devel libsamplerate-devel libXxf86vm-devel libXinerama-devel
libXpm-devel libXvMC-devel libXv-devel libmpeg2-devel libflac-devel
fribidi-devel freetype-devel libmtp-devel avahi-libs-devel MesaLib-devel
libmad-devel liba52-devel libdca-devel libdvbpsi-devel libgcrypt-devel
libnotify-devel dbus-glib-devel gnutls-devel taglib-devel libmatroska-devel
libmpcdec-devel libproxy-devel libdvdnav-devel libsysfs-devel libusb-compat-devel
sqlite-devel librsvg-devel libtheora-devel speex-devel sndio-devel
libmodplug-devel libva-devel v4l-utils-devel xvidcore-devel"
short_desc="Multimedia player"
maintainer="Tuxliban Torvalds <tenshalito@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://www.mplayerhq.hu/"
distfiles="http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-${version}.tar.xz"
checksum=82596ed558478d28248c7bc3828eb09e6948c099bbd76bb7ee745a0e3275b548
nocross=yes
conf_files="
/etc/mplayer/input.conf
/etc/mplayer/codecs.conf"
do_configure() {
sed 's|-march=i486||g' -i configure
./configure --prefix=/usr --confdir=/etc/mplayer \
--disable-gui --disable-lirc --disable-lircc --disable-joystick \
--disable-apple-remote --disable-apple-ir --enable-xf86keysym \
--disable-radio --disable-radio-capture --disable-radio-v4l2 --disable-radio-bsdbt848 \
--disable-tv --disable-tv-v4l1 --disable-tv-v4l2 --disable-tv-bsdbt848 \
--disable-smb --disable-live --disable-nemesi --disable-librtmp \
--disable-vcd --disable-bluray --disable-dvdnav --disable-dvdread \
--disable-cdparanoia --disable-unrarexec --disable-ftp --disable-vstream \
--disable-ass-internal --disable-dart --disable-arts --disable-liblzo \
--disable-speex --disable-openal --disable-libdv --disable-musepack --disable-esd \
--disable-caca --disable-pulse --disable-jack --enable-sndio --disable-mga \
--enable-xvmc --disable-ossaudio --disable-esd --disable-openal --disable-cddb \
--disable-nas --disable-sgiaudio --disable-sunaudio --disable-kai --enable-fbdev \
--disable-vdpau --enable-runtime-cpudetection --enable-alsa \
--language=es --language-doc=es --language-man=en --language-msg=es
}
post_install() {
vmkdir etc/mplayer
install -Dm644 etc/{codecs.conf,input.conf} \
${DESTDIR}/etc/mplayer
vinstall etc/example.conf 644 usr/share/examples/mplayer
vmkdir usr/share/mplayer
ln -s /usr/share/fonts/TTF/DejaVuSans.ttf \
${DESTDIR}/usr/share/mplayer/subfont.ttf
rm -rf ${DESTDIR}/usr/share/mplayer/font
vinstall ${FILESDIR}/mplayer.desktop 644 usr/share/applications
vinstall etc/mplayer256x256.png 644 usr/share/pixmaps mplayer.png
}