]> git.sesse.net Git - vlc/blobdiff - contrib/bootstrap
Remove broken message
[vlc] / contrib / bootstrap
index 78b6f49d229439f2d8c1e420e3c73f45a22de6aa..647a6002ecb3fcb59b6413f04ace6fb70e1d982e 100755 (executable)
@@ -137,6 +137,20 @@ add_make_enabled()
        done
 }
 
+check_macosx_sdk()
+{
+   [ -z "${OSX_VERSION}" ] && echo "OSX_VERSION not specified, assuming 10.5" && OSX_VERSION=10.5
+   SDK="/Developer/SDKs/MacOSX${OSX_VERSION}.sdk"
+   if [ ! -d "${SDK}" ]
+   then
+          echo "
+*** ${SDK} does not exist, please install required SDK, or use export OSX_VERSION=10.6 ***
+"
+          exit 1
+   fi
+   add_make "OSX_VERSION ?= ${OSX_VERSION}"
+}
+
 test -z "$PREFIX" || add_make "PREFIX := $PREFIX"
 test -z "$BUILD_DISCS" || add_make_enabled "BUILD_DISCS"
 test -z "$BUILD_ENCODERS" || add_make_enabled "BUILD_ENCODERS"
@@ -147,6 +161,7 @@ test -z "$BUILD_ENCODERS" || add_make_enabled "BUILD_ENCODERS"
 OS="${HOST#*-}" # strip architecture
 case "${OS}" in
        apple-darwin*)
+               check_macosx_sdk
                add_make_enabled "HAVE_MACOSX" "HAVE_DARWIN_OS" "HAVE_BSD"
                ;;
        *darwin*)
@@ -174,9 +189,6 @@ ln -sf ../../contrib/src/main.mak Makefile
 cat << EOF
 Bootstrap completed.
 
-The following packages were selected:
-$PKGS
-
 Run "make" to start compilation.
 
 Other targets:
@@ -188,3 +200,5 @@ Other targets:
  * make clean        clean everything
  * make list         list packages
 EOF
+
+mkdir -p ../../contrib/tarballs