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