--- name: "osx-qt" suites: - "precise" architectures: - "i386" packages: - "git-core" - "automake" - "p7zip-full" reference_datetime: "2013-06-01 00:00:00" remotes: [] files: - "qt-everywhere-opensource-src-5.2.1.tar.gz" - "osx-native-depends-r3.tar.gz" - "osx-depends-r5.tar.gz" - "MacOSX10.7.sdk.tar.gz" script: | echo "84e924181d4ad6db00239d87250cc89868484a14841f77fb85ab1f1dbdcd7da1 qt-everywhere-opensource-src-5.2.1.tar.gz" | sha256sum -c REVISION=r5 export SOURCES_PATH=`pwd` export TAR_OPTIONS="-m --mtime="$REFERENCE_DATE\\\ $REFERENCE_TIME"" export ZERO_AR_DATE=1 export TZ=UTC REAL_DATE=`which date` echo '#!/bin/bash' > $HOME/date echo "$REAL_DATE -d \"${REFERENCE_DATETIME}\" \"\$@\"" >> $HOME/date chmod +x $HOME/date export PATH=$HOME:$PATH mkdir -p osx-cross-depends/build cd osx-cross-depends PREFIX=`pwd`/prefix NATIVEPREFIX=`pwd`/native-prefix BUILD_BASE=`pwd`/build SDK=`pwd`/SDKs/MacOSX10.7.sdk HOST=x86_64-apple-darwin11 MIN_VERSION=10.6 INT_CFLAGS="-target ${HOST} -mmacosx-version-min=${MIN_VERSION} --sysroot ${SDK} -msse2 -Qunused-arguments" INT_CXXFLAGS="${INT_CFLAGS}" INT_LDFLAGS="-L${PREFIX}/lib -L${SDK}/usr/lib/i686-apple-darwin10/4.2.1" INT_LDFLAGS_CLANG="-B${NATIVEPREFIX}/bin" INT_CPPFLAGS="-I${PREFIX}/include" INT_CC=clang INT_CXX=clang++ INT_OBJC=clang INT_OBJCXX=clang++ INT_AR=${HOST}-ar INT_RANLIB=${HOST}-ranlib INT_LIBTOOL=${HOST}-libtool INT_INSTALL_NAME_TOOL=${HOST}-install_name_tool export PATH=${NATIVEPREFIX}/bin:${PATH} mkdir -p ${NATIVEPREFIX}/bin mkdir -p ${NATIVEPREFIX}/lib mkdir -p ${PREFIX}/bin mkdir -p ${PREFIX}/lib mkdir -p ${BUILD_BASE} mkdir -p SDKs tar -C SDKs -xf ${SOURCES_PATH}/MacOSX10.7.sdk.tar.gz tar xf /home/ubuntu/build/osx-native-depends-r3.tar.gz export PATH=`pwd`/native-prefix/bin:$PATH tar xf /home/ubuntu/build/osx-depends-r5.tar.gz SOURCE_FILE=${SOURCES_PATH}/qt-everywhere-opensource-src-5.2.1.tar.gz BUILD_DIR=${BUILD_BASE}/qt-everywhere-opensource-src-5.2.1 tar -C ${BUILD_BASE} -xf ${SOURCE_FILE} # Install our mkspec. All files are pulled from the macx-clang spec, except for # our custom qmake.conf SPECFILE=${BUILD_DIR}/qtbase/mkspecs/macx-clang-linux/qmake.conf mkdir -p ${BUILD_DIR}/qtbase/mkspecs/macx-clang-linux cp -f ${BUILD_DIR}/qtbase/mkspecs/macx-clang/Info.plist.lib ${BUILD_DIR}/qtbase/mkspecs/macx-clang-linux/ cp -f ${BUILD_DIR}/qtbase/mkspecs/macx-clang/Info.plist.app ${BUILD_DIR}/qtbase/mkspecs/macx-clang-linux/ cp -f ${BUILD_DIR}/qtbase/mkspecs/macx-clang/qplatformdefs.h ${BUILD_DIR}/qtbase/mkspecs/macx-clang-linux/ cat > ${SPECFILE} <