Remove DT_VERDEF and DT_VERDEFNUM elf entries
[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.4
4 TERMUX_PKG_BUILD_REVISION=1
5 TERMUX_PKG_SRCURL=http://libav.org/releases/libav-${TERMUX_PKG_VERSION}.tar.xz
6 # libbz2 is used by matroska decoder:
7 TERMUX_PKG_DEPENDS="openssl, libbz2, libx264, xvidcore, libvorbis, libfaac"
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 echo "Unsupported arch: $TERMUX_ARCH"
17 exit 1
18 fi
19 # --disable-asm to prevent text relocations
20 $TERMUX_PKG_SRCDIR/configure \
21 --arch=${_ARCH} \
22 --cross-prefix=${TERMUX_HOST_PLATFORM}- \
23 --disable-asm \
24 --disable-avdevice \
25 --disable-avserver \
26 --disable-static \
27 --disable-symver \
28 --enable-cross-compile \
29 --enable-gpl \
30 --enable-libfaac \
31 --enable-libvorbis \
32 --enable-libx264 \
33 --enable-libxvid \
34 --enable-nonfree \
35 --enable-openssl \
36 --enable-shared \
37 --prefix=$TERMUX_PREFIX \
38 --target-os=linux
39 }
40