Commit 63f355e8 authored by Boris Kocherov's avatar Boris Kocherov Committed by Romain Courteaud

component/qt: [qt5-qmake] simplify, speedup

parent f4ab5f38
[buildout]
extends =
../xorg/buildout.cfg
../mesa/buildout.cfg
parts =
qt4-qmake
[qt5-qmake]
# XXX does not work on all systems
# building [qmake] will download the full qt source anyway ~200MB
# qmake binary can be reached directly from ${qt:location}/qtbase/bin/qmake if [qt] is fully built
# XXX work on all systems needs check
recipe = slapos.recipe.cmmi
location = ${buildout:parts-directory}/${:_buildout_section_name_}
url = http://download.qt.io/official_releases/qt/5.6/5.6.2/single/qt-everywhere-opensource-src-5.6.2.tar.gz
md5sum = 1b1b1f929d0cd83680354a0c83d8e945
url = http://download.qt.io/official_releases/qt/5.6/5.6.2/submodules/qtbase-opensource-src-5.6.2.tar.gz
md5sum = 7aa5841b50c411e23e31e8a6cc1c6981
configure-command = ./configure
configure-options =
--prefix=${:location}
-v
-no-separate-debug-info
-release
-confirm-license
-opensource
-no-opengl
-nomake examples
environment =
CFLAGS=-I${mesa:location}/include
CPPFLAGS=-I${mesa:location}/include
CXXFLAGS=-I${mesa:location}/include
LD_LIBRARY_PATH=${mesa:location}/lib
pre-configure-QMAKE_INCDIR_X11 =
${libX11:location}/include
${xproto:location}/include
${libXext:location}/include
pre-configure-QMAKE_LIBDIR_X11 =
${libX11:location}/lib64 ${libX11:location}/lib
${xproto:location}/lib64 ${xproto:location}/lib
${libXext:location}/lib64 ${libXext:location}/lib
pre-configure =
set -e -x
qmake_incdir_x11=$(echo " ${:pre-configure-QMAKE_INCDIR_X11}" | sed ':a;N;$!ba;s/\n/ /g')
qmake_libdir_x11=$(echo " ${:pre-configure-QMAKE_LIBDIR_X11}" | sed ':a;N;$!ba;s/\n/ /g')
sed 's:QMAKE_INCDIR_X11\s*=:QMAKE_INCDIR_X11 ='"$qmake_incdir_x11:g" -i qtbase/mkspecs/*/*.conf
sed 's:QMAKE_LIBDIR_X11\s*=:QMAKE_LIBDIR_X11 ='"$qmake_libdir_x11:g" -i qtbase/mkspecs/*/*.conf
# it helped me : http://stackoverflow.com/questions/24264940/compile-qt5-without-gui-support-on-linux-arm
configure-command = ./configure --prefix=${:location} -v -no-separate-debug-info -release -confirm-license -opensource -no-opengl -nomake examples
make-targets = qmake
CPPFLAGS=-I${libX11:location}/include -I${xproto:location}/include -I${libXext:location}/include
LDFLAGS=-L${libX11:location}/lib -Wl,-rpath=${libX11:location}/lib -L${xproto:location}/lib -Wl,-rpath=${xproto:location}/lib -L${libXext:location}/lib -Wl,-rpath=${libXext:location}/lib
make-binary = true
post-install =
cp -rt ${:location} *
mkdir -p ${:location}/bin
mv -t ${:location}/bin bin/qmake
mv -t ${:location} mkspecs
[qt5.6-qmake]
<= qt5-qmake
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment