summaryrefslogtreecommitdiff
path: root/scripts/macosx-build-dependencies.sh
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-04-24 06:00:28 (GMT)
committerMarius Kintel <marius@kintel.net>2013-04-24 06:00:28 (GMT)
commitb5922d7551340d53551e48c01aa09af33e94c317 (patch)
tree862084764cff82870c3aac0b32e7106ec9518970 /scripts/macosx-build-dependencies.sh
parent6a87dd5cfa0a272f978e1b22ca59f1c8c55505a7 (diff)
parentf0ee85e17d474ab9119f82ee6f802d4634743b12 (diff)
Merge branch 'master' into issue116
Diffstat (limited to 'scripts/macosx-build-dependencies.sh')
-rwxr-xr-xscripts/macosx-build-dependencies.sh35
1 files changed, 28 insertions, 7 deletions
diff --git a/scripts/macosx-build-dependencies.sh b/scripts/macosx-build-dependencies.sh
index fa8bb05..088d8b4 100755
--- a/scripts/macosx-build-dependencies.sh
+++ b/scripts/macosx-build-dependencies.sh
@@ -28,7 +28,7 @@ OPTION_32BIT=true
OPTION_LLVM=false
OPTION_CLANG=false
OPTION_GCC=false
-DETECTED_LION=false
+OPTION_DEPLOY=false
export QMAKESPEC=macx-g++
printUsage()
@@ -370,12 +370,13 @@ do
esac
done
-OSVERSION=`sw_vers -productVersion | cut -d. -f2`
-if [[ $OSVERSION -ge 7 ]]; then
- echo "Detected Lion or later"
- DETECTED_LION=true
+OSX_VERSION=`sw_vers -productVersion | cut -d. -f2`
+if (( $OSX_VERSION >= 8 )); then
+ echo "Detected Mountain Lion (10.8) or later"
+elif (( $OSX_VERSION >= 7 )); then
+ echo "Detected Lion (10.7) or later"
else
- echo "Detected Snow Leopard or earlier"
+ echo "Detected Snow Leopard (10.6) or earlier"
fi
USING_LLVM=false
@@ -387,7 +388,7 @@ elif $OPTION_GCC; then
USING_GCC=true
elif $OPTION_CLANG; then
USING_CLANG=true
-elif $DETECTED_LION; then
+elif (( $OSX_VERSION >= 7 )); then
USING_GCC=true
fi
@@ -411,6 +412,26 @@ elif $USING_CLANG; then
export QMAKESPEC=unsupported/macx-clang
fi
+if (( $OSX_VERSION >= 8 )); then
+ echo "Setting build target to 10.6 or later"
+ MAC_OSX_VERSION_MIN=10.6
+else
+ echo "Setting build target to 10.5 or later"
+ MAC_OSX_VERSION_MIN=10.5
+fi
+
+if $OPTION_DEPLOY; then
+ echo "Building deployment version of libraries"
+else
+ OPTION_32BIT=false
+fi
+
+if $OPTION_32BIT; then
+ echo "Building combined 32/64-bit binaries"
+else
+ echo "Building 64-bit binaries"
+fi
+
echo "Using basedir:" $BASEDIR
mkdir -p $SRCDIR $DEPLOYDIR
build_qt 4.8.4
contact: Jan Huwald // Impressum