| 1 | TERMUX_PKG_HOMEPAGE=https://www.videolan.org/developers/x264.html |
| 2 | TERMUX_PKG_DESCRIPTION="Library for encoding video streams into the H.264/MPEG-4 AVC format" |
| 3 | TERMUX_PKG_VERSION=20170714 |
| 4 | TERMUX_PKG_SRCURL=ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-${TERMUX_PKG_VERSION}-2245-stable.tar.bz2 |
| 5 | TERMUX_PKG_SHA256=5ac659849dbf11935a236910730768b7efca6d61e967dbefbb62b5f8108ac033 |
| 6 | # Avoid linking against ffmpeg libraries to avoid circular dependency: |
| 7 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" |
| 8 | --disable-swscale |
| 9 | --disable-lavf" |
| 10 | |
| 11 | termux_step_pre_configure () { |
| 12 | #if [ $TERMUX_ARCH = "i686" -o $TERMUX_ARCH = "x86_64" ]; then |
| 13 | if [ $TERMUX_ARCH = "i686" ]; then |
| 14 | # Avoid text relocations on i686, see: |
| 15 | # https://mailman.videolan.org/pipermail/x264-devel/2016-March/011589.html |
| 16 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-asm" |
| 17 | elif [ $TERMUX_ARCH = "x86_64" ]; then |
| 18 | AS=yasm |
| 19 | fi |
| 20 | } |