ln -sf libGLESv2.so.2.0.0 ${D}${libdir}/libGLESv2.so.2
ln -sf libGLESv2.so.2.0.0 ${D}${libdir}/libGLESv2.so
+ # FIXME: The libGL.so* libraries depend on the X11 libraries and
+ # libglapi.so from mesa. For non-X11 distros, neither of them are listed
+ # as build dependencies, which can lead to non-deterministic package
+ # dependencies. If the intention is that the GL backend should be usable
+ # without X11, the linking should be fixed. For now just skip
+ # packaging them.
+ if [ "${USE_X11}" = "no" ]; then
+ rm ${D}${libdir}/libGL.*
+ fi
+
# skip packaging wayland libraries if no support is requested
if [ "${USE_WL}" = "no" ]; then
rm ${D}${libdir}/libgc_wayland_protocol.*
FILES_libegl-mx6 = "${libdir}/libEGL${REALSOLIBS} ${libdir}/libEGL${SOLIBSDEV} "
FILES_libegl-mx6-dev = "${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc"
FILES_libegl-mx6-dbg = "${libdir}/.debug/libEGL${SOLIBS}"
-RDEPENDS_libgl-mx6 = "libglapi"
# Includes GL headers from mesa
RDEPENDS_libgl-mx6-dev += "libgl-mesa-dev"