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"
|
2016-03-08 01:54:57 +01:00
|
|
|
TERMUX_PKG_VERSION=11.6
|
2016-05-04 14:54:30 +02:00
|
|
|
TERMUX_PKG_BUILD_REVISION=4
|
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:
|
2016-03-16 19:28:30 +01:00
|
|
|
TERMUX_PKG_DEPENDS="openssl, libbz2, libx264, xvidcore, libvorbis, libfaac, libmp3lame"
|
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
|
2016-03-25 02:42:59 +01:00
|
|
|
|
|
|
|
# Specify --disable-asm to prevent text relocations on i686,
|
|
|
|
# see https://trac.ffmpeg.org/ticket/4928
|
|
|
|
# For libav we do it also for arm and aarch64 since text
|
|
|
|
# relocations happens there as well (while ffmpeg doesn't
|
|
|
|
# create text relocations even with asm for those).
|
|
|
|
local _EXTRA_CONFIGURE_FLAGS="--disable-asm"
|
|
|
|
|
2015-06-13 01:03:31 +02:00
|
|
|
if [ $TERMUX_ARCH = "arm" ]; then
|
|
|
|
_ARCH="armeabi-v7a"
|
|
|
|
elif [ $TERMUX_ARCH = "i686" ]; then
|
|
|
|
_ARCH="x86"
|
2016-03-25 02:42:59 +01:00
|
|
|
elif [ $TERMUX_ARCH = "aarch64" ]; then
|
2015-12-12 02:10:10 +01:00
|
|
|
_ARCH=$TERMUX_ARCH
|
2016-03-25 02:42:59 +01:00
|
|
|
else
|
|
|
|
echo "Unsupported arch $TERMUX_ARCH"
|
|
|
|
exit 1
|
2015-06-13 01:03:31 +02:00
|
|
|
fi
|
2016-03-25 02:42:59 +01:00
|
|
|
|
2015-06-13 01:03:31 +02:00
|
|
|
$TERMUX_PKG_SRCDIR/configure \
|
|
|
|
--arch=${_ARCH} \
|
|
|
|
--cross-prefix=${TERMUX_HOST_PLATFORM}- \
|
|
|
|
--disable-avdevice \
|
|
|
|
--disable-avserver \
|
|
|
|
--disable-static \
|
|
|
|
--disable-symver \
|
|
|
|
--enable-cross-compile \
|
|
|
|
--enable-gpl \
|
2016-03-16 19:28:30 +01:00
|
|
|
--enable-libmp3lame \
|
2015-06-13 01:03:31 +02:00
|
|
|
--enable-libfaac \
|
|
|
|
--enable-libvorbis \
|
|
|
|
--enable-libx264 \
|
|
|
|
--enable-libxvid \
|
|
|
|
--enable-nonfree \
|
|
|
|
--enable-openssl \
|
|
|
|
--enable-shared \
|
|
|
|
--prefix=$TERMUX_PREFIX \
|
2016-03-25 02:42:59 +01:00
|
|
|
--target-os=linux \
|
|
|
|
$_EXTRA_CONFIGURE_FLAGS
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|
|
|
|
|