diff options
Diffstat (limited to 'user/mplayer')
-rw-r--r-- | user/mplayer/APKBUILD | 18 | ||||
-rw-r--r-- | user/mplayer/ldt.patch | 11 |
2 files changed, 25 insertions, 4 deletions
diff --git a/user/mplayer/APKBUILD b/user/mplayer/APKBUILD index 8f703f637..4324b3565 100644 --- a/user/mplayer/APKBUILD +++ b/user/mplayer/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house> pkgname=mplayer pkgver=1.4 -pkgrel=1 +pkgrel=2 pkgdesc="Open-source media player and ripper" url="https://mplayerhq.hu" arch="all" @@ -21,15 +21,24 @@ makedepends="yasm ncurses-dev openssl-dev freetype-dev fribidi-dev cdparanoia-dev libbluray-dev a52dec-dev " subpackages="$pkgname-doc" -source="http://mplayerhq.hu/MPlayer/releases/MPlayer-$pkgver.tar.xz" +source="http://mplayerhq.hu/MPlayer/releases/MPlayer-$pkgver.tar.xz + ldt.patch + " builddir="$srcdir/MPlayer-$pkgver" build() { + _extra_conf="" + case $CTARGET_ARCH in + pmmx) _extra_conf="--disable-sse2 --disable-sse4 --disable-qtx";; + esac + ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ --confdir=/etc/mplayer \ - --disable-ffmpeg_a + --disable-ffmpeg_a \ + --enable-debug=3 \ + $_extra_conf make } @@ -38,4 +47,5 @@ package() { rm -r "$pkgdir/etc" } -sha512sums="8ef71cad187d8c8f81c837279bd3a421b440c892d3347a667670b21c954007e35cf0d15828f0901f347b9c1b053e8da4bc7f0fb6de34382d1e463074923d7b34 MPlayer-1.4.tar.xz" +sha512sums="8ef71cad187d8c8f81c837279bd3a421b440c892d3347a667670b21c954007e35cf0d15828f0901f347b9c1b053e8da4bc7f0fb6de34382d1e463074923d7b34 MPlayer-1.4.tar.xz +07efeaf1294fb3f0a4d8dd9885641ee919c17e93e1ada505c825645e1f04d18f615fbd0318e0cc09231b67881b18847e853b434f5d8164bd3178ab220c4523df ldt.patch" diff --git a/user/mplayer/ldt.patch b/user/mplayer/ldt.patch new file mode 100644 index 000000000..6ae5456bc --- /dev/null +++ b/user/mplayer/ldt.patch @@ -0,0 +1,11 @@ +--- MPlayer-1.4/loader/ldt_keeper.c.old 2013-03-23 14:48:22.000000000 +0000 ++++ MPlayer-1.4/loader/ldt_keeper.c 2020-07-06 21:22:30.344206427 +0000 +@@ -214,7 +214,7 @@ + array.limit_in_pages=0; + #ifdef __linux__ + //ret=LDT_Modify(0x1, &array, sizeof(struct modify_ldt_ldt_s)); +- ret=modify_ldt(0x1, &array, sizeof(struct modify_ldt_ldt_s)); ++ ret=syscall(__NR_modify_ldt, 0x1, &array, sizeof(struct modify_ldt_ldt_s)); + if(ret<0) + { + perror("install_fs"); |