ffmpeg&libav: Enable libmp3lame (closes #170)
[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"
4f367c6e 3TERMUX_PKG_VERSION=11.6
bc0596c1 4TERMUX_PKG_BUILD_REVISION=1
59f0d218
FF
5TERMUX_PKG_SRCURL=http://libav.org/releases/libav-${TERMUX_PKG_VERSION}.tar.xz
6# libbz2 is used by matroska decoder:
bc0596c1 7TERMUX_PKG_DEPENDS="openssl, libbz2, libx264, xvidcore, libvorbis, libfaac, libmp3lame"
9da06063 8TERMUX_PKG_CONFLICTS="ffmpeg"
59f0d218
FF
9
10termux_step_configure () {
11 cd $TERMUX_PKG_BUILDDIR
12 if [ $TERMUX_ARCH = "arm" ]; then
13 _ARCH="armeabi-v7a"
14 elif [ $TERMUX_ARCH = "i686" ]; then
15 _ARCH="x86"
16 else
9da06063 17 _ARCH=$TERMUX_ARCH
59f0d218
FF
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 \
bc0596c1 30 --enable-libmp3lame \
59f0d218
FF
31 --enable-libfaac \
32 --enable-libvorbis \
33 --enable-libx264 \
34 --enable-libxvid \
35 --enable-nonfree \
36 --enable-openssl \
37 --enable-shared \
38 --prefix=$TERMUX_PREFIX \
39 --target-os=linux
40}
41