Initial push
[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.3
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
8 termux_step_configure () {
9 cd $TERMUX_PKG_BUILDDIR
10 if [ $TERMUX_ARCH = "arm" ]; then
11 _ARCH="armeabi-v7a"
12 elif [ $TERMUX_ARCH = "i686" ]; then
13 _ARCH="x86"
14 else
15 echo "Unsupported arch: $TERMUX_ARCH"
16 exit 1
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