Then kodi build only with gbm it requires to run graphics/mesa-dri but it missed in Makefile. In other cases graphics/mesa-dri installed as dep for xorg-server or wayland staff.
Thanks for the report. Kodi does not pull in X or Wayland even with support for them enabled. You need to install something like x11/xorg-minimal or x11-wm/cage. In the case of GBM, it would be graphics/mesa-dri. The behaviour is not unlike a window manager. Should it be considered a bug?
I switch to gbm and run it from rc.local using su -l kodi -c "...". Kodi can not work without mesa-dri so I assume this should be run time dep.
Created attachment 247957 [details] Add graphics/mesa-dri to RUN_DEPENDS for option GBM I am waiting for test build to finish. Will get the log shortly.
Created attachment 247978 [details] testport log (bzip2)
Landed in ports d28b40500228.