summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-qt/qt4-graphics-system/qt4-graphics-system_1.0.bb12
1 files changed, 5 insertions, 7 deletions
diff --git a/meta/recipes-qt/qt4-graphics-system/qt4-graphics-system_1.0.bb b/meta/recipes-qt/qt4-graphics-system/qt4-graphics-system_1.0.bb
index bae0340faf..e816a90ea8 100644
--- a/meta/recipes-qt/qt4-graphics-system/qt4-graphics-system_1.0.bb
+++ b/meta/recipes-qt/qt4-graphics-system/qt4-graphics-system_1.0.bb
@@ -3,10 +3,9 @@ SECTION = "x11/base"
3LICENSE = "MIT-X" 3LICENSE = "MIT-X"
4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" 4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
5 5
6QT_GRAPHICS_SYSTEM ?= "raster" 6PR = "r1"
7 7
8# xserver-common, x11-common 8QT_GRAPHICS_SYSTEM ?= "raster"
9VIRTUAL-RUNTIME_xserver_common ?= "x11-common"
10 9
11def _get_extra_rdepends(d): 10def _get_extra_rdepends(d):
12 gs = d.getVar('QT_GRAPHICS_SYSTEM', True) 11 gs = d.getVar('QT_GRAPHICS_SYSTEM', True)
@@ -16,12 +15,11 @@ def _get_extra_rdepends(d):
16 return "" 15 return ""
17 16
18do_install () { 17do_install () {
19 install -d ${D}/${sysconfdir}/X11/Xsession.d/ 18 install -d ${D}/${sysconfdir}/profile.d/
20 cfg_file=${D}/${sysconfdir}/X11/Xsession.d/85xqt-graphicssystem 19 cfg_file=${D}/${sysconfdir}/profile.d/qt-graphicssystem
21 echo "export QT_GRAPHICSSYSTEM=${QT_GRAPHICS_SYSTEM}" > $cfg_file 20 echo "export QT_GRAPHICSSYSTEM=${QT_GRAPHICS_SYSTEM}" > $cfg_file
22 chmod +x $cfg_file
23} 21}
24 22
25RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_xserver_common} ${@_get_extra_rdepends(d)}" 23RDEPENDS_${PN} = "${@_get_extra_rdepends(d)}"
26 24
27PACKAGE_ARCH = "${MACHINE_ARCH}" 25PACKAGE_ARCH = "${MACHINE_ARCH}"