1 TERMUX_PKG_HOMEPAGE=http://libav.org/
2 TERMUX_PKG_DESCRIPTION="Tools and libraries to manipulate a wide range of multimedia formats and protocols"
3 TERMUX_PKG_VERSION=11.7
4 TERMUX_PKG_SRCURL=http://libav.org/releases/libav-${TERMUX_PKG_VERSION}.tar.xz
5 # libbz2 is used by matroska decoder:
6 TERMUX_PKG_DEPENDS="openssl, libbz2, libx264, xvidcore, libvorbis, libfaac, libmp3lame"
7 TERMUX_PKG_CONFLICTS="ffmpeg"
9 termux_step_configure () {
10 cd $TERMUX_PKG_BUILDDIR
12 # Specify --disable-asm to prevent text relocations on i686,
13 # see https://trac.ffmpeg.org/ticket/4928
14 # For libav we do it also for arm and aarch64 since text
15 # relocations happens there as well (while ffmpeg doesn't
16 # create text relocations even with asm for those).
17 local _EXTRA_CONFIGURE_FLAGS="--disable-asm"
19 if [ $TERMUX_ARCH = "arm" ]; then
21 elif [ $TERMUX_ARCH = "i686" ]; then
23 elif [ $TERMUX_ARCH = "aarch64" -o $TERMUX_ARCH = "x86_64" ]; then
26 echo "Unsupported arch $TERMUX_ARCH"
30 $TERMUX_PKG_SRCDIR/configure \
32 --cross-prefix=${TERMUX_HOST_PLATFORM}- \
37 --enable-cross-compile \
47 --prefix=$TERMUX_PREFIX \
49 $_EXTRA_CONFIGURE_FLAGS