diff options
| -rw-r--r-- | recipes-graphics/userland/userland_git.bb | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/recipes-graphics/userland/userland_git.bb b/recipes-graphics/userland/userland_git.bb index a37249c..3dafa9d 100644 --- a/recipes-graphics/userland/userland_git.bb +++ b/recipes-graphics/userland/userland_git.bb | |||
| @@ -7,10 +7,9 @@ LIC_FILES_CHKSUM = "file://LICENCE;md5=0448d6488ef8cc380632b1569ee6d196" | |||
| 7 | 7 | ||
| 8 | PR = "r5" | 8 | PR = "r5" |
| 9 | 9 | ||
| 10 | PROVIDES = "virtual/libgles2 \ | 10 | PROVIDES = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', 'virtual/libgles2 virtual/egl', d)}" |
| 11 | virtual/egl" | ||
| 12 | 11 | ||
| 13 | RPROVIDES_${PN} += "libgles2 libgl" | 12 | RPROVIDES_${PN} += "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', 'libgles2 egl', d)}" |
| 14 | 13 | ||
| 15 | COMPATIBLE_MACHINE = "raspberrypi" | 14 | COMPATIBLE_MACHINE = "raspberrypi" |
| 16 | 15 | ||
| @@ -58,6 +57,14 @@ do_install_append () { | |||
| 58 | sed -i 's/include "vcos_futex_mutex.h"/include "pthreads\/vcos_futex_mutex.h"/g' ${f} | 57 | sed -i 's/include "vcos_futex_mutex.h"/include "pthreads\/vcos_futex_mutex.h"/g' ${f} |
| 59 | sed -i 's/include "vcos_platform_types.h"/include "pthreads\/vcos_platform_types.h"/g' ${f} | 58 | sed -i 's/include "vcos_platform_types.h"/include "pthreads\/vcos_platform_types.h"/g' ${f} |
| 60 | done | 59 | done |
| 60 | if [ "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "1", "0", d)}" = "1" ]; then | ||
| 61 | rm -rf ${D}${libdir}/libEGL* | ||
| 62 | rm -rf ${D}${libdir}/libGLES* | ||
| 63 | rm -rf ${D}${libdir}/libwayland-* | ||
| 64 | rm -rf ${D}${libdir}/pkgconfig/egl.pc ${D}${libdir}/pkgconfig/glesv2.pc \ | ||
| 65 | ${D}${libdir}/pkgconfig/wayland-egl.pc | ||
| 66 | rm -rf ${D}${includedir}/EGL ${D}${includedir}/GLES* ${D}${includedir}/KHR | ||
| 67 | fi | ||
| 61 | } | 68 | } |
| 62 | 69 | ||
| 63 | # Shared libs from userland package build aren't versioned, so we need | 70 | # Shared libs from userland package build aren't versioned, so we need |
| @@ -77,3 +84,4 @@ FILES_${PN}-dbg += "${libdir}/plugins/.debug" | |||
| 77 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 84 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 78 | 85 | ||
| 79 | RDEPENDS_${PN} += "bash" | 86 | RDEPENDS_${PN} += "bash" |
| 87 | RDEPENDS_${PN} += "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "libegl-mesa", "", d)}" | ||
