buildout.cfg 2.33 KB
Newer Older
1
[buildout]
2 3
extends =
  ../xorg/buildout.cfg
4
  ../gcc/buildout.cfg
5

6 7
parts =
  qt4-qmake
8

9
[qt5-qmake]
10
# XXX work on all systems needs check
11 12
recipe = slapos.recipe.cmmi
location = ${buildout:parts-directory}/${:_buildout_section_name_}
13 14 15 16 17 18 19 20 21 22 23 24
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
25
environment =
26
  PATH=${gcc:location}/bin:%(PATH)s
27
  CPPFLAGS=-I${libX11:location}/include -I${xproto:location}/include -I${libXext:location}/include
28
  LDFLAGS=-L${gcc:location}/lib -Wl,-rpath=${gcc:location}/lib -L${gcc:location}/lib64 -Wl,-rpath=${gcc:location}/lib64 -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
29
make-binary = true
30
post-install =
31 32 33
  mkdir -p ${:location}/bin
  mv -t ${:location}/bin bin/qmake
  mv -t ${:location} mkspecs
34

35 36 37 38
[qt5.6-qmake]
<= qt5-qmake
[qt5.6.2-qmake]
<= qt5.6-qmake
39 40


41 42 43 44 45
[qt4-qmake]
# building [qmake] will download the full qt source anyway ~200MB
# qmake binary can be reached directly from ${qt:location}/bin/qmake if [qt] is fully built
recipe = slapos.recipe.cmmi
location = ${buildout:parts-directory}/${:_buildout_section_name_}
46
url = http://download.qt.io/archive/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz
47 48 49
md5sum = d990ee66bf7ab0c785589776f35ba6ad
# see https://github.com/NixOS/nixpkgs/blob/3e387c3e005c87566b5403d24c86f71f4945a79b/pkgs/development/libraries/qt-4.x/4.8/default.nix#L101
pre-configure =
50
  set -x
51 52 53 54 55 56 57
  sed 's,/usr/X11R6/lib64,${libX11:location}/lib64 ${xproto:location}/lib64 ${libXext:location}/lib64,g' -i mkspecs/*/*.conf
  sed 's,/usr/X11R6/lib,${libX11:location}/lib ${xproto:location}/lib ${libXext:location}/lib,g' -i mkspecs/*/*.conf
  sed 's,/usr/X11R6/include,${libX11:location}/include ${xproto:location}/include ${libXext:location}/include,g' -i mkspecs/*/*.conf
configure-command = ./configure --prefix=${:location} -v -no-separate-debug-info -release -no-fast -confirm-license -opensource
make-targets = qmake
post-install =
  cp -rt ${:location} *
58

59 60 61 62
[qt4.8-qmake]
<= qt4-qmake
[qt4.8.7-qmake]
<= qt4.8-qmake