From b71f933a2a9d57f17f0420581e31dbaac33fcd6a Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 19 May 2014 23:10:07 +0100 Subject: [PATCH] Update mac build deps, now with Qt5 --- data/macos/build-deps.sh | 42 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/data/macos/build-deps.sh b/data/macos/build-deps.sh index 8f8e85228..c246a60d5 100755 --- a/data/macos/build-deps.sh +++ b/data/macos/build-deps.sh @@ -100,7 +100,7 @@ cd .. fi # ------------------------------------------------------------------------------------ -# qt +# qt4 if [ ! -d qt-everywhere-opensource-src-4.8.6 ]; then curl -O http://download.qt-project.org/official_releases/qt/4.8/4.8.6/qt-everywhere-opensource-src-4.8.6.tar.gz @@ -120,6 +120,29 @@ sudo make install cd .. fi +# ------------------------------------------------------------------------------------ +# qt5 + +if [ ! -d qtbase5-mac10.5 ]; then +git clone git://github.com/falkTX/qtbase5-mac10.5 --depth 1 +fi + +if [ ! -f qtbase5-mac10.5/bin/moc ]; then +cd qtbase5-mac10.5 +export QMAKESPEC=macx-g++42 +./configure -release -static -opensource -confirm-license -force-pkg-config \ + -prefix /opt/kxstudio -plugindir /opt/kxstudio/lib/qt5/plugins -headerdir /opt/kxstudio/include/qt5 \ + -qt-freetype -qt-libjpeg -qt-libpng -qt-pcre -qt-sql-sqlite -qt-zlib -opengl no -no-c++11 -no-framework -qpa cocoa \ + -no-directfb -no-eglfs -no-kms -no-linuxfb -no-mtdev -no-xcb -no-xcb-xlib \ + -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -no-avx2 -no-neon -no-mips_dsp -no-mips_dspr2 \ + -no-cups -no-dbus -no-fontconfig -no-harfbuzz -no-iconv -no-icu -no-gif -no-glib -no-nis -no-openssl -no-pch -no-sql-ibase -no-sql-odbc \ + -no-audio-backend -no-javascript-jit -no-qml-debug -no-rpath -no-separate-debug-info \ + -no-compile-examples -nomake examples -nomake tests -make libs -make tools +make -j 2 +sudo make install +cd .. +fi + # ------------------------------------------------------------------------------------ # python @@ -168,6 +191,23 @@ sudo make install cd .. fi +# ------------------------------------------------------------------------------------ +# pyqt5 + +if [ ! -d PyQt-gpl-5.2.1 ]; then +curl -L http://download.sourceforge.net/pyqt/PyQt-gpl-5.2.1.tar.gz -o PyQt-gpl-5.2.1.tar.gz +tar -xf PyQt-gpl-5.2.1.tar.gz +fi + +if [ ! -f PyQt-gpl-5.2.1/Makefile ]; then +cd PyQt-gpl-5.2.1 +python3 configure.py -g --confirm-license +cp _qt/*.h qpy/QtCore/ +make +sudo make install +cd .. +fi + # ------------------------------------------------------------------------------------ # cxfreeze