libav: Update from 11.6 to 11.7
[termux-packages] / packages / libav / build.sh
CommitLineData
59f0d218
FF
1TERMUX_PKG_HOMEPAGE=http://libav.org/
2TERMUX_PKG_DESCRIPTION="Tools and libraries to manipulate a wide range of multimedia formats and protocols"
2957edf5 3TERMUX_PKG_VERSION=11.7
59f0d218
FF
4TERMUX_PKG_SRCURL=http://libav.org/releases/libav-${TERMUX_PKG_VERSION}.tar.xz
5# libbz2 is used by matroska decoder:
bc0596c1 6TERMUX_PKG_DEPENDS="openssl, libbz2, libx264, xvidcore, libvorbis, libfaac, libmp3lame"
9da06063 7TERMUX_PKG_CONFLICTS="ffmpeg"
59f0d218
FF
8
9termux_step_configure () {
10 cd $TERMUX_PKG_BUILDDIR
a5be0489
FF
11
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"
18
59f0d218
FF
19 if [ $TERMUX_ARCH = "arm" ]; then
20 _ARCH="armeabi-v7a"
21 elif [ $TERMUX_ARCH = "i686" ]; then
22 _ARCH="x86"
d72c0a31 23 elif [ $TERMUX_ARCH = "aarch64" -o $TERMUX_ARCH = "x86_64" ]; then
9da06063 24 _ARCH=$TERMUX_ARCH
a5be0489
FF
25 else
26 echo "Unsupported arch $TERMUX_ARCH"
27 exit 1
59f0d218 28 fi
a5be0489 29
59f0d218
FF
30 $TERMUX_PKG_SRCDIR/configure \
31 --arch=${_ARCH} \
32 --cross-prefix=${TERMUX_HOST_PLATFORM}- \
59f0d218
FF
33 --disable-avdevice \
34 --disable-avserver \
35 --disable-static \
36 --disable-symver \
37 --enable-cross-compile \
38 --enable-gpl \
bc0596c1 39 --enable-libmp3lame \
59f0d218
FF
40 --enable-libfaac \
41 --enable-libvorbis \
42 --enable-libx264 \
43 --enable-libxvid \
44 --enable-nonfree \
45 --enable-openssl \
46 --enable-shared \
47 --prefix=$TERMUX_PREFIX \
a5be0489
FF
48 --target-os=linux \
49 $_EXTRA_CONFIGURE_FLAGS
59f0d218
FF
50}
51