libav: Update from 11.4 to 11.6
[termux-packages] / packages / libav / build.sh
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.6
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"
7 TERMUX_PKG_CONFLICTS="ffmpeg"
8
9 termux_step_configure () {
10 cd $TERMUX_PKG_BUILDDIR
11 if [ $TERMUX_ARCH = "arm" ]; then
12 _ARCH="armeabi-v7a"
13 elif [ $TERMUX_ARCH = "i686" ]; then
14 _ARCH="x86"
15 else
16 _ARCH=$TERMUX_ARCH
17 fi
18 # --disable-asm to prevent text relocations
19 $TERMUX_PKG_SRCDIR/configure \
20 --arch=${_ARCH} \
21 --cross-prefix=${TERMUX_HOST_PLATFORM}- \
22 --disable-asm \
23 --disable-avdevice \
24 --disable-avserver \
25 --disable-static \
26 --disable-symver \
27 --enable-cross-compile \
28 --enable-gpl \
29 --enable-libfaac \
30 --enable-libvorbis \
31 --enable-libx264 \
32 --enable-libxvid \
33 --enable-nonfree \
34 --enable-openssl \
35 --enable-shared \
36 --prefix=$TERMUX_PREFIX \
37 --target-os=linux
38 }
39