termux-packages/packages/libx264/build.sh

21 lines
893 B
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=https://www.videolan.org/developers/x264.html
2015-06-13 01:03:31 +02:00
TERMUX_PKG_DESCRIPTION="Library for encoding video streams into the H.264/MPEG-4 AVC format"
TERMUX_PKG_VERSION=20170122
TERMUX_PKG_SRCURL=ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-${TERMUX_PKG_VERSION}-2245-stable.tar.bz2
TERMUX_PKG_SHA256=f833239a2ff81629242b1137c797e670516a3af7ce79e6bb7ef234a3e60fd8fd
# Avoid linking against ffmpeg libraries to avoid circular dependency:
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="\
--disable-swscale
--disable-lavf"
2016-09-01 13:26:46 +02:00
termux_step_pre_configure () {
#if [ $TERMUX_ARCH = "i686" -o $TERMUX_ARCH = "x86_64" ]; then
if [ $TERMUX_ARCH = "i686" ]; then
# Avoid text relocations on i686, see:
2016-09-01 13:26:46 +02:00
# https://mailman.videolan.org/pipermail/x264-devel/2016-March/011589.html
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-asm"
elif [ $TERMUX_ARCH = "x86_64" ]; then
AS=yasm
2016-09-01 13:26:46 +02:00
fi
}