X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/59f0d218a6ff34c80cf898f6d7ac62555ba8eb11..bd3e679c7da5ab81ed37809b1b87ed057fa68562:/packages/libx264/build.sh diff --git a/packages/libx264/build.sh b/packages/libx264/build.sh index c1337bb9..97335ea7 100644 --- a/packages/libx264/build.sh +++ b/packages/libx264/build.sh @@ -1,7 +1,13 @@ TERMUX_PKG_HOMEPAGE=http://www.videolan.org/developers/x264.html TERMUX_PKG_DESCRIPTION="Library for encoding video streams into the H.264/MPEG-4 AVC format" -TERMUX_PKG_VERSION="20141218-2245" -# NOTE: Switched from official ftp://ftp.videolan.org/ on 2014-12-21 since it was down: -TERMUX_PKG_SRCURL=http://mirror.yandex.ru/mirrors/ftp.videolan.org/x264/snapshots/x264-snapshot-${TERMUX_PKG_VERSION}-stable.tar.bz2 -# Avoid text relocations: -TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-asm" +TERMUX_PKG_VERSION="20160503-2245" +TERMUX_PKG_SRCURL=ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-${TERMUX_PKG_VERSION}.tar.bz2 + +termux_step_pre_configure () { + if [ $TERMUX_ARCH = "i686" -o $TERMUX_ARCH = "x86_64" ]; then + # Avoid text relocations. Only needed on i686, see: + # https://mailman.videolan.org/pipermail/x264-devel/2016-March/011589.html + # Also disable on x86_64 for now due to build errors. + TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-asm" + fi +}