2024-09-09 08:52:07 +00:00
|
|
|
require qt4.inc
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
SUMMARY = "Cross-platform UI toolkit and application framework (X11 version)"
|
2024-09-09 08:52:07 +00:00
|
|
|
DESCRIPTION = "Qt is a versatile cross-platform application framework -- this is the X11 version."
|
2024-09-09 08:57:42 +00:00
|
|
|
HOMEPAGE = "http://qt-project.org/"
|
2024-09-09 08:52:07 +00:00
|
|
|
SECTION = "x11/libs"
|
|
|
|
DEPENDS += "virtual/libgl virtual/libx11 fontconfig libxft libxext libxrender libxrandr libxcursor"
|
2024-09-09 08:57:42 +00:00
|
|
|
PROVIDES += "qt4-x11"
|
|
|
|
QT4DEPENDS = ""
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
INC_PR = "r50"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
QT_GLFLAGS ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '-opengl', '-no-opengl', d)} "
|
2024-09-09 08:52:07 +00:00
|
|
|
QT_GLFLAGS_qemux86 = "-opengl"
|
|
|
|
QT_GLFLAGS_qemuppc = "-opengl"
|
2024-09-09 08:57:42 +00:00
|
|
|
QT_X11_FLAGS ?= "-no-xinerama -no-xkb -no-gtkstyle"
|
|
|
|
QT_CONFIG_FLAGS += "${QT_X11_FLAGS}"
|
2024-09-09 08:52:07 +00:00
|
|
|
QT_BASE_LIB ?= "libqt"
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
# required by kdelibs4
|
|
|
|
QT_KDE_FLAGS ?= "-accessibility -sm"
|
|
|
|
QT_DISTRO_FLAGS ?= "${QT_KDE_FLAGS}"
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
inherit qt4x11
|
|
|
|
|
|
|
|
do_install_append() {
|
|
|
|
# fix pkgconfig, libtool and prl files
|
|
|
|
sed -i -e 's#I/usr/include#Iincludedir}#g' \
|
|
|
|
-e 's#Iin#I${in#g' \
|
|
|
|
${D}${libdir}/*.la ${D}${libdir}/*.prl ${D}${libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
# QT abuses $includedir to point to its headers, which breaks pkgconfig sysroot, so
|
|
|
|
# manually fix it up here:
|
|
|
|
for pc in ${D}${libdir}/pkgconfig/*.pc ; do
|
|
|
|
sed -i -e "s:prefix}include/${QT_BASE_NAME}/$(basename $pc .pc):prefix}/include:" \
|
|
|
|
-e "s,Cflags: ,Cflags: -IP{includedir}/${QT_BASE_NAME}/$(basename $pc .pc) ," \
|
|
|
|
-e 's:IP{:I${:g' $pc
|
|
|
|
done
|
|
|
|
}
|