Misc (re #2147): Fixed configure-android script failure to parse NDK version on MacOSX.

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6019 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Nanang Izzuddin 2019-05-31 06:08:47 +00:00
parent 62fae52a43
commit 4cd8ae3df2
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ if test "x${ANDROID_NDK_ROOT}" = "x" || test ! -e ${ANDROID_NDK_ROOT}; then
exit 0
fi
NDK_VER=`sed -n -e 's/.*Pkg.Revision *= *\([0-9]\+\).*/\1/p' ${ANDROID_NDK_ROOT}/source.properties`
# The BRE version somehow does not work well on MacOSX
#NDK_VER=`sed -n -e 's/.*Pkg.Revision *= *\([0-9]\+\).*/\1/p' ${ANDROID_NDK_ROOT}/source.properties`
NDK_VER=`sed -n -E 's/^Pkg.Revision *= *([0-9]+).*/\1/p' ${ANDROID_NDK_ROOT}/source.properties`
if test "x$APP_PLATFORM" = "x"; then
APP_PLATFORM=`ls ${ANDROID_NDK_ROOT}/platforms/ | sed 's/android-//' | sort -gr | head -1`