#This installs the Android NDK (Native Development Kit)
#which is needed for the compilation of C/C++ code into the 
#native architecture of the Android device.

#The android-ndk-r7b-darwin-x86.tar.bz2 dummy.tar.bz2 file was downloaded 
#from the android developer website: 

#Cleanup the install
rm -rf install
rm -rf $ANDROID_DIR/arm-linux-android-4.0

# Install Android SDK and NDK.
cp android-ndk-r7b-darwin-x86.tar.bz2 dummy.tar.bz2
bunzip2 dummy.tar.bz2
tar -xvf dummy.tar
rm -rf dummy.tar dummy.tar.bz2

#Move to install
mv android-ndk-r7b install

#Create Standalone Development Directory
$ANDROID_NDK_DIR/build/tools/make-standalone-toolchain.sh --platform=android-5 --install-dir=$ANDROID_DIR/arm-linux-android-4.0
