waffle_1.5.2.bb 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. SUMMARY = "cross-platform C library to defer selection of GL API and of window system"
  2. LICENSE = "BSD-2-Clause"
  3. LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4c5154407c2490750dd461c50ad94797 \
  4. file://include/waffle/waffle.h;endline=24;md5=61dbf8697f61c78645e75a93c585b1bf"
  5. SRC_URI = "http://waffle-gl.org/files/release/${BPN}-${PV}/${BPN}-${PV}.tar.xz \
  6. file://0001-third_party-threads-Use-PTHREAD_MUTEX_RECURSIVE-by-d.patch \
  7. "
  8. SRC_URI[md5sum] = "c669c91bf2f7e13a5d781c3dbb30fd8c"
  9. SRC_URI[sha256sum] = "d2c096cf654bf0061323a4b9231a1ef5b749a1e5c7c5bfe067e964219c2a851c"
  10. UPSTREAM_CHECK_URI = "http://www.waffle-gl.org/releases.html"
  11. inherit cmake distro_features_check lib_package
  12. # This should be overridden per-machine to reflect the capabilities of the GL
  13. # stack.
  14. PACKAGECONFIG ??= "glx"
  15. # libx11 requires x11 in DISTRO_FEATURES.
  16. REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'glx', 'x11', '', d)}"
  17. # virtual/libgl requires opengl in DISTRO_FEATURES.
  18. REQUIRED_DISTRO_FEATURES += "${@bb.utils.contains('DEPENDS', 'virtual/${MLPREFIX}libgl', 'opengl', '', d)}"
  19. # I say virtual/libgl, actually wants gl.pc
  20. PACKAGECONFIG[glx] = "-Dwaffle_has_glx=1,-Dwaffle_has_glx=0,virtual/${MLPREFIX}libgl libx11"
  21. # I say virtual/libgl, actually wants wayland-egl.pc, egl.pc, and the wayland
  22. # DISTRO_FEATURE.
  23. PACKAGECONFIG[wayland] = "-Dwaffle_has_wayland=1,-Dwaffle_has_wayland=0,virtual/${MLPREFIX}libgl wayland"
  24. # I say virtual/libgl, actually wants gbm.pc egl.pc
  25. PACKAGECONFIG[gbm] = "-Dwaffle_has_gbm=1,-Dwaffle_has_gbm=0,virtual/${MLPREFIX}libgl udev"
  26. # I say virtual/libgl, actually wants egl.pc
  27. PACKAGECONFIG[x11-egl] = "-Dwaffle_has_x11_egl=1,-Dwaffle_has_x11_egl=0,virtual/${MLPREFIX}libgl libxcb"