2017-01-23 00:18:18 +01:00
|
|
|
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"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2019-02-24 18:23:19 +01:00
|
|
|
TERMUX_PKG_VERSION=20190215
|
|
|
|
TERMUX_PKG_SHA256=731c26a106dd97509feaaba2e6b57b27c754031d48186af6e1474cc0e1eee582
|
2017-11-02 01:41:22 +01:00
|
|
|
TERMUX_PKG_SRCURL=http://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-${TERMUX_PKG_VERSION}-2245-stable.tar.bz2
|
2017-01-23 00:53:27 +01:00
|
|
|
# Avoid linking against ffmpeg libraries to avoid circular dependency:
|
2017-01-28 16:39:37 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
2017-01-23 00:53:27 +01:00
|
|
|
--disable-swscale
|
|
|
|
--disable-lavf"
|
2016-09-01 13:26:46 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_pre_configure() {
|
2017-01-23 00:18:18 +01:00
|
|
|
#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
|
2017-01-23 00:53:27 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-asm"
|
2017-11-15 22:33:36 +01:00
|
|
|
# Avoid errors such as "relocation R_386_GOTOFF against preemptible symbol
|
|
|
|
# x264_significant_coeff_flag_offset cannot be used when making a shared object":
|
|
|
|
LDFLAGS+=" -fuse-ld=bfd"
|
2017-01-23 00:18:18 +01:00
|
|
|
elif [ $TERMUX_ARCH = "x86_64" ]; then
|
2018-02-12 15:20:41 +01:00
|
|
|
# Avoid requiring nasm for now:
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-asm"
|
2016-09-01 13:26:46 +02:00
|
|
|
fi
|
|
|
|
}
|