summaryrefslogtreecommitdiffstats
path: root/meta/recipes-qt/qt4-graphics-system
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
committerTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
commit972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch)
tree97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-qt/qt4-graphics-system
downloadpoky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-qt/qt4-graphics-system')
-rw-r--r--meta/recipes-qt/qt4-graphics-system/qt4-graphics-system_1.0.bb25
1 files changed, 25 insertions, 0 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
new file mode 100644
index 0000000000..ff3f3da2bd
--- /dev/null
+++ b/meta/recipes-qt/qt4-graphics-system/qt4-graphics-system_1.0.bb
@@ -0,0 +1,25 @@
1SUMMARY = "Sets default Qt4 Graphics System to ${QT_GRAPHICS_SYSTEM}"
2SECTION = "x11/base"
3LICENSE = "MIT-X"
4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
5
6PR = "r1"
7
8QT_GRAPHICS_SYSTEM ?= "raster"
9
10def _get_extra_rdepends(d):
11 gs = d.getVar('QT_GRAPHICS_SYSTEM', True)
12 if gs == "opengl":
13 return "qt4-plugin-graphicssystems-glgraphicssystem"
14
15 return ""
16
17do_install () {
18 install -d ${D}/${sysconfdir}/profile.d/
19 cfg_file=${D}/${sysconfdir}/profile.d/qt-graphicssystem
20 echo "export QT_GRAPHICSSYSTEM=${QT_GRAPHICS_SYSTEM}" > $cfg_file
21}
22
23RDEPENDS_${PN} = "${@_get_extra_rdepends(d)}"
24
25PACKAGE_ARCH = "${MACHINE_ARCH}"