wget: Update from 1.17 to 1.17.1
[termux-packages] / disabled-packages / ffmpeg / build.sh
CommitLineData
351bc9db
FF
1TERMUX_PKG_HOMEPAGE=https://www.ffmpeg.org/
2TERMUX_PKG_DESCRIPTION="Tools and libraries to manipulate a wide range of multimedia formats and protocols"
3TERMUX_PKG_VERSION=2.8.3
4TERMUX_PKG_SRCURL=https://github.com/FFmpeg/FFmpeg/archive/n${TERMUX_PKG_VERSION}.tar.gz
5TERMUX_PKG_FOLDERNAME=FFmpeg-n$TERMUX_PKG_VERSION
6# libbz2 is used by matroska decoder:
7TERMUX_PKG_DEPENDS="openssl, libbz2, libx264, xvidcore, libvorbis, libfaac"
8TERMUX_PKG_INCLUDE_IN_DEVPACKAGE="share/ffmpeg/examples"
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
17 _ARCH=$TERMUX_ARCH
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-ffserver \
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