summaryrefslogtreecommitdiff
path: root/scripts/macosx-build-dependencies.sh
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-06-19 07:48:50 (GMT)
committerMarius Kintel <marius@kintel.net>2013-06-19 07:48:50 (GMT)
commitc75d19555256c5daceb9aea2c3e45010a7a75e88 (patch)
treeea5f2d933d7c2b6637fa95610939c5720d163d14 /scripts/macosx-build-dependencies.sh
parentb75826d2987d58252f1bf7edf673ec3c9024bf95 (diff)
clang fixes
Diffstat (limited to 'scripts/macosx-build-dependencies.sh')
-rwxr-xr-xscripts/macosx-build-dependencies.sh24
1 files changed, 10 insertions, 14 deletions
diff --git a/scripts/macosx-build-dependencies.sh b/scripts/macosx-build-dependencies.sh
index 9cc0662..de739b8 100755
--- a/scripts/macosx-build-dependencies.sh
+++ b/scripts/macosx-build-dependencies.sh
@@ -25,8 +25,8 @@ BASEDIR=$PWD/../libraries
OPENSCADDIR=$PWD
SRCDIR=$BASEDIR/src
DEPLOYDIR=$BASEDIR/install
-MAC_OSX_VERSION_MIN=10.5
-OPTION_32BIT=true
+MAC_OSX_VERSION_MIN=10.6
+OPTION_32BIT=false
OPTION_LLVM=false
OPTION_CLANG=false
OPTION_GCC=false
@@ -55,14 +55,15 @@ build_qt()
fi
tar xzf qt-everywhere-opensource-src-$version.tar.gz
cd qt-everywhere-opensource-src-$version
- if $OPTION_CLANG; then
+ if $USING_CLANG; then
# FIX for clang
sed -i "" -e "s/::TabletProximityRec/TabletProximityRec/g" src/gui/kernel/qt_cocoa_helpers_mac_p.h
+ PLATFORM="-platform unsupported/macx-clang"
fi
if $OPTION_32BIT; then
QT_32BIT="-arch x86"
fi
- ./configure -prefix $DEPLOYDIR -release $QT_32BIT -arch x86_64 -opensource -confirm-license -fast -no-qt3support -no-svg -no-phonon -no-audio-backend -no-multimedia -no-javascript-jit -no-script -no-scripttools -no-declarative -no-xmlpatterns -nomake demos -nomake examples -nomake docs -nomake translations -no-webkit
+ ./configure -prefix $DEPLOYDIR -release $QT_32BIT -arch x86_64 -opensource -confirm-license $PLATFORM -fast -no-qt3support -no-svg -no-phonon -no-audio-backend -no-multimedia -no-javascript-jit -no-script -no-scripttools -no-declarative -no-xmlpatterns -nomake demos -nomake examples -nomake docs -nomake translations -no-webkit
make -j6 install
}
@@ -213,10 +214,10 @@ build_boost()
if $OPTION_32BIT; then
BOOST_EXTRA_FLAGS="-arch i386"
fi
- if $OPTION_LLVM; then
+ if $USING_LLVM; then
BOOST_TOOLSET="toolset=darwin-llvm"
echo "using darwin : llvm : llvm-g++ ;" >> tools/build/v2/user-config.jam
- elif $OPTION_CLANG; then
+ elif $USING_CLANG; then
BOOST_TOOLSET="toolset=clang"
echo "using clang ;" >> tools/build/v2/user-config.jam
fi
@@ -379,7 +380,7 @@ 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"
+ echo "Detected Lion (10.7)"
else
echo "Detected Snow Leopard (10.6) or earlier"
fi
@@ -417,16 +418,11 @@ 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
+echo "Building for $MAC_OSX_VERSION_MIN or later"
if $OPTION_DEPLOY; then
echo "Building deployment version of libraries"
+ OPTION_32BIT=true
else
OPTION_32BIT=false
fi
contact: Jan Huwald // Impressum