M7350/oe-core/meta/recipes-qt/qt4/qt4-embedded.inc

76 lines
2.6 KiB
PHP
Raw Permalink Normal View History

2024-09-09 08:57:42 +00:00
SUMMARY = "Cross-platform UI toolkit and application framework (framebuffer version)"
DESCRIPTION = "Qt is a versatile cross-platform application framework -- this is the embedded (framebuffer) version."
2024-09-09 08:52:07 +00:00
SECTION = "libs"
2024-09-09 08:57:42 +00:00
HOMEPAGE = "http://qt-project.org/"
2024-09-09 08:52:07 +00:00
DEPENDS += "directfb tslib"
2024-09-09 08:57:42 +00:00
INC_PR = "r52"
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
QT4EDEPENDS = ""
2024-09-09 08:52:07 +00:00
QT_BASE_LIB ?= "libqt-embedded"
# Set necessary variables in the profile
2024-09-09 08:57:42 +00:00
SRC_URI += "file://qte.sh \
file://0033-configure-support-c-0x-standard-for-directfd.patch \
"
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
QT_EMBEDDED_FLAGS ?= " \
-embedded $QT_ARCH \
2024-09-09 08:52:07 +00:00
-qtlibinfix ${QT_LIBINFIX} \
2024-09-09 08:57:42 +00:00
"
QT_EMBEDDED_EXTRA_FLAGS ?= " \
2024-09-09 08:52:07 +00:00
-plugin-gfx-transformed -plugin-gfx-qvfb -plugin-gfx-vnc -plugin-gfx-directfb \
-plugin-mouse-tslib -qt-mouse-pc -qt-mouse-qvfb -qt-mouse-linuxinput \
2024-09-09 08:57:42 +00:00
-qt-kbd-tty -qt-kbd-linuxinput \
"
QT_EMBEDDED_KEYPAD_FLAGS ?= " \
2024-09-09 08:52:07 +00:00
-DQT_KEYPAD_NAVIGATION \
2024-09-09 08:57:42 +00:00
"
QT_CONFIG_FLAGS += "${QT_EMBEDDED_FLAGS} ${QT_EMBEDDED_EXTRA_FLAGS} ${QT_EMBEDDED_KEYPAD_FLAGS}"
2024-09-09 08:52:07 +00:00
require qt4.inc
do_install_append() {
2024-09-09 08:57:42 +00:00
install -d ${D}/${libdir}/fonts
touch ${D}/${libdir}/fonts/fontdir
2024-09-09 08:52:07 +00:00
install -d ${D}${sysconfdir}/profile.d/
install -m 0755 ${WORKDIR}/qte.sh ${D}${sysconfdir}/profile.d/
}
# We put the qte profile into it's own package as we don't want to install all qt stuff
# with depending on the global package qt4-embedded
PACKAGES += " ${PN}-conf"
FILES_${PN}-conf += " ${sysconfdir}/profile.d/qte.sh"
RRECOMMENDS_${PN} += " ${PN}-conf"
2024-09-09 08:57:42 +00:00
OTHER_PACKAGES += "\
${QT_BASE_NAME}-fonts \
${QT_BASE_NAME}-fonts-ttf-vera \
${QT_BASE_NAME}-fonts-ttf-dejavu \
${QT_BASE_NAME}-fonts-pfa \
${QT_BASE_NAME}-fonts-pfb \
${QT_BASE_NAME}-fonts-qpf"
RRECOMMENDS_${QT_BASE_NAME}-fonts = " \
${QT_BASE_NAME}-fonts-ttf-vera \
${QT_BASE_NAME}-fonts-ttf-dejavu \
${QT_BASE_NAME}-fonts-pfa \
${QT_BASE_NAME}-fonts-pfb \
${QT_BASE_NAME}-fonts-qpf"
RRECOMMENDS_${QT_BASE_NAME}-demos += " \
${QT_BASE_NAME}-fonts"
ALLOW_EMPTY_${QT_BASE_NAME}-fonts = "1"
PACKAGES_DYNAMIC += "^${QT_BASE_NAME}-fonts-.*"
FILES_${QT_BASE_NAME}-fonts-ttf-vera = "${libdir}/fonts/Vera*.ttf"
FILES_${QT_BASE_NAME}-fonts-ttf-dejavu = "${libdir}/fonts/DejaVu*.ttf"
FILES_${QT_BASE_NAME}-fonts-pfa = "${libdir}/fonts/*.pfa"
FILES_${QT_BASE_NAME}-fonts-pfb = "${libdir}/fonts/*.pfb"
FILES_${QT_BASE_NAME}-fonts-qpf = "${libdir}/fonts/*.qpf*"
FILES_${QT_BASE_NAME}-fonts = "${libdir}/fonts/README ${libdir}/fonts/fontdir"
2024-09-09 08:52:07 +00:00
inherit qt4e