npapi-vlc | branch: master | Felix Paul Kühne <[email protected]> | Thu Jan 3 21:10:28 2013 +0100| [5e6d74cc1c9fa21cbf60cedf1f5803b2a747cc04] | committer: Felix Paul Kühne
extras/mac: fix compilation if SDK is not stored in default location Note that there is nothing wrong with execution on 10.6 if linked against the 10.7 SDK as long as the minimal macosx version is specified correctly > http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=5e6d74cc1c9fa21cbf60cedf1f5803b2a747cc04 --- extras/macosx/build-vlc.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/extras/macosx/build-vlc.sh b/extras/macosx/build-vlc.sh index 12885bb..dfe4e9c 100755 --- a/extras/macosx/build-vlc.sh +++ b/extras/macosx/build-vlc.sh @@ -1,5 +1,8 @@ #!/bin/sh +OSX_VERSION="10.7" +SDKROOT=`xcode-select -print-path`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$OSX_VERSION.sdk + set -e usage() @@ -60,6 +63,9 @@ if [ "x$1" != "x" ]; then exit 1 fi +export OSX_VERSION +export SDKROOT + # Get root dir spushd . npapi_root_dir=`pwd` @@ -127,7 +133,6 @@ cd 64build --disable-macosx \ --enable-merge-ffmpeg \ --disable-growl \ - --enable-minimal-macosx \ --enable-faad \ --enable-flac \ --enable-theora \ @@ -152,7 +157,7 @@ cd 64build --disable-sdl \ --disable-sdl-image \ --disable-macosx-vlc-app \ - --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk \ + --with-macosx-sdk=$SDKROOT \ --with-macosx-version-min=10.6 \ --prefix=${PREFIX} > ${out} _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
