
The compilation of the FFmpeg library for the Android Orange Radio
application has been tested on MacOS-X and Ubuntu systems. It may work on
other systems, but it has not been tested.

1- Download and install Android NDK r5b. You can use one of the
   following links:
     http://dl.google.com/android/ndk/android-ndk-r5b-darwin-x86.tar.bz2

2- Extract the provided archive

3- Copy the provided build_android.sh file into the OrangePlayer/jni/ffmpeg-0.8.15 directory

4- Open & set the variable "NDK" located in script "build_android.sh" according to the Android NDK r5b installation directory

6- Run the provided script "build_android.sh" to compile FFmpeg for Android for each ARM achitecture ; comment or uncomment the following lines, depending on the required ARM architecture:

#arm v7vfpv3
CPU=armv7-a
OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=vfpv3-d16 -marm -march=$CPU "
PREFIX=./android/$CPU
ADDITIONAL_CONFIGURE_FLAG=

# #arm v6
# CPU=armv6
# OPTIMIZE_CFLAGS="-marm -march=$CPU"
# PREFIX=./android/$CPU 
# ADDITIONAL_CONFIGURE_FLAG=


7- At the end of the compilation, the FFmpeg library should have been created into the OrangePlayer/jni/ffmpeg-0.8.15 directory/android/arm<ARM-arch>/ directories.
