Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame^] | 1 | require ${BPN}.inc |
| 2 | |
| 3 | DEFAULT_PREFERENCE = "-1" |
| 4 | |
| 5 | SRCREV = "ea0d1f575c214c09ba3df12644a960e86e031766" |
| 6 | PV = "10.5.4+git${SRCPV}" |
| 7 | |
| 8 | SRC_URI = "git://anongit.freedesktop.org/git/mesa/mesa;branch=10.5" |
| 9 | |
| 10 | S = "${WORKDIR}/git" |
| 11 | |
| 12 | DEPENDS += "python-mako-native" |
| 13 | |
| 14 | inherit pythonnative |
| 15 | |
| 16 | #because we cannot rely on the fact that all apps will use pkgconfig, |
| 17 | #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER |
| 18 | do_install_append() { |
| 19 | if ${@bb.utils.contains('PACKAGECONFIG', 'egl', 'true', 'false', d)}; then |
| 20 | sed -i -e 's/^#if defined(MESA_EGL_NO_X11_HEADERS)$/#if defined(MESA_EGL_NO_X11_HEADERS) || ${@bb.utils.contains('PACKAGECONFIG', 'x11', '0', '1', d)}/' ${D}${includedir}/EGL/eglplatform.h |
| 21 | fi |
| 22 | } |