qt4-x11-free.inc 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. require qt4.inc
  2. SUMMARY = "Cross-platform UI toolkit and application framework (X11 version)"
  3. DESCRIPTION = "Qt is a versatile cross-platform application framework -- this is the X11 version."
  4. HOMEPAGE = "http://qt-project.org/"
  5. SECTION = "x11/libs"
  6. DEPENDS += "virtual/libx11 fontconfig libxft libxext libxrender libxrandr libxcursor"
  7. DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virtual/libgl', '', d)}"
  8. PROVIDES += "qt4-x11"
  9. QT4DEPENDS = ""
  10. QT_GLFLAGS ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '-opengl', '-no-opengl', d)} "
  11. QT_GLFLAGS_qemux86 = "-opengl"
  12. QT_GLFLAGS_qemuppc = "-opengl"
  13. QT_X11_FLAGS ?= "-no-xinerama -no-xkb -no-gtkstyle"
  14. QT_CONFIG_FLAGS += "${QT_X11_FLAGS}"
  15. QT_BASE_LIB ?= "libqt"
  16. # required by kdelibs4
  17. QT_KDE_FLAGS ?= "-accessibility -sm"
  18. QT_DISTRO_FLAGS ?= "${QT_KDE_FLAGS}"
  19. inherit qt4x11
  20. do_install_append() {
  21. # fix pkgconfig, libtool and prl files
  22. sed -i -e 's#I/usr/include#Iincludedir}#g' \
  23. -e 's#Iin#I${in#g' \
  24. ${D}${libdir}/*.la ${D}${libdir}/*.prl ${D}${libdir}/pkgconfig/*.pc
  25. # QT abuses $includedir to point to its headers, which breaks pkgconfig sysroot, so
  26. # manually fix it up here:
  27. for pc in ${D}${libdir}/pkgconfig/*.pc ; do
  28. sed -i -e "s:prefix}include/${QT_BASE_NAME}/$(basename $pc .pc):prefix}/include:" \
  29. -e "s,Cflags: ,Cflags: -IP{includedir}/${QT_BASE_NAME}/$(basename $pc .pc) ," \
  30. -e 's:IP{:I${:g' $pc
  31. done
  32. }