qtbase: rework bbappend, allow non-gui configuration, fix link and several minor...
authorFlorian Boor <florian@kernelconcepts.de>
Mon, 13 Aug 2018 15:06:08 +0000 (17:06 +0200)
committerFlorian Boor <florian@kernelconcepts.de>
Mon, 13 Aug 2018 15:06:08 +0000 (17:06 +0200)
recipes-qt5/qt5/qtbase_%.bbappend

index 0309717..36e8374 100644 (file)
@@ -1,2 +1,19 @@
-PACKAGECONFIG += "sql-sqlite "
-OE_QMAKE_PATH_QT_FONTS = "${datadir}/fonts"
+
+
+PACKAGECONFIG_DEFAULT = "dbus udev evdev tools libs freetype sql-sqlite"
+PACKAGECONFIG_SCREEN ?= "${@bb.utils.contains('MACHINE_FEATURES', 'screen', 'gui widgets accessibility tests', '', d)}"
+
+PACKAGECONFIG_append = " \
+    ${PACKAGECONFIG_SCREEN} \
+"
+
+PACKAGECONFIG[gui] = "-gui,-no-gui"
+#QT_CONFIG_FLAGS += " "
+
+
+OE_QMAKE_PATH_QT_FONTS = "${datadir}/fonts/truetype"
+
+pkg_postinst_append_${PN} () {
+       # make sure Qt apps find standard fonts
+       ln -sf /usr/share/fonts/truetype/ /usr/lib/fonts
+}
\ No newline at end of file