termux-packages/packages/libav/build.sh

41 lines
1.1 KiB
Bash
Raw Normal View History

2015-06-13 01:03:31 +02:00
TERMUX_PKG_HOMEPAGE=http://libav.org/
TERMUX_PKG_DESCRIPTION="Tools and libraries to manipulate a wide range of multimedia formats and protocols"
2015-06-28 23:17:06 +02:00
TERMUX_PKG_VERSION=11.4
2015-12-16 02:13:43 +01:00
TERMUX_PKG_BUILD_REVISION=3
2015-06-13 01:03:31 +02:00
TERMUX_PKG_SRCURL=http://libav.org/releases/libav-${TERMUX_PKG_VERSION}.tar.xz
# libbz2 is used by matroska decoder:
TERMUX_PKG_DEPENDS="openssl, libbz2, libx264, xvidcore, libvorbis, libfaac"
2015-12-12 02:10:10 +01:00
TERMUX_PKG_CONFLICTS="ffmpeg"
2015-06-13 01:03:31 +02:00
termux_step_configure () {
cd $TERMUX_PKG_BUILDDIR
if [ $TERMUX_ARCH = "arm" ]; then
_ARCH="armeabi-v7a"
elif [ $TERMUX_ARCH = "i686" ]; then
_ARCH="x86"
else
2015-12-12 02:10:10 +01:00
_ARCH=$TERMUX_ARCH
2015-06-13 01:03:31 +02:00
fi
# --disable-asm to prevent text relocations
$TERMUX_PKG_SRCDIR/configure \
--arch=${_ARCH} \
--cross-prefix=${TERMUX_HOST_PLATFORM}- \
--disable-asm \
--disable-avdevice \
--disable-avserver \
--disable-static \
--disable-symver \
--enable-cross-compile \
--enable-gpl \
--enable-libfaac \
--enable-libvorbis \
--enable-libx264 \
--enable-libxvid \
--enable-nonfree \
--enable-openssl \
--enable-shared \
--prefix=$TERMUX_PREFIX \
--target-os=linux
}