]> git.sesse.net Git - vlc/blob - contrib/src/vpx/libvpx-mac.patch
contrib: fixed libvpx compilation with Xcode 4.3 and later
[vlc] / contrib / src / vpx / libvpx-mac.patch
1 libvpx's configure script hard-codes the SDK location of previous Xcode release in the /Developer folder. However, starting with Xcode 4.3, the SDKs moved to /Applications/Xcode.app/blabla
2 VLC's contrib system is clever enough to detect this, but libvpx fails miserably. However, they are providing a work-around for iOS and Android, which is expanded by this patch.
3
4 diff -ru libvpx/build/make/configure.sh libvpx/build/make/configure.sh
5 --- libvpx/build/make/configure.sh      2012-06-08 10:26:47.000000000 +0200
6 +++ libvpx-fixed/build/make/configure.sh        2012-06-08 10:26:07.000000000 +0200
7 @@ -628,6 +628,9 @@
8      if [ -d "/Developer/SDKs/MacOSX10.7.sdk" ]; then
9          osx_sdk_dir="/Developer/SDKs/MacOSX10.7.sdk"
10      fi
11 +    if [ -d "${sdk_path}" ]; then
12 +        osx_sdk_dir=${sdk_path}
13 +    fi
14  
15      case ${toolchain} in
16          *-darwin8-*)