initial import
This commit is contained in:
119
mplayer/PKGBUILD
Normal file
119
mplayer/PKGBUILD
Normal file
@@ -0,0 +1,119 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgbase=mplayer
|
||||
pkgname=('mplayer' 'mencoder')
|
||||
pkgver=1.4
|
||||
_debver=$pkgver
|
||||
_debrel=1
|
||||
pkgrel=8
|
||||
pkgdesc="Free and libre media player"
|
||||
url='http://www.mplayerhq.hu/'
|
||||
arch=('i686' 'x86_64')
|
||||
license=('GPL-2')
|
||||
makedepends=('libxxf86dga' 'libmad' 'libxinerama' 'libmng' 'libxss' 'aalib' 'jack'
|
||||
'libcaca' 'faad2' 'libxvmc' 'enca' 'libdca' 'a52dec' 'unzip'
|
||||
'mesa' 'yasm' 'mpg123' 'ladspa' 'libcdio-paranoia' 'x264' 'libdvdcss'
|
||||
'libdvdread' 'libdvdnav' 'ffmpeg' 'quilt')
|
||||
options=('!buildflags' '!emptydirs')
|
||||
source=("${pkgname}-${pkgver}.tar.xz::https://deb.debian.org/debian/pool/main/m/mplayer/mplayer_${pkgver}+ds1.orig.tar.xz"
|
||||
"https://deb.debian.org/debian/pool/main/m/mplayer/mplayer_${_debver}+ds1-${_debrel}+deb11u1.debian.tar.xz"
|
||||
"mplayer.desktop"
|
||||
"revert-icl-fixes.patch"
|
||||
"fix-libmpcodecs-ad_spdif_ffmpeg44.patch")
|
||||
sha512sums=('23f7ed12fb40bd126524c523ee1c655fb1ebbda3f3a8506da67a0c39bf8c34a04b6f2183ae680ae6237a74934f28fbc725625af8301da09fd369fe52f7e0b077'
|
||||
'9ca1906bbe619cc3a2ff9f10b687d829255ca911f3d273cee34e53d8772ecdd2316d24b48a1a09c9ba4cad34c15b384577070aea833bd7402c86505115b6387d'
|
||||
'd3c5cbf0035279c6f307e4e225473d7b77f9b56566537a26aa694e68446b9e3240333296da627ad5af83b04cc8f476d1a3f8c05e4cf81cd6e77153feb4ed74bc'
|
||||
'0cae0b26d3d97fd4c962962c43a481de20335369cbca406cadfc9bda1a0608b32f5374e76c477cb9a85bda83a568a1ed17126df224ae61579d0a402c1824aea8'
|
||||
'b866f0cf9ef3009e3d16ccbe64600a485968e288e6b0965dcb443f6867e353e01f4f5de86eea637e0a3b98d8177c6c50d0f8e74ca21a99649a5b3716ca402c2b')
|
||||
|
||||
prepare() {
|
||||
cd MPlayer-${pkgver}
|
||||
|
||||
if [[ $pkgver = $_debver ]]; then
|
||||
# Debian patches
|
||||
export QUILT_PATCHES=debian/patches
|
||||
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
||||
export QUILT_DIFF_ARGS='--no-timestamps'
|
||||
|
||||
rm -rf ./debian
|
||||
mv "$srcdir"/debian .
|
||||
|
||||
# Doesn't apply
|
||||
rm -v debian/patches/0001_version.patch || true
|
||||
rm -v debian/patches/0002_mplayer_debug_printf.patch || true
|
||||
rm -v debian/patches/0201_PATH_MAX_HURD.patch || true
|
||||
rm -v debian/patches/0203_generic arch fallback.patch || true
|
||||
|
||||
quilt push -av
|
||||
fi
|
||||
|
||||
patch -p0 < "$srcdir/revert-icl-fixes.patch"
|
||||
patch -Np1 -i "$srcdir/fix-libmpcodecs-ad_spdif_ffmpeg44.patch"
|
||||
./version.sh
|
||||
}
|
||||
|
||||
build() {
|
||||
cd MPlayer-${pkgver}
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--disable-gui \
|
||||
--disable-arts \
|
||||
--disable-liblzo \
|
||||
--disable-speex \
|
||||
--disable-openal \
|
||||
--disable-libdv \
|
||||
--disable-musepack \
|
||||
--disable-esd \
|
||||
--disable-mga \
|
||||
--disable-ass-internal \
|
||||
--disable-faac \
|
||||
--disable-unrarexec \
|
||||
--disable-cdparanoia \
|
||||
--disable-ffmpeg_a \
|
||||
--disable-smb \
|
||||
--disable-vdpau \
|
||||
--disable-librtmp \
|
||||
--disable-libvpx-lavc \
|
||||
--disable-apple-remote \
|
||||
--disable-apple-ir \
|
||||
--disable-lirc \
|
||||
--disable-lircc \
|
||||
--enable-runtime-cpudetection \
|
||||
--enable-xvmc \
|
||||
--enable-radio \
|
||||
--enable-radio-capture \
|
||||
--language=all \
|
||||
--confdir=/etc/mplayer \
|
||||
$extra
|
||||
[[ "${CARCH}" = "i686" ]] && sed 's|-march=i486|-march=i686|g' -i config.mak
|
||||
make
|
||||
}
|
||||
|
||||
package_mplayer() {
|
||||
pkgdesc="Free and libre media player"
|
||||
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
|
||||
depends=('desktop-file-utils' 'ttf-font' 'enca' 'libxss' 'a52dec'
|
||||
'x264' 'libmng' 'libdca' 'aalib' 'libxinerama'
|
||||
'jack' 'libmad' 'libcaca' 'libxxf86dga' 'faad2' 'libxvmc' 'mpg123'
|
||||
'libcdio-paranoia' 'libdvdnav' 'ffmpeg')
|
||||
|
||||
cd MPlayer-${pkgver}
|
||||
make DESTDIR="${pkgdir}" install-mplayer install-mplayer-man
|
||||
|
||||
install -Dm 644 etc/{codecs.conf,input.conf,example.conf} "${pkgdir}/etc/mplayer"
|
||||
install -Dm 644 "${srcdir}/mplayer.desktop" -t "${pkgdir}/usr/share/applications"
|
||||
install -Dm 644 etc/mplayer256x256.png "${pkgdir}/usr/share/pixmaps/mplayer.png"
|
||||
|
||||
install -Dm644 "${srcdir}/MPlayer-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/$pkgname"
|
||||
}
|
||||
|
||||
package_mencoder() {
|
||||
pkgdesc="Free and libre command line video decoding, encoding and filtering tool"
|
||||
depends=('enca' 'a52dec' 'x264' 'libmng' 'libdca' 'libmad'
|
||||
'faad2' 'mpg123' 'libcdio-paranoia' 'libdvdnav' 'ffmpeg')
|
||||
|
||||
make -C MPlayer-${pkgver} DESTDIR="${pkgdir}" install-mencoder install-mencoder-man
|
||||
find "${pkgdir}/usr/share/man" -name mplayer.1 -exec rename mplayer.1 mencoder.1 {} +
|
||||
|
||||
install -Dm644 "${srcdir}/MPlayer-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/$pkgname"
|
||||
}
|
||||
19
mplayer/fix-libmpcodecs-ad_spdif_ffmpeg44.patch
Normal file
19
mplayer/fix-libmpcodecs-ad_spdif_ffmpeg44.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
--- a/libmpcodecs/ad_spdif.c 2016-03-06 08:00:49.000000000 -0500
|
||||
+++ b/libmpcodecs/ad_spdif.c 2021-09-09 10:22:49.000000000 -0400
|
||||
@@ -298,14 +298,8 @@
|
||||
if (spdif_ctx->header_written)
|
||||
av_write_trailer(lavf_ctx);
|
||||
av_freep(&lavf_ctx->pb);
|
||||
- if (lavf_ctx->streams) {
|
||||
- av_freep(&lavf_ctx->streams[0]->codec);
|
||||
- av_freep(&lavf_ctx->streams[0]->info);
|
||||
- av_freep(&lavf_ctx->streams[0]);
|
||||
- }
|
||||
- av_freep(&lavf_ctx->streams);
|
||||
- av_freep(&lavf_ctx->priv_data);
|
||||
+ avformat_free_context(lavf_ctx);
|
||||
+ lavf_ctx = NULL;
|
||||
}
|
||||
- av_freep(&lavf_ctx);
|
||||
av_freep(&spdif_ctx);
|
||||
}
|
||||
22
mplayer/mplayer.desktop
Normal file
22
mplayer/mplayer.desktop
Normal file
@@ -0,0 +1,22 @@
|
||||
[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 %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;
|
||||
X-KDE-Protocols=http,ftp,smb
|
||||
66
mplayer/revert-icl-fixes.patch
Normal file
66
mplayer/revert-icl-fixes.patch
Normal file
@@ -0,0 +1,66 @@
|
||||
Index: libmpcodecs/vf_fspp.c
|
||||
===================================================================
|
||||
--- libmpcodecs/vf_fspp.c (revision 37183)
|
||||
+++ libmpcodecs/vf_fspp.c (revision 37181)
|
||||
@@ -1598,10 +1598,6 @@
|
||||
|
||||
: "+S"(data), "+D"(output), "+c"(cnt), "=o"(temps)
|
||||
: "d"(thr_adr)
|
||||
- NAMED_CONSTRAINTS_ADD(ff_MM_FIX_0_707106781,MM_2,MM_FIX_1_414213562_A,MM_FIX_1_414213562,MM_FIX_0_382683433,
|
||||
- ff_MM_FIX_0_541196100,MM_FIX_1_306562965,MM_FIX_0_847759065)
|
||||
- NAMED_CONSTRAINTS_ADD(MM_FIX_0_566454497,MM_FIX_0_198912367,MM_FIX_2_613125930,MM_FIX_1_847759065,
|
||||
- MM_FIX_1_082392200)
|
||||
: "%"REG_a
|
||||
);
|
||||
}
|
||||
@@ -1871,8 +1867,6 @@
|
||||
|
||||
: "+S"(workspace), "+D"(output_adr), "+c"(cnt), "=o"(temps)
|
||||
: "a"(output_stride*sizeof(short))
|
||||
- NAMED_CONSTRAINTS_ADD(MM_FIX_1_414213562_A,MM_FIX_2_613125930,MM_FIX_1_847759065,MM_FIX_1_082392200,
|
||||
- MM_FIX_1_414213562,MM_DESCALE_RND)
|
||||
: "%"REG_d
|
||||
);
|
||||
}
|
||||
@@ -1980,10 +1974,10 @@
|
||||
"movd (%%"REG_S",%%"REG_a",2), %%mm3 \n\t" //5
|
||||
"paddw %%mm4, %%mm1 \n\t"
|
||||
|
||||
- "movq %%mm5, %3 \n\t" //t7
|
||||
+ "movq %%mm5, 0*8+%3 \n\t" //t7
|
||||
"punpcklbw %%mm7, %%mm3 \n\t"
|
||||
|
||||
- "movq %%mm6, %4 \n\t" //t6
|
||||
+ "movq %%mm6, 1*8+%3 \n\t" //t6
|
||||
"movq %%mm2, %%mm4 \n\t"
|
||||
|
||||
"movd (%%"REG_S"), %%mm5 \n\t" //3
|
||||
@@ -2029,7 +2023,7 @@
|
||||
"psubw %%mm1, %%mm5 \n\t" //d1
|
||||
"movq %%mm0, %%mm6 \n\t"
|
||||
|
||||
- "movq %4, %%mm1 \n\t"
|
||||
+ "movq 1*8+%3, %%mm1 \n\t"
|
||||
"punpcklwd %%mm5, %%mm0 \n\t"
|
||||
|
||||
"punpckhwd %%mm5, %%mm6 \n\t"
|
||||
@@ -2053,7 +2047,7 @@
|
||||
"movq %%mm7, "DCTSIZE_S"*3*2(%%"REG_D") \n\t"
|
||||
"psllw $2, %%mm3 \n\t" //t10
|
||||
|
||||
- "movq %3, %%mm2 \n\t"
|
||||
+ "movq 0*8+%3, %%mm2 \n\t"
|
||||
"psllw $2, %%mm4 \n\t" //t11
|
||||
|
||||
"pmulhw "MANGLE(MM_FIX_0_707106781)", %%mm4 \n\t" //z3
|
||||
@@ -2116,9 +2110,8 @@
|
||||
"dec %%"REG_c" \n\t"
|
||||
"jnz 6b \n\t"
|
||||
|
||||
- : "+S"(pixels), "+D"(data), "+c"(cnt), "=o"(temps), "=o"(temps[1])
|
||||
+ : "+S"(pixels), "+D"(data), "+c"(cnt), "=o"(temps)
|
||||
: "a"(line_size)
|
||||
- NAMED_CONSTRAINTS_ADD(ff_MM_FIX_0_707106781,ff_MM_FIX_0_541196100,MM_FIX_0_382683433,MM_FIX_1_306562965)
|
||||
: "%"REG_d);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user