summaryrefslogtreecommitdiff
path: root/scripts/macosx-build-dependencies.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/macosx-build-dependencies.sh')
-rwxr-xr-xscripts/macosx-build-dependencies.sh28
1 files changed, 13 insertions, 15 deletions
diff --git a/scripts/macosx-build-dependencies.sh b/scripts/macosx-build-dependencies.sh
index 03f8598..de739b8 100755
--- a/scripts/macosx-build-dependencies.sh
+++ b/scripts/macosx-build-dependencies.sh
@@ -8,6 +8,7 @@
#
# Usage: macosx-build-dependencies.sh [-6lcd]
# -6 Build only 64-bit binaries
+# -c Force use of LLVM compiler
# -l Force use of LLVM compiler
# -c Force use of clang compiler
# -d Build for deployment (if not specified, e.g. Sparkle won't be built)
@@ -17,14 +18,15 @@
#
# FIXME:
# o Verbose option
+# o Force rebuild vs. only rebuild changes
#
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
@@ -53,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
}
@@ -211,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
@@ -377,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
@@ -392,7 +395,7 @@ elif $OPTION_GCC; then
elif $OPTION_CLANG; then
USING_CLANG=true
elif (( $OSX_VERSION >= 7 )); then
- USING_GCC=true
+ USING_CLANG=true
fi
if $USING_LLVM; then
@@ -415,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