Mesa's "dri" and "dri3" packageconfig options add a dependency to xorgproto. From what I understand, xorgproto shouldn't be necessary on a system which doesn't have x11. It's enabled here: http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-graphics/mesa/mesa.inc#n64 I removed "xorgproto" from "dri" and "dri3", and mesa compiled just fine without it, though I haven't gotten to test it yet because I have to wait for the system to compile.
From Mesa's configure.ac: if test x"$enable_dri3" = xyes; then DEFINES="$DEFINES -DHAVE_DRI3" dri3_modules="x11-xcb xcb >= $XCB_REQUIRED xcb-dri3 xcb-xfixes xcb-present xcb-sync xshmfence >= $XSHMFENCE_REQUIRED" PKG_CHECK_MODULES([XCB_DRI3], [$dri3_modules]) The xorgproto dependency is wrong, but it should have libxcb instead. You won't be able to compile Mesa with DRI3 without X11 with current Mesa code.
Seeked clarification upstream: DRI3 is a X11 protocol. Having DRI3 without X11 is nonsensical.