summaryrefslogtreecommitdiffstats
path: root/meta/recipes-qt/qt4/qt4-embedded.inc
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/qt4-embedded.inc
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/qt4-embedded.inc')
-rw-r--r--meta/recipes-qt/qt4/qt4-embedded.inc75
1 files changed, 75 insertions, 0 deletions
diff --git a/meta/recipes-qt/qt4/qt4-embedded.inc b/meta/recipes-qt/qt4/qt4-embedded.inc
new file mode 100644
index 0000000000..ef5cf2cf24
--- /dev/null
+++ b/meta/recipes-qt/qt4/qt4-embedded.inc
@@ -0,0 +1,75 @@
1SUMMARY = "Cross-platform UI toolkit and application framework (framebuffer version)"
2DESCRIPTION = "Qt is a versatile cross-platform application framework -- this is the embedded (framebuffer) version."
3SECTION = "libs"
4HOMEPAGE = "http://qt-project.org/"
5DEPENDS += "directfb tslib"
6INC_PR = "r52"
7
8QT4EDEPENDS = ""
9QT_BASE_LIB ?= "libqt-embedded"
10
11# Set necessary variables in the profile
12SRC_URI += "file://qte.sh \
13 file://0033-configure-support-c-0x-standard-for-directfd.patch \
14"
15
16QT_EMBEDDED_FLAGS ?= " \
17 -embedded $QT_ARCH \
18 -qtlibinfix ${QT_LIBINFIX} \
19"
20QT_EMBEDDED_EXTRA_FLAGS ?= " \
21 -plugin-gfx-transformed -plugin-gfx-qvfb -plugin-gfx-vnc -plugin-gfx-directfb \
22 -plugin-mouse-tslib -qt-mouse-pc -qt-mouse-qvfb -qt-mouse-linuxinput \
23 -qt-kbd-tty -qt-kbd-linuxinput \
24"
25QT_EMBEDDED_KEYPAD_FLAGS ?= " \
26 -DQT_KEYPAD_NAVIGATION \
27"
28
29QT_CONFIG_FLAGS += "${QT_EMBEDDED_FLAGS} ${QT_EMBEDDED_EXTRA_FLAGS} ${QT_EMBEDDED_KEYPAD_FLAGS}"
30
31require qt4.inc
32
33do_install_append() {
34 install -d ${D}/${libdir}/fonts
35 touch ${D}/${libdir}/fonts/fontdir
36
37 install -d ${D}${sysconfdir}/profile.d/
38 install -m 0755 ${WORKDIR}/qte.sh ${D}${sysconfdir}/profile.d/
39}
40
41# We put the qte profile into it's own package as we don't want to install all qt stuff
42# with depending on the global package qt4-embedded
43PACKAGES += " ${PN}-conf"
44FILES_${PN}-conf += " ${sysconfdir}/profile.d/qte.sh"
45RRECOMMENDS_${PN} += " ${PN}-conf"
46
47OTHER_PACKAGES += "\
48 ${QT_BASE_NAME}-fonts \
49 ${QT_BASE_NAME}-fonts-ttf-vera \
50 ${QT_BASE_NAME}-fonts-ttf-dejavu \
51 ${QT_BASE_NAME}-fonts-pfa \
52 ${QT_BASE_NAME}-fonts-pfb \
53 ${QT_BASE_NAME}-fonts-qpf"
54
55RRECOMMENDS_${QT_BASE_NAME}-fonts = " \
56 ${QT_BASE_NAME}-fonts-ttf-vera \
57 ${QT_BASE_NAME}-fonts-ttf-dejavu \
58 ${QT_BASE_NAME}-fonts-pfa \
59 ${QT_BASE_NAME}-fonts-pfb \
60 ${QT_BASE_NAME}-fonts-qpf"
61RRECOMMENDS_${QT_BASE_NAME}-demos += " \
62 ${QT_BASE_NAME}-fonts"
63
64ALLOW_EMPTY_${QT_BASE_NAME}-fonts = "1"
65PACKAGES_DYNAMIC += "^${QT_BASE_NAME}-fonts-.*"
66
67FILES_${QT_BASE_NAME}-fonts-ttf-vera = "${libdir}/fonts/Vera*.ttf"
68FILES_${QT_BASE_NAME}-fonts-ttf-dejavu = "${libdir}/fonts/DejaVu*.ttf"
69FILES_${QT_BASE_NAME}-fonts-pfa = "${libdir}/fonts/*.pfa"
70FILES_${QT_BASE_NAME}-fonts-pfb = "${libdir}/fonts/*.pfb"
71FILES_${QT_BASE_NAME}-fonts-qpf = "${libdir}/fonts/*.qpf*"
72FILES_${QT_BASE_NAME}-fonts = "${libdir}/fonts/README ${libdir}/fonts/fontdir"
73
74inherit qt4e
75