chiark / gitweb /
Introduce a scripts/ folder
[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=3
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 TERMUX_PKG_CONFLICTS="ffmpeg"
9
10 termux_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-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