xcb-proto_1.13.bb 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. SUMMARY = "XCB: The X protocol C binding headers"
  2. DESCRIPTION = "Function prototypes for the X protocol C-language Binding \
  3. (XCB). XCB is a replacement for Xlib featuring a small footprint, \
  4. latency hiding, direct access to the protocol, improved threading \
  5. support, and extensibility."
  6. HOMEPAGE = "http://xcb.freedesktop.org"
  7. BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=XCB"
  8. SECTION = "x11/libs"
  9. LICENSE = "MIT"
  10. LIC_FILES_CHKSUM = "file://COPYING;md5=d763b081cb10c223435b01e00dc0aba7 \
  11. file://src/dri2.xml;beginline=2;endline=28;md5=f8763b13ff432e8597e0d610cf598e65"
  12. SRC_URI = "http://xcb.freedesktop.org/dist/${BP}.tar.bz2"
  13. SRC_URI[md5sum] = "abe9aa4886138150bbc04ae4f29b90e3"
  14. SRC_URI[sha256sum] = "7b98721e669be80284e9bbfeab02d2d0d54cd11172b72271e47a2fe875e2bde1"
  15. inherit autotools pkgconfig
  16. # Force the use of Python 3 and a specific library path so we don't need to
  17. # depend on python3-native
  18. CACHED_CONFIGUREVARS += "PYTHON=python3 am_cv_python_pythondir=${libdir}/xcb-proto"
  19. PACKAGES += "python-xcbgen"
  20. FILES_${PN} = ""
  21. FILES_${PN}-dev += "${datadir}/xcb/*.xml ${datadir}/xcb/*.xsd"
  22. FILES_python-xcbgen = "${libdir}/xcb-proto"
  23. RDEPENDS_${PN}-dev = ""
  24. RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})"
  25. BBCLASSEXTEND = "native nativesdk"
  26. # Need to do this dance because we're forcing the use of host Python above and
  27. # if xcb-proto is built with Py3.5 and then re-used from sstate on a host with
  28. # Py3.6 the second build will write new cache files into the sysroot which won't
  29. # be listed in the manifest so won't be deleted, resulting in an error on
  30. # rebuilds. Solve this by deleting the entire cache directory when this package
  31. # is removed from the sysroot.
  32. SSTATEPOSTINSTFUNCS += "xcb_sstate_postinst"
  33. xcb_sstate_postinst() {
  34. if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ]
  35. then
  36. cat <<EOF >${SSTATE_INST_POSTRM}
  37. #!/bin/sh
  38. rm -rf ${libdir}/xcb-proto/xcbgen/__pycache__
  39. EOF
  40. fi
  41. }