From 378661c70391ef554bfef6ec029b50798180c9c9 Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Sun, 21 Jul 2019 15:38:21 +0300 Subject: [PATCH] mpv: add glib and lzma libraries to preloading Issue: https://github.com/termux/termux-packages/issues/4041. --- packages/mpv/build.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/mpv/build.sh b/packages/mpv/build.sh index a7b6220c7..212fdeae6 100644 --- a/packages/mpv/build.sh +++ b/packages/mpv/build.sh @@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://mpv.io/ TERMUX_PKG_DESCRIPTION="Command-line media player" TERMUX_PKG_LICENSE="GPL-3.0" TERMUX_PKG_VERSION=0.29.1 -TERMUX_PKG_REVISION=5 +TERMUX_PKG_REVISION=6 TERMUX_PKG_SRCURL=https://github.com/mpv-player/mpv/archive/v${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SHA256=f9f9d461d1990f9728660b4ccb0e8cb5dce29ccaa6af567bec481b79291ca623 TERMUX_PKG_DEPENDS="ffmpeg, libandroid-glob, libandroid-support, libcaca, libiconv, liblua52, libpulseaudio, openal-soft" @@ -53,12 +53,12 @@ termux_step_make_install() { # Work around issues on devices having ffmpeg libraries # in a system vendor dir, reported by live_the_dream on #termux: - local FFMPEG_LIBS="" lib - for lib in avcodec avfilter avformat avutil postproc swresample swscale; do - if [ -n "$FFMPEG_LIBS" ]; then FFMPEG_LIBS+=":"; fi - FFMPEG_LIBS+="$TERMUX_PREFIX/lib/lib${lib}.so" + local PRELOAD_LIBS="" lib + for lib in lzma glib-2.0 avcodec avfilter avformat avutil postproc swresample swscale; do + if [ -n "$PRELOAD_LIBS" ]; then PRELOAD_LIBS+=":"; fi + PRELOAD_LIBS+="$TERMUX_PREFIX/lib/lib${lib}.so" done - echo "export LD_PRELOAD=$FFMPEG_LIBS" >> $TERMUX_PREFIX/bin/mpv + echo "export LD_PRELOAD=$PRELOAD_LIBS" >> $TERMUX_PREFIX/bin/mpv # /system/vendor/lib(64) needed for libqc-opt.so on # a xperia z5 c, reported by BrainDamage on #termux: